Skip to content

README.md

Show callout

This sample demonstrates how to show location coordinates on a map using a callout.

How to use the sample

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(_:didTapAtScreenPoint: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.

You can’t perform that action at this time.