|
||||||||||
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.OpenLayersObjectWrapper org.gwtopenmaps.openlayers.client.StyleMap
public class StyleMap
StyleMap contais a set of tree styles
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 |
---|
protected StyleMap(JSObject openLayersObject)
public StyleMap()
public StyleMap(Style style)
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)
public StyleMap(Style defaultStyle, Style selectStyle, Style temporaryStyle)
Avoid passing null for one of the styles. If just want to use 2 style, pass the same style for selectStyle and tempraryStyle parameters.
defaultStyle
- the default style to render the featureselectStyle
- the style to render the feature when it is selectedtemporaryStyle
- style to render the feature when it is temporarily selectedMethod Detail |
---|
public static StyleMap narrowToOpenLayersStyleMap(JSObject element)
public Style createSymbolizer(VectorFeature feature, String renderIntent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |