none
请问这个例子使用的地图是不是属于BingMap?能否在该地图上使用BingMap的API函数 RRS feed

  • 问题

  • 这一节是如何部署中文地图系统

    步骤一、

    public class ChinaTileSource
    {
    /// <summary>
    /// 加载中国地图系统
    /// http://r2.tiles.ditu.live.com/tiles/r{quadkey}.png?g=41中国地图系统
    /// </summary>
    /// <returns>TileSource</returns>
    public TileSource GetChinaTileSource()
    {
    UriBuilder tileSourceUri = new UriBuilder("http://r2.tiles.ditu.live.com/tiles/r{quadkey}.png?g=41");

    MapTileLayer tileLayer = new MapTileLayer();
    LocationRectTileSource tileSource = new LocationRectTileSource(tileSourceUri.Uri.ToString()
    , new LocationRect(new Location(60, 60), new Location(13, 140)), new Range<double>(1, 16));
    return tileSource;
    }
    }

     

    步骤二、

    public ChinaMapControl()
    {
    InitializeComponent();

    MapTileLayer tileLayer = new MapTileLayer();
    ChinaTileSource gts = new ChinaTileSource();

    tileLayer.TileSources.Add(gts.GetChinaTileSource());
    MyMap.Children.Add(tileLayer);

    this.MyMap.Mode = new MercatorMode();
    }

     

    <script type="text/javascript">// <![CDATA[ if ($ != jQuery) { $ = jQuery.noConflict(); } var isLogined = true; var cb_blogId = 70656; var cb_entryId = 1805861; var cb_blogApp = "salam"; var cb_blogUserGuid = "8b0e5123-0c5f-df11-ba8f-001cf0cd104b"; var cb_entryCreatedDate = '2010/8/22 17:44:00'; ]]></script>
    2011年9月8日 10:47

答案

全部回复