StyleRule class abstract

Implemented types

Constructors

StyleRule()
const
StyleRule.color(Color color)
sets the color of the feature.
const
factory
StyleRule.gamma(double gamma)
(a floating point value between 0.01 and 10.0, where 1.0 applies no correction) indicates the amount of gamma correction to apply to the element. Gamma corrections modify the lightness of colors in a non-linear fashion, while not affecting white or black values. Gamma correction is typically used to modify the contrast of multiple elements. For example, you can modify the gamma to increase or decrease the contrast between the edges and interiors of elements.
const
factory
StyleRule.hue(Color hue)
Indicates the basic color.
const
factory
StyleRule.invertLightness(bool invertLightness)
(if true) inverts the existing lightness. This is useful, for example, for quickly switching to a darker map with white text.
const
factory
StyleRule.lightness(int lightness)
(a floating point value between -100 and 100) indicates the percentage change in brightness of the element. Negative values increase darkness (where -100 specifies black) while positive values increase brightness (where +100 specifies white).
const
factory
StyleRule.saturation(int saturation)
(a floating point value between -100 and 100) indicates the percentage change in intensity of the basic color to apply to the element.
const
factory
StyleRule.visibility(VisibilityRule visibility)
indicates whether and how the element appears on the map. A simplified visibility removes some style features from the affected features; roads, for example, are simplified into thinner lines without outlines, while parks lose their label text but retain the label icon.
const
factory
StyleRule.weight(int weight)
(an integer value, greater than or equal to zero) sets the weight of the feature, in pixels. Setting the weight to a high value may result in clipping near tile borders.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
toUrlString() String
override

Operators

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