javascript - Google Map V3 - Displaying markers from XML feed - Stack Overflow

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

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745579476a4634169.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信