ArcGIS Runtime SDK for macOS

OpenStreetMap layer


This samples demonstrates how to display a map with an OpenStreetMap basemap.

OpenStreetMap layer

How it works

An AGSMap is instantiated with AGSBasemapType.openStreetMap passed in as the basemapType parameter. It is then set as the map of AGSMapView. The attribution required by OpenStreetMap is automatically added to the attributionText of AGSMapView without any additional code..

In this topic
  1. Description