Add OpenStreetMap as a basemap layer.
OpenStreetMap is a free community-edited basemap.
- Create a basemap with the static method
Basemap.CreateOpenStreetMap
- Create a map with that basemap.
- Show the map in a map view.
The attribution text will be set to the required OpenStreetMap attribution automatically.
Apps that expect to make many requests to OpenStreetMap should consider using an alternative tile server via the WebTiledLayer
class. See Layer types described for more information on OpenStreetMap usage restrictions and alternatives.
Esri now hosts an OpenStreetMap vector layer that uses recent OpenStreetMap data in conjunction with a style matching the default OpenStreetMap style. This layer is not subject to the tile access restrictions that apply to tiles fetched from OpenStreetMap.org.
- Map
- Basemap.CreateOpenStreetMap
- OpenStreetMapLayer
- Basemap
- MapView
Layers, OpenStreetMap, OSM, basemap