BingMapDataProvider.TopLayer Property
Gets or sets the display layer that is rendered over the imagery set received from the Bing Maps service.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v24.1.dll
NuGet Package: DevExpress.Win.Map
Declaration
Property Value
Type | Default | Description |
---|---|---|
BingMapTopLayer | BaseMap | A value that specifies a layer that is displayed over the imagery set received from the Bing Maps service. |
Available values:
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. |
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;