我将如何显示基于此 KML/XML 的图钉
我当前有一个 KML 文件,每个位置写如下。
<Placemark>
<name>Placemark 1</name>
<description><![CDATA[]]></description>
<styleUrl>#style6</styleUrl>
<Point>
<coordinates>174.732224,-36.931053,0.000000</coordinates>
</Point>
</Placemark>
我正在寻找一种使用 datatemaplte 绑定和 XML 解析将坐标绑定到图钉的方法。
我见过很多其他示例,但都使用纬度和经度值,而不是像上面那样的组合坐标。
我认为 XAMl 会是这样的。
<my:Pushpin Location="{Binding Location, Converter={...}}"
Content="{Binding}" />
有谁知道我如何正确解析此 KML 来绑定位置?
这是适用于 WIndows Phone 7
如果您需要说明,请告诉我。
I current have a KML File with each location written as below.
<Placemark>
<name>Placemark 1</name>
<description><![CDATA[]]></description>
<styleUrl>#style6</styleUrl>
<Point>
<coordinates>174.732224,-36.931053,0.000000</coordinates>
</Point>
</Placemark>
I am looking for a way to bind the coordinates to Pushpins using datatemaplte binding and XML parsing.
I have seen quite a few other examples, but all using lat and long values, not a combined coordinates like above.
I assume the XAMl would be something like this.
<my:Pushpin Location="{Binding Location, Converter={...}}"
Content="{Binding}" />
Does anyone have any idea how I would parse this KML correctly to bind the location?
This is for WIndows Phone 7
If you need clarification please let me know.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
String.Split 是你的朋友!
String.Split is your friend!