This class represents a UserStyle obtained from a SLD, containing styling rules.
OpenLayers. Style | This class represents a UserStyle obtained from a SLD, containing styling rules. |
Properties | |
name | {String} |
layerName | {String} name of the layer that this style belongs to, usually according to the NamedLayer attribute of an SLD document. |
isDefault | {Boolean} |
Constructor | |
OpenLayers. Style | Creates a UserStyle. |
Functions | |
destroy | nullify references to prevent circular references and memory leaks |
addRules | Adds rules to this style. |
setDefaultStyle | Sets the default style for this style object. |
Constants | |
OpenLayers. Style. SYMBOLIZER_PREFIXES | {Array} prefixes of the sld symbolizers. |
{String} name of the layer that this style belongs to, usually according to the NamedLayer attribute of an SLD document.
Creates a UserStyle.
style | {Object} Optional hash of style properties that will be used as default style for this style object. This style applies if no rules are specified. Symbolizers defined in rules will extend this default style. |
options | {Object} An optional object with properties to set on the style. |
rules | {Array(OpenLayers.Rule)} List of rules to be added to the style. |
nullify references to prevent circular references and memory leaks
destroy: function()
Adds rules to this style.
addRules: function( rules )
Sets the default style for this style object.
setDefaultStyle: function( style )