org.gwtopenmaps.openlayers.client.layer
Class VectorOptions

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.layer.LayerOptions
          extended by 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

Constructor Summary
VectorOptions()
           
 
Method Summary
 String getGeometryType()
           
 boolean getIsBaseLayer()
           
 JSObject getRendererOptions()
           
 JSObject getStyle(Style style)
           
 JSObject getStyleMap()
           
 void setGeometryType(String gtype)
           
 void setIsBaseLayer(boolean b)
          To specify if the layer is a BaseLayer.
 void setProtocol(Protocol protocol)
           
 void setRendererOptions(RendererOptions rendererOptions)
           
 void setStrategies(Strategy[] strategies)
           
 void setStyle(Style style)
           
 void setStyleMap(StyleMap styleMap)
          Set the StypeMap property.
 
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 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

VectorOptions

public VectorOptions()
Method Detail

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.