<AGSWebMapDelegate> Protocol Reference


Description

A protocol which must be adopted by a class wishing to serve as a delegate for AGSWebMap. AGSWebMap informs the delegate of events and consults the delegate before taking some action.

All of the methods of this protocol are optional.

Since:
1.8

List of all members.

Public Member Functions

(NSString *) - bingAppId
(void) - didFailToLoadLayer:url:baseLayer:withError:
(void) - didFailToLoadLayer:withError:
(void) - didLoadLayer:
(void) - didOpenWebMap:intoMapView:
(void) - webMap:didFailToLoadWithError:
(void) - webMapDidLoad:

Member Function Documentation

- (NSString*) bingAppId   [optional]

Called when the webmap needs to open a Bing layer.

Since:
1.8
- (void) didFailToLoadLayer: (NSString *)  layerTitle
url: (NSURL *)  url
baseLayer: (BOOL)  baseLayer
withError: (NSError *)  error 
[optional]

Called when a layer fails to load. The delegate can either skip loading the layer using continueOpenAndSkipCurrentLayer method or retry loading it with credentials using continueOpenWithCredential: method on AGSWebMap

Parameters:
layerTitle The title of the layer being loaded.
url The url of the layer being loaded.
baseLayer Whether or not the layer is part of the basemap layers.
error The error describing why the layer failed to load.
Since:
2.1
- (void) didFailToLoadLayer: (NSString *)  layerTitle   [optional]

Called when a layer fails to load. The delegate can either skip loading the layer using continueOpenAndSkipCurrentLayer method or retry loading it with credentials using continueOpenWithCredential: method on AGSWebMap

Since:
1.8
Deprecated:
Deprecated at 2.1. Use didFailToLoadLayer:url:baseLayer:withError: instead.
- (void) didLoadLayer: (AGSLayer *)  layer   [optional]

Called when a layer loads.

Since:
1.8
- (void) didOpenWebMap: (AGSWebMap *)  webMap
intoMapView: (AGSMapView *)  mapView 
[optional]

Called when a webmap is done opening into an AGSMapView.

Since:
1.8
- (void) webMap: (AGSWebMap *)  webMap
didFailToLoadWithError: (NSError *)  error 
[optional]

Tells the delegate that the specified error was encountered while tyring to retrieve the webmap's data.

Parameters:
webMap The webmap that failed to load.
error Information about the cause of the failure.
Since:
2.0
- (void) webMapDidLoad: (AGSWebMap *)  webMap   [optional]

Tells the delegate that the webmap data was retrieved successfully.

Parameters:
webMap The webmap that was loaded.
Since:
2.0