ArcGIS Runtime SDK for iOS

Identify graphics

Description

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

How it works

It requires the geoView:didTapAtScreenPoint:mapPoint: method on AGSGeoViewTouchDelegate 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 sample then uses the identifyGraphicsOverlay:screenCoordinate:tolerance:maximumGraphics:completion: method on AGSMapView to identify graphics at that particular touch location.


In this topic
  1. Description