FlatLight class
A global directional light source which is only applied on 3D layers and hillshade layers. Using this type disables other light sources.
- SeeAlso: Mapbox Style Specification
Constructors
-
FlatLight({required String id, Anchor? anchor, int? color, TransitionOptions? colorTransition, double? intensity, TransitionOptions? intensityTransition, List<
double?> ? position, TransitionOptions? positionTransition})
Properties
- anchor ↔ Anchor?
-
Whether extruded geometries are lit relative to the map or viewport.
getter/setter pair
- color ↔ int?
-
Color tint for lighting extruded geometries.
getter/setter pair
- colorTransition ↔ TransitionOptions?
-
Transition property for
color
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
Unique light name
getter/setter pair
- intensity ↔ double?
-
Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.
getter/setter pair
- intensityTransition ↔ TransitionOptions?
-
Transition property for
intensity
getter/setter pair -
position
↔ List<
double?> ? -
Position of the light source relative to lit (extruded) geometries, in
r radial coordinate, a azimuthal angle, p polar angle
where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0 degree (0 degree whenlight.anchor
is set toviewport
corresponds to the top of the viewport, or 0 degree whenlight.anchor
is set tomap
corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0 degree, directly above, to 180 degree, directly below).getter/setter pair - positionTransition ↔ TransitionOptions?
-
Transition property for
position
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
encode(
) → Object -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited