Skip to content

DevExpress-Examples/dxmap-getting-started-lesson-2-connect-to-openstreetmap-e3617

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)