如何使用Windows Phone 8应用程序的KML文件 [英] How to use KML file for Windows Phone 8 apps

查看:91
本文介绍了如何使用Windows Phone 8应用程序的KML文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 


我正在用C#开发Windows Phone 8地图应用程序。在Windows Phone 8应用程序中,如何在地图中使用KML文件绘制路径。 



谢谢,


Anuss




Sudhanthira

解决方案

KML file是包含航点的XML格式。您可以使用System.XML类来读取文件,创建

路线
基于航点,然后将其添加到MapRoute中。


如何在Windows Phone 8中的地图上显示路线和路线显示如何根据查询添加
路线。您可以按照相同的概念添加基于KML文件的路径,但是从KML加载MapRoute。


- Rob



 Hi,

I am developing Windows Phone 8 map app in C#. In Windows Phone 8 app, How to use KML file in map for drawing path. 

Thanks,

Anuss


Sudhanthira

解决方案

The KML file is an XML format containing waypoints. You can use the System.XML classes to read the file, create a Route based on the waypoints, and then add that in a MapRoute to your map.

How to display route and directions on a map in Windows Phone 8 shows how to add a route based on a query. You would follow the same concepts to add a route based on your KML file, but load the MapRoute from the KML.

--Rob


这篇关于如何使用Windows Phone 8应用程序的KML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆