Package | net.systemeD.halcyon.styleparser |
Class | public class Rule |
The selectors and declaration together form a StyleChooser.
See also
Property | Defined by | ||
---|---|---|---|
conditions : Array The Conditions to be evaluated for the Rule to be fulfilled.
| Rule | ||
isAnd : Boolean = true Do all Conditions need to be true for the Rule to be fulfilled? (Always =true for MapCSS.)
| Rule | ||
maxZoom : uint = 255 Maximum zoom level at which the Rule is fulfilled.
| Rule | ||
minZoom : uint = 0 Minimum zoom level at which the Rule is fulfilled.
| Rule | ||
subject : String = "" Entity type to which the Rule applies.
| Rule |
Method | Defined by | ||
---|---|---|---|
Rule(subject:String = "")
| Rule | ||
Evaluate the Rule on the given entity, tags and zoom level.
| Rule | ||
toString():String
| Rule |
conditions | property |
public var conditions:Array
The Conditions to be evaluated for the Rule to be fulfilled.
isAnd | property |
public var isAnd:Boolean = true
Do all Conditions need to be true for the Rule to be fulfilled? (Always =true for MapCSS.)
maxZoom | property |
public var maxZoom:uint = 255
Maximum zoom level at which the Rule is fulfilled.
minZoom | property |
public var minZoom:uint = 0
Minimum zoom level at which the Rule is fulfilled.
subject | property |
public var subject:String = ""
Entity type to which the Rule applies. Can be 'way', 'node', 'relation', 'area' (closed way) or 'line' (unclosed way).
Rule | () | constructor |
public function Rule(subject:String = "")
Parameters
subject:String (default = " ")
|
test | () | method |
public function test(entity:Entity, tags:Object, zoom:uint):Boolean
Evaluate the Rule on the given entity, tags and zoom level.
Parametersentity:Entity |
|
tags:Object |
|
zoom:uint |
Boolean — True if the Rule passes, false if the conditions aren't fulfilled. |
toString | () | method |
public function toString():String
Returns
String |