This class represents an SLD Rule, as being used for rule-based SLD styling.
OpenLayers.Rule | This class represents an SLD Rule, as being used for rule-based SLD styling. |
Properties | |
name | {String} name of this rule |
minScaleDenominator | {Number} or {String} minimum scale at which to draw the feature. |
maxScaleDenominator | {Number} or {String} maximum scale at which to draw the feature. |
Constructor | |
OpenLayers.Rule | Creates a Rule. |
Functions | |
destroy | nullify references to prevent circular references and memory leaks |
evaluate | evaluates this rule for a specific feature |
clone | Clones this rule. |
evaluate: function( feature )
evaluates this rule for a specific feature
feature | {OpenLayers.Feature} feature to apply the rule to. |
{Boolean} true if the rule applies, false if it does not. This rule is the default rule and always returns true.
nullify references to prevent circular references and memory leaks
destroy: function()
evaluates this rule for a specific feature
evaluate: function( feature )
Clones this rule.
clone: function()