Identify graphics

Description

This sample demonstrates how to identify the graphics in a graphics overlay. When you tap on a graphic on the map, you will see an alert control.

How it works

It requires the mapView:didTapAtScreenPoint:mapPoint: method on AGSMapViewTouchDelegate to know when a user tapped on the map. The method provides a property mapPoint which specifies the corresponding touch location in the map. The app then uses the identifyGraphicsOverlay:screenPoint:tolerance:maximumResults:completion: method on AGSMapView to identify graphics at that particular touch location.


In this topic
  1. Description