Skip to main content
All docs
V22.1

BingMapTopLayer Enum

Lists Bing Maps layers that can be displayed on the map.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v22.1.dll

Declaration

public enum BingMapTopLayer

Members

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

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