10.2.5: <AGSHitTestable> Protocol Reference
10.2.5
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
<AGSHitTestable> Protocol Reference

Description

This protocol contains properties for a layer that define its behavior for hit-testing features when a user taps on the map and for automatically displaying callouts for hit-tested features.

Defined in:
AGSHitTestable.h ( ArcGIS library)

Since
10.2
Inheritance diagram for <AGSHitTestable>:
AGSFeatureTableLayer AGSGraphicsLayer AGSImageServiceLayer AGSFeatureLayer AGSSketchGraphicsLayer

Properties

BOOL allowCallout
 
BOOL allowHitTest
 
id< AGSLayerCalloutDelegatecalloutDelegate
 

Property Documentation

- (BOOL) allowCallout
readwritenonatomicassign

Property that determines if the layer allows callouts to be shown automatically when a user taps on any of its features. Default is YES, and whenever features are found during hit-testing, the layer's calloutDelegate is consulted to find out what should be shown in the callout for the top-most feature. If the layer's calloutDelegate is not set, AGSCallout::delegate is consulted next.

If this property is set to NO, callout will never automatically display for any hit-tested features, although you could still programatically display the callout for any features in the layer.

Since
10.2
- (BOOL) allowHitTest
readwritenonatomicassign

Property that determines if the layer allows its features to be hit-tested when a user taps on the map. Default is YES, and hit-tested features are returned to mapView:didClickAtPoint:mapPoint:features: (AGSMapViewTouchDelegate-p) as long as a callout is not automatically displayed.

Since
10.2
- (id<AGSLayerCalloutDelegate>) calloutDelegate
readwritenonatomicweak

Delegate that allows the layer to react when a callout is shown for one of it's features. The delegate can set up the callout to display relevant information about the feature, or can choose to omit displaying the callout. If this delegate is not set, AGSCallout::delegate will be consulted instead.

Since
10.2