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

Description

A protocol which must be adopted by a class wishing to serve as a delegate for AGSLayer. An instance of the class must then be set as AGSLayer::delegate .

AGSLayer notifies the delegate whenever the layer is loaded or fails to load.

Defined in:
AGSLayerDelegate.h (ArcGIS library)

Since
1.0
Inheritance diagram for <AGSLayerDelegate>:

Instance Methods

(void) - layer:didFailToLoadWithError:
 
(void) - layer:didInitializeSpatialReferenceStatus:
 
(void) - layerDidLoad:
 

Method Documentation

- (void) layer: (AGSLayer *)  layer
didFailToLoadWithError: (NSError *)  error 
optional

Tells the delegate that layer failed to load with the specified error.

Parameters
layerThe layer that failed to load.
errorInformation about the cause of the failure.
Since
1.0
- (void) layer: (AGSLayer *)  layer
didInitializeSpatialReferenceStatus: (BOOL)  srStatusValid 
optional

Tells the delegate that the spatial reference status of the layer has been initialized. This means that the map has determined that the layer either has a matching spatial reference (or has the capability to project to a matching spatial reference), or does not have a matching spatial reference and does not have the capability of reprojecting itself.

- (void) layerDidLoad: (AGSLayer *)  layer
optional

Tells the delegate that layer is loaded and ready to use.

Parameters
layerThe layer that was loaded.
Since
1.0