org.gwtopenmaps.openlayers.client
Class StyleMap

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
          extended by org.gwtopenmaps.openlayers.client.StyleMap

public class StyleMap
extends OpenLayersObjectWrapper

StyleMap contais a set of tree styles

Author:
Rafael Ceravolo - LOGANN, Lukas Johansson

Constructor Summary
  StyleMap()
          Creates a StyleMap with default properties
protected StyleMap(JSObject openLayersObject)
           
  StyleMap(Style style)
          Creates a StyleMap setting the same style for all renderer intents.
  StyleMap(Style defaultStyle, Style selectStyle, Style temporaryStyle)
          Creates a StyleMap setting different styles for renderer intents.
 
Method Summary
 Style createSymbolizer(VectorFeature feature, String renderIntent)
           
static StyleMap narrowToOpenLayersStyleMap(JSObject element)
           
 
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
 

Constructor Detail

StyleMap

protected StyleMap(JSObject openLayersObject)

StyleMap

public StyleMap()
Creates a StyleMap with default properties


StyleMap

public StyleMap(Style style)
Creates a StyleMap setting the same style for all renderer intents.

From OpenLayers documentation: If just one style hash or style object is passed, this will be used for all known render intents (default, select, temporary)


StyleMap

public StyleMap(Style defaultStyle,
                Style selectStyle,
                Style temporaryStyle)
Creates a StyleMap setting different styles for renderer intents.

Avoid passing null for one of the styles. If just want to use 2 style, pass the same style for selectStyle and tempraryStyle parameters.

Parameters:
defaultStyle - the default style to render the feature
selectStyle - the style to render the feature when it is selected
temporaryStyle - style to render the feature when it is temporarily selected
Method Detail

narrowToOpenLayersStyleMap

public static StyleMap narrowToOpenLayersStyleMap(JSObject element)

createSymbolizer

public Style createSymbolizer(VectorFeature feature,
                              String renderIntent)


Copyright © 2011 sourceforge. All Rights Reserved.