|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gwtopenmaps.openlayers.client.util.JSObjectWrapper org.gwtopenmaps.openlayers.client.layer.LayerOptions
public class LayerOptions
Constructor Summary | |
---|---|
|
LayerOptions()
|
protected |
LayerOptions(JSObject jsObject)
|
Method Summary | |
---|---|
void |
setAlwaysInRange(boolean alwaysInRange)
|
void |
setApplyAlphaHack(boolean applyAlphaHack)
|
void |
setAttribution(String attribution)
Sets an attribution block on the map. |
void |
setDisplayInLayerSwitcher(boolean display)
Display or hide the name of a Layer in the LayerSwitcher Control. |
void |
setDisplayOutsideMaxExtent(boolean displayOutsideMaxExtent)
|
void |
setGutter(float gutter)
|
void |
setIsBaseLayer(boolean isBaseLayer)
To specify if the layer is a BaseLayer. |
void |
setLayerOpacity(double opacity)
A floating point number between 1.0 and 0.0 that specifies the opacity of a Layer. |
void |
setMaxExtent(Bounds maxExtent)
|
void |
setMaxResolution(float maxResolution)
|
void |
setMaxScale(float maxScale)
|
void |
setMinExtent(Bounds minExtent)
|
void |
setMinResolution(float minResolution)
|
void |
setMinScale(float minScale)
|
void |
setNumZoomLevels(int numZoomLevels)
|
void |
setProjection(String projection)
|
void |
setResolutions(double[] resolutions)
For information on how OpenLayers can be configured to use different scales/resolutions, see: http://trac.openlayers.org/wiki/SettingZoomLevels |
void |
setScales(float[] scales)
|
void |
setTransitionEffect(String transition)
Deprecated. - use setTransitionEffect(TransitionEffect) |
void |
setTransitionEffect(TransitionEffect transition)
|
void |
setUnits(String units)
|
void |
setVisibility(boolean visibility)
see Layer . |
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 |
Constructor Detail |
---|
protected LayerOptions(JSObject jsObject)
public LayerOptions()
Method Detail |
---|
public void setDisplayInLayerSwitcher(boolean display)
display
- - true to display the layer in the LayerSwitcher control,
false to hide the layerpublic void setIsBaseLayer(boolean isBaseLayer)
Layer
.
If there is more than one BaseLayer then it is possible to choose between BaseLayers in the LayerSwitcher.
The default value for isBaseLayer depends on the type of layer.
By default isBaseLayer is true for WMS layers, ... .
Since OL 2.8 it is possible to specify on the map that only overlays should be
used (will this overrule isBaseLayer property of layer?).
public void setAttribution(String attribution)
attribution
- - the attribution textpublic void setLayerOpacity(double opacity)
opacity
- - 1.0 = completely opaque, 0.0 = completely non-opaquepublic void setVisibility(boolean visibility)
Layer
.
visibility
- - Visibility of the layer on the map. Default is true.public void setNumZoomLevels(int numZoomLevels)
public void setDisplayOutsideMaxExtent(boolean displayOutsideMaxExtent)
displayOutsideMaxExtent
- - Set true to request map tiles outside
the maxExtent of the Layer, default is false.public void setApplyAlphaHack(boolean applyAlphaHack)
applyAlphaHack
- - Set true to enable IE6 alpha hack for transparent PNGs.
Default is false, because of performance overhead.public void setAlwaysInRange(boolean alwaysInRange)
public void setGutter(float gutter)
gutter
- - The width in pixels of the gutter around the image. The gutter
is ignored.
public void setProjection(String projection)
projection
- - see MapOptions
public void setUnits(String units)
units
- - see MapOptions
public void setMaxExtent(Bounds maxExtent)
maxExtent
- - see MapOptions.setMaxExtent(Bounds)
public void setMinExtent(Bounds minExtent)
minExtent
- - see MapOptions.setMinExtent(Bounds)
public void setMaxResolution(float maxResolution)
maxResolution
- - see MapOptions.setMaxResolution(float)
public void setMinResolution(float minResolution)
minResolution
- - see MapOptions.setMinResolution(float)
public void setMaxScale(float maxScale)
public void setMinScale(float minScale)
public void setScales(float[] scales)
public void setTransitionEffect(String transition)
transition
- - document supported transition effects herepublic void setTransitionEffect(TransitionEffect transition)
public void setResolutions(double[] resolutions)
resolutions
- -array of resolutions
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |