How to show traffic on Bing-cards 3D-control (WPF)

I use Infostrat WPF wrapper to control 3D Bing elements (the blog is here http://blogs.msdn.com/virtualearth3d/ ) and wondered how to show traffic, I see that this is possible when I click the 3d button in the browser and click on traffic. Perhaps the solution is to use the AddLayer function, which takes a string, but I cannot figure out what the layer options are.

+3
source share
1 answer

Here is the code I used - I added this property to Infostrat VE control:

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 .

+3

Source: https://habr.com/ru/post/1716130/


All Articles