<AGSMapViewLayerDelegate> Protocol Reference


Description

A protocol which must be adopted by a class wishing to be called for layer related actions happening on the map.

All of the methods of this protocol are optional.

Defined in:
AGSMapView.h ( ArcGIS library)
Since:
1.8

List of all members.

Public Member Functions

(void) - mapView:didLoadLayerForLayerView:
(void) - mapView:failedLoadingLayerForLayerView:baseLayer:withError:
(void) - mapView:failedLoadingLayerForLayerView:withError:
(void) - mapView:failedLoadingWithError:
(BOOL) - mapView:shouldFindGraphicsInLayer:atPoint:mapPoint:
(void) - mapViewDidLoad:

Member Function Documentation

- (void) mapView: (AGSMapView *)  mapView
didLoadLayerForLayerView: (UIView< AGSLayerView > *)  layerView 
[optional]

Tells the delegate a layer that was added to the map was loaded.

Parameters:
mapView Map to which layer has been added.
layerView Layer view that was added to map
Since:
1.8
- (void) mapView: (AGSMapView *)  mapView
failedLoadingLayerForLayerView: (UIView< AGSLayerView > *)  layerView
baseLayer: (BOOL)  baseLayer
withError: (NSError *)  error 
[optional]

Tells the delegate a layer that was added to the map could not be loaded. If the layer that failed is the base layer, the map will be in an unloaded and waiting state until the base layer is either removed, resubmitted or replaced.

Parameters:
mapView Map to which layer had to be added.
layerView Layer view that failed to be added.
baseLayer Whether or not the layer is the map's current designated base layer.
error Error describing reason for failure.
Since:
2.1
- (void) mapView: (AGSMapView *)  mapView
failedLoadingLayerForLayerView: (UIView< AGSLayerView > *)  layerView 
[optional]

Tells the delegate a layer that was added to the map could not be loaded.

Parameters:
mapView Map to which layer had to be added.
layerView Layer view that failed to be added.
error Error describing reason for failure.
Since:
1.8
Deprecated:
Deprecated at 2.1. Use failedLoadingLayerForLayerView:baseLayer:withError: instead.
- (void) mapView: (AGSMapView *)  mapView   [optional]

Tells the delegate the map failed to load. This happens when the following conditions are met. (1) The map never loaded any valid layers. (2) All layers are removed from the map.

Parameters:
mapView The map that failed to load.
error Error describing reason for failure.
Since:
1.8
Deprecated:
Deprecated at 2.1. Use failedLoadingLayerForLayerView:baseLayer:withError: instead.
- (BOOL) mapView: (AGSMapView *)  mapView
shouldFindGraphicsInLayer: (AGSGraphicsLayer *)  graphicsLayer
atPoint: (CGPoint)  screen
mapPoint: (AGSPoint *)  mappoint 
[optional]

Asks delegate whether to find which graphics in the specified layer intersect the tapped location. Default is YES.

Parameters:
mapView Map containing callout to be shown.
graphicsLayer Graphics layer in which to find graphics.
screen Location in screen coordinates.
mappoint Map point.
Since:
1.8
- (void) mapViewDidLoad: (AGSMapView *)  mapView   [optional]

Tells the delegate the map is loaded and ready for use. Fires when the map's base layer loads.

Parameters:
mapView The map that has loaded.
Since:
1.8