DevExpress-Examples / winforms-map-custom-vector-tile-provider

Create a custom provider that supplies the map with vector tiles for WinForms Map.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Map for WinForms - Create a Custom Provider of Vector Tiles

This example shows how to create a custom provider that supplies the map with vector tiles.

Resulting map

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.

Files to Look At

Documentation

More Examples

About

Create a custom provider that supplies the map with vector tiles for WinForms Map.

License:Other