RenderTheme class

A RenderTheme defines how ways and nodes are drawn.

Constructors

RenderTheme(RenderThemeBuilder renderThemeBuilder)

Properties

baseStrokeWidth double
The rendertheme can set the base stroke with factor
getter/setter pair
baseTextSize double
The rendertheme can set the base text size factor
getter/setter pair
forHash String
latefinal
hasBackgroundOutside bool?
final
hashCode int
The hash code for this object.
no setteroverride
hillShadings List<Hillshading>
getter/setter pair
levels int
the maximum number of levels in the rendertheme
final
mapBackground int?
final
mapBackgroundOutside int?
final
poiMatchingCache Map<MatchingCacheKey, List<RenderInstruction>>
getter/setter pair
rulesList List<Rule>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wayMatchingCache Map<MatchingCacheKey, List<RenderInstruction>>
getter/setter pair

Methods

addHillShadings(Hillshading hillshading) → void
addRule(Rule rule) → void
complete() → void
dispose() → void
Must be called when this RenderTheme gets destroyed to clean up and free resources.
getLevels() int
@return the number of distinct drawing levels required by this RenderTheme.
getMapBackground() int?
@return the map background color of this RenderTheme.
getMapBackgroundOutside() int?
@return the background color that applies to areas outside the map.
hasMapBackgroundOutside() bool?
@return true if map color is defined for outside areas.
matchClosedWay(Tile tile, Way way) List<RenderInstruction>
Matches a closed way with the given parameters against this RenderTheme.
matchLinearWay(Tile tile, Way way) List<RenderInstruction>
Matches a linear way with the given parameters against this RenderTheme.
matchNode(Tile tile, PointOfInterest poi) List<RenderInstruction>
Matches a node with the given parameters against this RenderTheme.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareScale(int zoomLevel) → void
Scales the stroke width of this RenderTheme by the given factor for a given zoom level
toString() String
A string representation of this object.
override
traverseRules(RuleVisitor visitor) → void

Operators

operator ==(Object other) bool
The equality operator.
override

Static Properties

MATCHING_CACHE_SIZE int
final