admin管理员组

文章数量:1431708

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.

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.

Share Improve this question asked Jan 4, 2011 at 6:18 user547794user547794 14.5k38 gold badges108 silver badges153 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 2

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

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

本文标签: javascriptGoogle Map V3Displaying markers from XML feedStack Overflow