org.gwtopenmaps.openlayers.client.layer
Class VectorOptions
java.lang.Object
org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
org.gwtopenmaps.openlayers.client.layer.LayerOptions
org.gwtopenmaps.openlayers.client.layer.VectorOptions
public class VectorOptions
- extends LayerOptions
Convenience class exposing options that are valid for a vector layer. There's
also a Vector constructor that can take an Options object directly.
- Author:
- Edwin commandeur - Atlis EJS, Rafael Ceravolo - LOGANN
Methods inherited from class org.gwtopenmaps.openlayers.client.layer.LayerOptions |
setAlwaysInRange, setApplyAlphaHack, setAttribution, setDisplayInLayerSwitcher, setDisplayOutsideMaxExtent, setGutter, setLayerOpacity, setMaxExtent, setMaxResolution, setMaxScale, setMinExtent, setMinResolution, setMinScale, setNumZoomLevels, setProjection, setResolutions, setScales, setTransitionEffect, setTransitionEffect, setUnits, setVisibility |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VectorOptions
public VectorOptions()
setIsBaseLayer
public void setIsBaseLayer(boolean b)
- Description copied from class:
LayerOptions
- To specify if the layer is a BaseLayer. Only one BaseLayer can be active at a time,
IS THIS TRUE?: if a BaseLayer is active it cannot be made invisible
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?).
- Overrides:
setIsBaseLayer
in class LayerOptions
getIsBaseLayer
public boolean getIsBaseLayer()
setGeometryType
public void setGeometryType(String gtype)
getGeometryType
public String getGeometryType()
setStyle
public void setStyle(Style style)
getStyle
public JSObject getStyle(Style style)
setRendererOptions
public void setRendererOptions(RendererOptions rendererOptions)
getRendererOptions
public JSObject getRendererOptions()
setStyleMap
public void setStyleMap(StyleMap styleMap)
- Set the StypeMap property. Use StyleMap instead of just setting the
single Style to use different styles for default, selected and temporary
selected features.
- Parameters:
styleMap
- The value to set to the property.
getStyleMap
public JSObject getStyleMap()
setProtocol
public void setProtocol(Protocol protocol)
setStrategies
public void setStrategies(Strategy[] strategies)
Copyright © 2011 sourceforge. All Rights Reserved.