MapStyler class

The MapStyler interface.

Constructors

MapStyler({String? color, double? gamma, String? hue, bool? invertLightness, double? lightness, double? saturation, String? visibility, double? weight})
Default constructor. Creates MapStyler object.
MapStyler.fromJson(Map<String, dynamic> json)
Creates MapStyler object from the given JSON object

Properties

color String?
The color to use to style features. Expected to be in hex form #RRBBGG
getter/setter pair
gamma double?
Applies a gamma correction on lightness.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hue String?
The color to extract the hue from. The lightness and saturation will be kept from the original color.
getter/setter pair
invertLightness bool?
Inverts the lightness.
getter/setter pair
lightness double?
Changes the lightness.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saturation double?
Changes the saturation.
getter/setter pair
visibility String?
Sets the visibility of the selected features. Expected to be in hex form #RRBBGG. expected values are “on”, “off”
getter/setter pair
weight double?
Changes the weight of drawn features (mostly lines, labels outline).
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a JSON representation of the object.
toString() String
A string representation of this object.
inherited

Operators

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