This example shows how to implement a custom image tile provider. To do this, create a MapDataProviderBase
class descendant and assign it to the ImageLayer.DataProvider
property.
This example loads image tiles from a local cache. The image tiles are downloaded in advance from a public server with OpenStreetMap tiles. A list of alternative OpenStreetMap image tile providers is available here: OpenStreetMap: Tile usage policy.
Note: If you only need to change an URI to the location of OpenStreetMap image tiles, use the
OpenStreetMapDataProvider
and specify itsTileUriTemplate
property.
(you will be redirected to DevExpress.com to submit your response)