RenderTheme class
A RenderTheme defines how ways and nodes are drawn.
Constructors
- RenderTheme.new(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 setterinherited
-
hillShadings
↔ List<
RenderinstructionHillshading> -
getter/setter pair
- levels → int
-
the maximum number of levels in the rendertheme
final
- mapBackground → int?
-
final
- mapBackgroundOutside → int?
-
final
-
renderthemeLevels
→ Map<
int, RenderthemeLevel> -
ZoomLevel dependent (iterative) list of rules
final
-
rulesList
→ List<
Rule> -
A list of rules which contains a list of rules which ...
see defaultrender.xml how this is constructed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addHillShadings(
RenderinstructionHillshading 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.
-
getZoomlevelRangeNode(
PointOfInterest pointOfInterest) → ZoomlevelRange? - Returns the widest possible zoomrange which may accept the given argument. Returns null if if the argument will never accepted.
-
getZoomlevelRangeWay(
Waypath waypath, List< Tag> tags) → ZoomlevelRange? - Returns the widest possible zoomrange which may accept the given argument. Returns null if if the argument will never accepted.
-
hasMapBackgroundOutside(
) → bool? - @return true if map color is defined for outside areas.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepareZoomlevel(
int zoomlevel) → RenderthemeLevel - Scales the stroke width of this RenderTheme by the given factor for a given zoom level
-
toString(
) → String -
A string representation of this object.
inherited
-
traverseRules(
RuleVisitor visitor) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- MATCHING_CACHE_SIZE → int
-
final