Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 2.86 KB

File metadata and controls

32 lines (22 loc) · 2.86 KB

Files to look at:

How to: Connect to OpenStreetMap

This example shows how to use the OpenStreetMapDataProvider class to connect the Map Control to the OpenStreetMap image tile service.

Review the Copyright and License and Tile usage policy pages before using map images in the OpenStreetMap format.

To use the OpenStreetMap provider, you should provide the UserAgent parameter with a valid value to identify your application.

Set the OpenStreetMapDataProvider.TileUriTemplate property to a tile's URL. You can use the public OpenStreetMap server that has limitations described in the Tile usage policy. To do this, set TileUriTemplate to "https://{subdomain}.tile.openstreetmap.org/{tileLevel}/{tileX}/{tileY}.png". You can also deploy your own tile server.

See also:

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)