Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    BingMapTopLayer Enum

    OBSOLETE

    This class is obsolete. Microsoft deprecated Bing Maps on June 30th, 2025. For alternative providers, see https://www.devexpress.com/bing-maps-winforms.

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

    Namespace: DevExpress.XtraMap

    Assembly: DevExpress.XtraMap.v25.1.dll

    NuGet Package: DevExpress.Win.Map

    #Declaration

    [Obsolete("This class is obsolete. Microsoft deprecated Bing Maps on June 30th, 2025. For alternative providers, see https://www.devexpress.com/bing-maps-winforms.")]
    [PreferableMember("BingMapTopLayer", "", "")]
    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