简体   繁体   中英

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.

首先解析xml,然后为xml中的每个标记创建一个标记

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM