com.esri.android.map.event
Interface OnWebMapLoadListener

All Superinterfaces:
OnMapEventListener

public interface OnWebMapLoadListener
extends OnMapEventListener

Implements this listener to handle WebMap loading on a MapView.


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

Method Detail

onWebMapLoadError

MapLoadAction<UserCredentials> onWebMapLoadError(MapView source,
                                                 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(MapView source,
                      WebMap webmap,
                      WebMapLayer wmlayer,
                      Layer layer,
                      UserCredentials credentials)
Implements this method to handle the event when adding a WebMapLayer to a MapView.

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.