Skip to main content
All docs
V25.1
  • BingTrafficIncidentDataProvider Class

    OBSOLETE

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

    Allows you to receive information about traffic incidents within a specified area from the Bing Maps service and display incident icons 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("BingTrafficIncidentDataProvider", "", "")]
    public class BingTrafficIncidentDataProvider :
        BingMapDataProviderBase

    Remarks

    Follow the steps below to create a map with traffic incidents:

    To include traffic location codes in the method’s result, enable the BingTrafficIncidentDataProvider.Options.IncludeLocationCodes property.

    After you obtain a list of incidents, the provider raises the TrafficIncidentCalculated event. You can handle the event to access the collection of received incidents or add custom logic.

    Implements

    See Also