user547794
user547794

Reputation: 14511

Google Map V3 - Displaying markers from XML feed

I have an XML feed of marker data that I want to plot on a Google map. The XML data I have is in this format:

<markers>
<marker  uid="2" filesUploaded="" lat="101.00000000000" lng="112.00000000000"/>
<marker  uid="2" filesUploaded="" lat="132.00000000000" lng="112.00000000000"/>
<marker  uid="2" filesUploaded="" lat="143.00000000000" lng="111.00000000000"/>
<marker  uid="2" filesUploaded="" lat="134.00000000000" lng="112.00000000000"/>
</markers>

I had this working in V2 but am not sure for V3.

Upvotes: 0

Views: 10314

Answers (2)

free_easy
free_easy

Reputation: 5129

Here is a sample with the v3 API: http://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/

Upvotes: 2

Argiropoulos Stavros
Argiropoulos Stavros

Reputation: 9533

First of parse the xml and for each marker in your xml create a marker

Upvotes: 0

Related Questions