Skip to main content
All docs
V24.1

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

[DefaultValue(BingMapTopLayer.BaseMap)]
public BingMapTopLayer TopLayer { get; set; }

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.

Bing Maps BaseMap layer

Background

The layer that displays base geometry without labels.

Bing Maps Background layer

Foreground

The layer that displays only labels on the map.

Bing Maps Foreground layer

TrafficFlow

The layer that displays traffic flow.

Bing Maps Traffic layer

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