RenderTheme class

A RenderTheme defines how ways and nodes are drawn.

Constructors

RenderTheme(RenderThemeBuilder renderThemeBuilder)

Properties

baseStrokeWidth double
final
baseTextSize double
final
hasBackgroundOutside bool
final
hashCode int
The hash code for this object. [...]
read-only, override
hillShadings List<Hillshading>
read / write
initPendings List<RenderInstruction>
read / write
levels int
read / write
mapBackground int
final
mapBackgroundOutside int
final
poiMatchingCache Map<MatchingCacheKey, List<RenderInstruction>>
read / write
rulesList List<Rule>
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
strokeScales Map<int, double>
final
textScales Map<int, double>
final
wayMatchingCache Map<MatchingCacheKey, List<RenderInstruction>>
read / write

Methods

addHillShadings(Hillshading hillshading) → void
addRule(Rule rule) → void
complete() → void
destroy() → 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(RenderCallback renderCallback, RenderContext renderContext, PolylineContainer way) Future<void>
Matches a closed way with the given parameters against this RenderTheme. [...]
matchLinearWay(RenderCallback renderCallback, RenderContext renderContext, PolylineContainer way) Future<void>
Matches a linear way with the given parameters against this RenderTheme. [...]
matchNode(RenderCallback renderCallback, RenderContext renderContext, PointOfInterest poi) Future<void>
Matches a node with the given parameters against this RenderTheme. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
scaleStrokeWidth(double scaleFactor, int zoomLevel) → void
Scales the stroke width of this RenderTheme by the given factor for a given zoom level [...]
scaleTextSize(double scaleFactor, int zoomLevel) → void
Scales the text size of this RenderTheme by the given factor for a given zoom level. [...]
setLevels(int levels) → void
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