1

我需要在 WP8.1 应用程序中显示 yandex 地图。适用于 windows 手机的 Yandex 地图 SDK 已过时。如何在 Windows Phone 8.1 上显示 Yandex 地图?

4

1 回答 1

1

本文介绍如何将自定义平铺源设置为 MapControl

简而言之:

MyMap.Style = MapStyle.None;
HttpMapTileDataSource dataSource = new HttpMapTileDataSource("http://vec02.maps.yandex.net/tiles?l=map&v=2.2.3&x={x}&y={y}&z={zoomlevel}");
MapTileSource tileSource = new MapTileSource(dataSource);
tileSource.Layer = MapTileLayer.BackgroundReplacement;
MyMap.TileSources.Add(tileSource);
于 2014-12-11T04:29:46.897 回答