2009-08-26 95 views

回答

3

這是我使用的代碼 - 我加了這個屬性來Infostrat的VE控制:

public bool ShowTraffic 
     { 
      set 
      { 
       if(value) 
        GlobeControl.Host.DataSources.Add(new DataSourceLayerData("terrain", "traffic", "http://www.bing.com/maps/Manifests/TR.xml", 
         DataSourceUsage.TextureMap, 10, 1.0)); 

      } 
     } 

我想通了這一點,從這裏閱讀文檔: http://blogs.msdn.com/virtualearth3d/archive/2009/01/25/documentation.aspx

這是一個很好的參考,即使你」重新在WPF中工作。請記住,雖然現場的Urls現在是bings。