UriBasedVectorTileDataProvider Class
Provides map data from a set of PBF or MVT files.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v20.1.dll
NuGet Package: DevExpress.Win.Map
Declaration
Remarks
You can use UriBasedVectorTileDataProvider to draw a map based on a set of .PBF or .MVT files that store vector tiles in binary format.
- Create an image layer and add it to the MapControl.Layers collection.
- Create a UriBasedVectorTileDataProvider instance and assign it to the ImageLayer.DataProvider property.
- Specify the UriBasedVectorTileDataProvider.TileUriTemplate property.
ImageLayer layer = new ImageLayer();
UriBasedVectorTileDataProvider dataProvider = new UriBasedVectorTileDataProvider();
dataProvider.TileUriTemplate = @"D:\PbfFiles\{x}-{y}-{level}.pbf";
layer.DataProvider = dataProvider;
mapControl1.Layers.Add(layer);
Apply a Custom Style
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.
Inheritance
See Also