Creating multiple markers in Google Maps using XML

Posted by Jessica Stanley on Stack Overflow See other posts from Stack Overflow or by Jessica Stanley
Published on 2011-11-30T04:27:00Z Indexed on 2012/09/17 21:38 UTC
Read the original article Hit count: 259

I'm almost sure this question has been asked before, but for the love of me I just can't find the answer anywhere. Basically what I want to do is create multiple markers on a custom Google Map I'm building. I already have an XML file with the coordinates (lat/lng) and title of each item. I'd like to take the data from the XML file and use it to create markers on the map. I've found how to do this using KML files and MySQL/PHP, but I need to know how to do it in Javascript.

One more thing: I have a .xml file of my own, so it won't be like I'll be getting the data from a webpage because I believe (from research I've done today) that the code for that may be different.

If anyone knows if this has been posted somewhere else before, could you please direct me there? I've literally been searching all day, this is my last resort. Thanks a ton!!!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about Xml