您的位置:首页 > 其它

bing map for wpf 怎么显示中文地图

2013-12-21 13:14 323 查看
添加一下代码:

string suriFormat = "http://r2.tiles.ditu.live.com/tiles/r{quadkey}.png?g=41";
Microsoft.Maps.MapControl.WPF.TileSource tileSource = new Microsoft.Maps.MapControl.WPF.TileSource(suriFormat);
Microsoft.Maps.MapControl.WPF.MapTileLayer tileLayer = new Microsoft.Maps.MapControl.WPF.MapTileLayer(); //初始化一个图层
tileLayer.TileSource = tileSource;
tileLayer.Opacity = 0.9;
this.bingmap1.Children.Add(tileLayer);
this.bingmap1.Mode = new Microsoft.Maps.MapControl.WPF.MercatorMode();
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: