Create and save a map

Description

This sample demonstrates how to author a map and save it to your portal. On opening the sample you can choose a basemap and optionally one or more operational layers. Tapping on the Done button will display a map with those layers added. Tap on the New button to start over or the Save button to save the map to your portal. You will be required to login and provide a title, tags and description (optional) for the map.

How it works

The sample uses a pre-populated list of layers and basemaps. When you click on Done, the selected basemap is used to create an AGSMap object using initWithBasemap: initializer. The authentication is handled by AGSAuthenticationManager. To save the map the sample uses the saveAs:portal:tags:folder:itemDescription:thumbnail:completion: method on the AGSMap object.


In this topic
  1. Description