public class Layer
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
void |
addErrorHandler(ErrorHandler handler)
Add error handler to layer.
|
void |
addLoadHandler(LayerLoadHandler handler)
Add load handler to layer.
|
void |
addOpacityChangeHandler(OpacityChangeHandler handler)
Add opacity change handler to layer
|
void |
addUpdateEndHandler(UpdateEndHandler handler)
Add update end handler to layer
|
void |
addUpdateHandler(UpdateHandler handler)
Deprecated.
at v2.0. Use addUpdateStartHandler and addUpdateEndHandler instead.
|
void |
addUpdateStartHandler(UpdateStartHandler handler)
Add update start handler to layer.
|
void |
addVisibilityChangeHandler(VisibilityChangeHandler handler)
Add visibility change handler to layer.
|
Credential |
getCredential()
Provides credential information for the layer such as userid and token if the layer represents a
resource that is secured with token-based authentication.
|
java.lang.String |
getId()
ID assigned to the layer.
|
double |
getOpacity()
Opacity or transparency of layer.
|
java.lang.String |
getUrl()
URL to the ArcGIS Server REST resource that represents a map service.
|
void |
hide()
Sets the visibility of the layer to "false".
|
boolean |
isloaded()
When the layer is loaded, the value becomes "true", and layer properties can be accessed.
|
boolean |
isVisible()
Visibility of the layer.
|
void |
setOpacity(double o)
Sets the opacity of the layer.
|
void |
setVisibility(boolean isVisible)
Sets the visibility of the layer.
|
void |
show()
Sets the visibility of the layer to "true".
|
public final Credential getCredential()
public final java.lang.String getId()
public final boolean isloaded()
public final double getOpacity()
public final java.lang.String getUrl()
public final boolean isVisible()
public final void hide()
public final void setOpacity(double o)
o
- - opacity valuepublic final void setVisibility(boolean isVisible)
isVisible
- public final void show()
public final void addErrorHandler(ErrorHandler handler)
handler
- - Fires when there is a problem retrieving a layerpublic final void addLoadHandler(LayerLoadHandler handler)
handler
- - Fires after layer properties for the layer are successfully populated. This event must be successful
before the layer can be added to the map.public final void addOpacityChangeHandler(OpacityChangeHandler handler)
handler
- - Fires when the layer opacity has been changed, and returns the opacity value.public final void addUpdateHandler(UpdateHandler handler)
handler
- - Fires any time a layer has finished loading or updating itself. For an ArcGISTiledMapServiceLayer,
the event fires when all required tiles have been retrieved and displayed. For an ArcGISDynamicMapServiceLayer
or ArcGISImageServiceLayer, the event fires when the map image has been retrieved and displayed. For a GraphicsLayer,
the event fires when all graphics have been redrawn after a pan or zoom.public final void addUpdateEndHandler(UpdateEndHandler handler)
handler
- - Fires when a layer has finished updating its content. It is the responsibility of the (Layer)
subclass to determine when this event is fired.public final void addUpdateStartHandler(UpdateStartHandler handler)
handler
- - Fires when a layer begins to update its content. It is the responsibility of the subclass to
determine when this event is fired.public final void addVisibilityChangeHandler(VisibilityChangeHandler handler)
handler
- - Fires when the layer visibilty has been changed, and returns the new visibility.