Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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

MapboxDataProvider.Tileset Property

Gets or sets a tileset that the provider loads from the service.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v24.2.dll

NuGet Package: DevExpress.Wpf.Map

#Declaration

public MapboxTileset Tileset { get; set; }

#Property Value

Type Description
MapboxTileset

The tileset name/names. The default value is Streets,Terrain.

Available values:

Name Description
Streets

The Streets tileset.

Terrain

The Terrain tileset.

Traffic

The Traffic tileset.

#Remarks

The following example shows how to load the Terrain tileset:

<dxm:MapControl>
    <dxm:ImageLayer>
        <dxm:MapboxDataProvider AccessToken="Your_Access_Token" Tileset="Terrain"/>
    </dxm:ImageLayer>
</dxm:MapControl>

You can display multiple tilesets simultaneously. Tilesets are displayed in the following order:

  • Streets (displayed as the bottommost in case of multiple tilesets)
  • Terrain
  • Traffic
<dxm:MapControl>
    <dxm:ImageLayer>
        <dxm:MapboxDataProvider ... Tileset="Streets,Traffic"/>
    </dxm:ImageLayer>
</dxm:MapControl>
See Also