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

添加一下代码:

 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();

 

posted @ 2013-12-21 13:14  天王星天  阅读(602)  评论(0编辑  收藏  举报