This example shows how to create a custom provider that supplies the map with vector tiles.
To do this, create a class derived from the VectorTileDataProviderBase class.
Override the provider's GetStream
method so that it returns a tile as a sequence of bytes for specific coordinates in the tile grid at the specified zoom level. In this example, the GetStream
method loads binary data in the PBF format from the Data/test.data file.
Assign the provider to the ImageLayer.DataProvider
property.
- How to Create a Data Provider to Load Image Tiles from a Custom Source
- How to implement an in-memory image tile provider in the Map Control
(you will be redirected to DevExpress.com to submit your response)