BingMapTopLayer Enum
Lists Bing Maps layers that can be displayed on the map.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v24.2.dll
Declaration
Members
Name | Description | Image |
---|---|---|
BaseMap
|
The layer that displays the regular road map with labels. |
|
Background
|
The layer that displays base geometry without labels. |
|
Foreground
|
The layer that displays only labels on the map. |
|
TrafficFlow
|
The layer that displays traffic flow. |
Related API Members
The following properties accept/return BingMapTopLayer values:
Remarks
The following code renders the Traffic Flow layer of Bing Maps. Note if the BingMapDataProvider.Kind property is set to BingMapKind.Hybrid, the map is displayed with labels regardless of the display layer type.
ImageLayer imageLayer = new ImageLayer();
mapControl1.Layers.Add(imageLayer);
BingMapDataProvider provider = new BingMapDataProvider();
provider.BingKey = "Insert your BingMaps key.";
provider.TopLayer = BingMapTopLayer.TrafficFlow;
provider.Kind = BingMapKind.RoadLight;
imageLayer.DataProvider = provider;
See Also