开发者

How I can read an xml file in order to hang it as a marker to Mapview Android?

开发者 https://www.devze.com 2023-01-27 00:28 出处:网络
How can I read an XML file and then take over the individual items as markers in an overlay. Here is an example of my XML files.

How can I read an XML file and then take over the individual items as markers in an overlay.

Here is an example of my XML files.

开发者_C百科

<marker name="Crab Pot" address="1301 Alaskan Way, Seattle, WA" lat="47.605961" lng="-122.340363" type="restaurant"/>
<marker name="Mama's Mexican Kitchen" address="2234 2nd Ave, Seattle, WA" lat="47.613976" lng="-122.345467" type="bar"/>
<marker name="Wingdome" address="1416 E Olive Way, Seattle, WA" lat="47.617214" lng="-122.326584" type="bar"/>
<marker name="Piroshky Piroshky" address="1908 Pike pl, Seattle, WA" lat="47.610126" lng="-122.342834" type="restaurant"/>

I'm still a newbie in Java / Android but nowhere can I find a guide. I hope you can help me further.


See Working with XML in Android, Hello Map View

0

精彩评论

暂无评论...
验证码 换一张
取 消