1

I'm trying to take this example from Google Maps and use an address instead of lat/long to place markers from an XML doc:

http://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/jqueryget.html

Does anyone have any pointers? Have you used Google Maps to show records using the address and have an example? I've exhausted all the places I know to look.

Thanks!

Agostino
  • 2,723
  • 9
  • 48
  • 65

1 Answers1

0

http://www.geocodezip.com/v3_MW_example_map3.html

I would post more than just a url — but without knowing what the issue is, it's difficult to be specific. If you edit your question to include the bit of your code which is failing (or a link to your page), it should be possible to say exactly what's going wrong.

Andrew Leach
  • 12,945
  • 1
  • 40
  • 47
  • Thanks for the quick response. I'd seen that example, but I do not have lat/long to begin with. This is a sample from my XML file:- – user1322600 Apr 10 '12 at 14:59
  • Taking the above example from that link I would be trying to do this: // Read the data from example.xml downloadUrl("example.xml", function(doc) { var xmlDoc = xmlParse(doc); var marker = xmlDoc.documentElement.getElementsByTagName("marker"); for (var i = 0; i < marker.length; i++) { // obtain the attribues of each marker var address = parseFloat(marker[i].getAttribute("address")); var point = new google.maps.address(address); // create the marker var markers = createMarker(point); } – user1322600 Apr 10 '12 at 15:21
  • @user1322600 A [similar question](http://stackoverflow.com/questions/10062624/google-map-v3-only-some-markers-are-displayed/10063339#10063339) involved geocoding addresses. In that case the addresses were JSON data (or hard coded), but the same method will work for XML data once the data is available. – Andrew Leach Apr 13 '12 at 14:39