wpf-devexpress-dot-xpf-dot-map-15ba97af.md
A data provider that loads vector tiles from a MbTiles database.
Namespace : DevExpress.Xpf.Map
Assembly : DevExpress.Xpf.Map.v25.2.dll
NuGet Package : DevExpress.Wpf.Map
public class MbTilesDataProvider :
VectorTileDataProviderBase
Public Class MbTilesDataProvider
Inherits VectorTileDataProviderBase
A set of tiles can be packaged in MbTiles files (wrapped SQLite databases) stored locally or on a server. MbTiles can also contain raster tiles.
Follow the steps below to load data from a MbTiles file:
<dxm:MapControl>
<dxm:ImageLayer>
<dxm:MbTilesDataProvider FileUri="D:\MapTiles\countries.mbtiles"/>
</dxm:ImageLayer>
</dxm:MapControl>
If a default vector tile style does not meet your requirements, you can apply a custom style. Use the VectorTileDataProviderBase.StyleFileUri property to define a path to a style file. See Vector Tile Providers: Vector Tile Styles for more information about styles.
<dxm:MbTilesDataProvider ... StyleFileUri="D:\Styles\basic-style.json"/>
Object DispatcherObject DependencyObject Freezable MapDependencyObject MapImageDataProviderBase DevExpress.Xpf.Map.MapTileDataProviderBase ImageTileDataProvider VectorTileDataProviderBase MbTilesDataProvider
See Also