Show callout

Description

This sample demonstrates how to show location coordinates on a map using a callout. Tap on the map to get the coordinates for the location in a callout. Tap again to hide it.

How it works

When the user taps on the map view the geoView:didTapAtScreentPoint:screenPoint:mapPoint: method on the AGSGeoViewTouchDelegate is fired. Inside this method, we have the logic to either show or hide the callout. In order to show, we setup the callout object on the mapView, by setting the title property as "Location" and detail property as a string composed using mapPoint.


In this topic
  1. Description