google-maps-api-3

how to get the direction of a location in google map api

i want to get the Direction of location in lati longi when i use google map api then he return me lati long for city (27.19, 78.01) but i need position too means N E W S how i can get them too like (27.19 N , 78.01 E). N for north and E for east. how i can get the flank or direction too. ...

how to integrate google map in php & mark places with flags

How can I intergrate google map in php and mark the places there in the map dynamically. I want to show areas with specific details from database to google map ...

How to show Google Local business marker and InfoWindow in custom Google Map ?

I want to show the location of my business on my website using google maps. Instead of creating the marker, infowindow, etc... by hand, I would like to reuse the one found in Google Local business listings. For instance, this business could use this map. The advantages are numerous : it is already done, it will be updated when you updat...

SOAP Error When Using GeoCoder

I have a webpage that uses Google Maps API to show a location of a business. It was previously working fine, but recently I noticed that the page now has a SOAP error: Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://geocoder.us/dist/eg/clients/GeoCoderPHP.wsdl' : failed ...

Convert coordinates to a place name

Hey, I am using the HTML5 Geolocation API to find the longitude and the latitude from the users of my site. This works, but now I would like te show on the screen "You cuurently are in ...". So I need to convert these coordinates I get from the Geolocation API to a place name. I tried a bit with Google Maps API, but I Didn't get it wor...

Google Maps API V3: fromContainerPixelToLatLng

I'm currently working on a project that requires that I have a div stacked above a Google Map. However, I need to pass the mousemove event of the div to the Map. To do that, I need to find the LatLng co-ordinates from the map container pixel co-ordinate (since triggering the Maps mousemove event requires the LatLng co-ordinates). Is the...

Can this Javascript be shortened with JQuery?

Hi folks, i'm checking out some newbie Google Maps API tutorial code. They have an example that says how to dynamically add some script to a page, once the page has finished loading. I'm wondering if this code can be made shorter if I use JQuery? here's the code... function initialize() { var myLatlng = new google.maps.LatLng(-34.3...

What is the difference between "marker.setVisible(false)" and "marker.setMap(null)" in Google Maps v3?

I want to clear marker on Google Maps. What is the difference between marker.setVisible(false) and marker.setMap(null)? But i don't know which is right? Thanks ...

how can i check the marker is or isn't in the bounds using google maps v3 .

This is my code,i think it may has some mistakes: var bounds_array; google.maps.event.addListener(map,'bounds_changed', function (){ var bounds_=map.getBounds(); if(bounds_){ var leftBottom=[bounds_.getSouthWest().lat(),bounds_.getSouthWest().lng()] var rightTop=[bo...

Google maps info window open() panTo edge of map

Hello i have these two lines map.panTo(respectiveMarker.getPosition());//Center in map the respective marker infoWindow.open(map, respectiveMarker); When infoWindow.open is executed the map pans to the edge. If i remove this line the map pans to the marker as expected. Any ideas? ...

Google maps info window open() panTo edge of map

Hello i have these two lines map.panTo(respectiveMarker.getPosition());//Center in map the respective marker infoWindow.open(map, respectiveMarker); When infoWindow.open is executed the map pans to the edge. If i remove this line the map pans to the marker as expected. Any ideas? ...

Problem with google maps subway stations

I need to find nearby subway station from the specified point in nyc. I am trying to use google maps api, I found some examples how to get nearby streets or place names etc. but can't find stations. I think there can be two ways of doing this: if I find list of subway stations with coordinates (latitude, longitude) I can write script ...

jQuery $.ajax GET URL and Google geocoding

I have xml file that contains the URLs for geocoding requests to Google. I want to iterate through the file, grab the URL (and later the site name...one step at a time), and send a Geocoding request to Google to get the lat and lng from the response. I am having problems with my $.ajax GET request. Can't the URL parameter just be a val...

google maps api v3 - custom multi-colored icons

It seems like I have to assign an hosted image url to MarkerImage object to create custom-icons. Is there a way to allow the user to pick a color to fill in this image? ...

how to parse xml file using google map api

I have the following code the searchUrl gives xml output but i am not able to display output on map with markers. var searchUrl = "http://localhost:1894/blockseek8-9-2010/Block3.xml"; GDownloadUrl(searchUrl, function(data) { var xml = GXml.parse(data); var markers = xml.documentElement.getEle...

Google Maps V3: Styled maps suddenly lost their styles???

I was working on my site last night and suddenly my styled map went back to the default style. Looking around it seems that the styles on Google's own blog aren't working. Even the Map style wizard is not working. I thought this might just be me, but I have looked in both Firefox and Chrome and on two different computers. Strangely, it ...

Problem with connecting to google map url to fetch lattitude and longitude for particular location

I have the following code to fetch lattitude and longitude for given address but the permission to google url is denied . function getlatlng(address, callback) { var addressval = address; var address; var url; var googleUrl = "http://maps.google.com/maps/api/geocode/js...

How do I show white pop up box on custom Google Map?

I currently have an array of places for a custom map that I am working on. I have been trying but cannot figure out how to add the 'click' popup box over a marker. I want the white box to display the name and have an option so that a person can choose 'get directions to here'. Does anyone know how I can achieve this with more then one ma...

GoogleMaps v3 API Create only 1 marker on click

I am successfully creating a marker on click however, using the following code, I get a new marker with every click, I only ever want one marker added and if someone clicks more than once I would like it to move the existing marker to the new position Can anyone help here is the code function placeMarker(location) { var clicked...

Cannot open google map marker from sidebar list

I am working with the v3 API and trying to recreate the Store Locator sample (which is v2). I like the way the v2 version works vs the same article changed for v3 API. I have everything working with one exception: when I click the location result it does not open up the marker in the map for that location. Here is my code. I think the pr...