如何使用Windows Phone 8应用程序的KML文件 [英] How to use KML file for Windows Phone 8 apps
问题描述
我正在用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屋!