最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin2浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论