Packagenet.systemeD.halcyon.styleparser
Classpublic class StyleList

A StyleList object is the full list of all styles applied to a drawn entity (i.e. node/way).

Each array element applies to that sublayer (z-index). If there is no element, nothing is drawn on that sublayer.

StyleLists are created by StyleChooser.getStyles.

See also

net.systemeD.halcyon.styleparser.StyleChooser


Public Properties
 PropertyDefined by
  maxwidth : Number = 0
StyleList
  pointStyles : Object
StyleList
  shapeStyles : Object
StyleList
  shieldStyles : Object
StyleList
  subparts : Array
List of subparts used in this StyleList.
StyleList
  textStyles : Object
StyleList
  validAt : int = -1
Zoom level this StyleList is valid at.
StyleList
Public Methods
 MethodDefined by
  
addSubpart(s:String):void
Record that a subpart is used in this StyleList.
StyleList
  
hasFills():Boolean
Does this StyleList contain any styles with a fill?
StyleList
  
hasStyles():Boolean
Does this StyleList contain any styles?
StyleList
  
isValidAt(zoom:uint):Boolean
Is this StyleList valid at a given zoom?
StyleList
  
layerOverride():Number
Does this StyleList manually force an OSM layer?
StyleList
  
toString():String
Summarise StyleList as String - for debugging.
StyleList
Property detail
maxwidthproperty
public var maxwidth:Number = 0
pointStylesproperty 
public var pointStyles:Object
shapeStylesproperty 
public var shapeStyles:Object
shieldStylesproperty 
public var shieldStyles:Object
subpartsproperty 
public var subparts:Array

List of subparts used in this StyleList.

textStylesproperty 
public var textStyles:Object
validAtproperty 
public var validAt:int = -1

Zoom level this StyleList is valid at. If -1, valid at all styles (i.e. doesn't need to be recomputed on zoom in/out); otherwise, specifies a single zoom level.

Method detail
addSubpart()method
public function addSubpart(s:String):void

Record that a subpart is used in this StyleList.

Parameters
s:String
hasFills()method 
public function hasFills():Boolean

Does this StyleList contain any styles with a fill?

Returns
Boolean
hasStyles()method 
public function hasStyles():Boolean

Does this StyleList contain any styles?

Returns
Boolean
isValidAt()method 
public function isValidAt(zoom:uint):Boolean

Is this StyleList valid at a given zoom?

Parameters
zoom:uint

Returns
Boolean
layerOverride()method 
public function layerOverride():Number

Does this StyleList manually force an OSM layer?

Returns
Number
toString()method 
public function toString():String

Summarise StyleList as String - for debugging.

Returns
String