com.esri.map
Interface OnWebMapLoadListener


public interface OnWebMapLoadListener

Implements this listener to handle WebMap loading on a MapView.

Since:
1.1

Method Summary
 void onWebMapLayerAdd(WebMap webmap, WebMapLayer wmlayer, Layer layer, UserCredentials credentials)
          Implements this method to handle the event when a WebMapLayer is added to a MapView and initialized.
 MapLoadAction<UserCredentials> onWebMapLoadError(WebMap webmap, WebMapLayer wmlayer, Layer layer, Throwable error, UserCredentials credentials)
          Implements this method to handle WebMap loading errors.
 

Method Detail

onWebMapLoadError

MapLoadAction<UserCredentials> onWebMapLoadError(WebMap webmap,
                                                 WebMapLayer wmlayer,
                                                 Layer layer,
                                                 Throwable error,
                                                 UserCredentials credentials)
Implements this method to handle WebMap loading errors.

Parameters:
source - source object which originates the event.
webmap - the WebMap which is causing the error.
wmlayer - the layer is causing the error.
layer - the layer is causing the error. The layer may be null if the error is stopping the layer instantiating.
error - the error message.
credentials - the current credentials to access the layer.
Returns:
return the action to handle the error.

onWebMapLayerAdd

void onWebMapLayerAdd(WebMap webmap,
                      WebMapLayer wmlayer,
                      Layer layer,
                      UserCredentials credentials)
Implements this method to handle the event when a WebMapLayer is added to a MapView and initialized.

Parameters:
source - source object which originates the event.
webmap - the WebMap which is processing.
wmlayer - the layer definition in WebMap.
layer - the layer to add. The layer may be null if the error is stopping the layer instantiating.
credentials - the current credentials to access the layer.


Copyright © 2012. All Rights Reserved.