org.gwtopenmaps.openlayers.client.layer
Class Layer

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
          extended by org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
              extended by org.gwtopenmaps.openlayers.client.layer.Layer
Direct Known Subclasses:
Canvas, Google, HTTPRequestLayer, Image, Markers, OSM, Vector

public class Layer
extends OpenLayersEObjectWrapper

Author:
Erdem Gunay, Amr Alam - Refractions Research, Edwin Commandeur - Atlis EJS

Field Summary
static String ARCGIS93REST_CLASS_NAME
           
static String BOXES_CLASS_NAME
           
static String GOOGLE_CLASS_NAME
           
static String GRIDLAYER_CLASS_NAME
           
static String HTTPREQUESTLAYER_CLASS_NAME
           
static String IMAGE_CLASS_NAME
           
static String MARKERS_CLASS_NAME
           
static String OSM_CLASS_NAME
           
static String TMS_CLASS_NAME
           
static String VECTOR_CLASS_NAME
           
static String WMS_CLASS_NAME
           
static String XYZ_CLASS_NAME
           
 
Fields inherited from class org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
eventListeners
 
Constructor Summary
protected Layer(JSObject element)
           
 
Method Summary
 void addLayerLoadCancelListener(LayerLoadCancelListener listener)
           
 void addLayerLoadEndListener(LayerLoadEndListener listener)
           
 void addLayerLoadStartListener(LayerLoadStartListener listener)
           
 void addLayerVisibilityChangedListener(LayerVisibilityChangedListener listener)
           
 void addOptions(LayerOptions layerOptions)
           
 boolean displayInLayerSwitcher()
          Indicates if the Layer should be displayed in the LayerSwitcher Control.
 String getId()
           
 String getName()
           
 float getOpacity()
           
 boolean isBaseLayer()
          Indicates if Layer is a BaseLayer.
 boolean isVisible()
           
static Layer narrowToLayer(JSObject layer)
           
 boolean redraw()
           
 void setDisplayInLayerSwitcher(boolean display)
           
 void setIsBaseLayer(boolean isBaseLayer)
           
 void setIsVisible(boolean isVisible)
           
 void setName(String name)
           
 void setOpacity(float opacity)
           
 
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersEObjectWrapper
getListeners, narrowToOpenLayersEObjectWrapper, removeListener
 
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
getClassName, getEvents, narrowToOpenLayersObjectWrapper
 
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
getJSObject, setJSObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARCGIS93REST_CLASS_NAME

public static final String ARCGIS93REST_CLASS_NAME
See Also:
Constant Field Values

BOXES_CLASS_NAME

public static final String BOXES_CLASS_NAME
See Also:
Constant Field Values

GOOGLE_CLASS_NAME

public static final String GOOGLE_CLASS_NAME
See Also:
Constant Field Values

GRIDLAYER_CLASS_NAME

public static final String GRIDLAYER_CLASS_NAME
See Also:
Constant Field Values

HTTPREQUESTLAYER_CLASS_NAME

public static final String HTTPREQUESTLAYER_CLASS_NAME
See Also:
Constant Field Values

IMAGE_CLASS_NAME

public static final String IMAGE_CLASS_NAME
See Also:
Constant Field Values

MARKERS_CLASS_NAME

public static final String MARKERS_CLASS_NAME
See Also:
Constant Field Values

OSM_CLASS_NAME

public static final String OSM_CLASS_NAME
See Also:
Constant Field Values

TMS_CLASS_NAME

public static final String TMS_CLASS_NAME
See Also:
Constant Field Values

VECTOR_CLASS_NAME

public static final String VECTOR_CLASS_NAME
See Also:
Constant Field Values

WMS_CLASS_NAME

public static final String WMS_CLASS_NAME
See Also:
Constant Field Values

XYZ_CLASS_NAME

public static final String XYZ_CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

Layer

protected Layer(JSObject element)
Method Detail

narrowToLayer

public static Layer narrowToLayer(JSObject layer)

setIsBaseLayer

public void setIsBaseLayer(boolean isBaseLayer)

isBaseLayer

public boolean isBaseLayer()
Indicates if Layer is a BaseLayer.

Returns:
true if the layer is a BaseLayer false if the layer is not a BaseLayer

getId

public String getId()

getOpacity

public float getOpacity()

setOpacity

public void setOpacity(float opacity)

displayInLayerSwitcher

public boolean displayInLayerSwitcher()
Indicates if the Layer should be displayed in the LayerSwitcher Control.

Returns:
true if the layer should be displayed in the LayerSwitcher Control, false if the layer should be hidden

setDisplayInLayerSwitcher

public void setDisplayInLayerSwitcher(boolean display)

getName

public String getName()
Returns:
The name of the Layer, or an empty string if no name was found.

setName

public void setName(String name)
Parameters:
name - - the new name for the layer.

isVisible

public boolean isVisible()

setIsVisible

public void setIsVisible(boolean isVisible)

redraw

public boolean redraw()

addOptions

public void addOptions(LayerOptions layerOptions)

addLayerLoadStartListener

public void addLayerLoadStartListener(LayerLoadStartListener listener)

addLayerLoadEndListener

public void addLayerLoadEndListener(LayerLoadEndListener listener)

addLayerLoadCancelListener

public void addLayerLoadCancelListener(LayerLoadCancelListener listener)

addLayerVisibilityChangedListener

public void addLayerVisibilityChangedListener(LayerVisibilityChangedListener listener)


Copyright © 2010 sourceforge. All Rights Reserved.