FlatLight class

A global directional light source which is only applied on 3D layers and hillshade layers. Using this type disables other light sources.

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.
read / write
color int?
Color tint for lighting extruded geometries.
read / write
colorTransition TransitionOptions?
Transition property for color
read / write
hashCode int
The hash code for this object.
read-onlyinherited
id String
Unique light name
read / write
intensity double?
Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.
read / write
intensityTransition TransitionOptions?
Transition property for intensity
read / write
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 when light.anchor is set to viewport corresponds to the top of the viewport, or 0 degree when light.anchor is set to map 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).
read / write
positionTransition TransitionOptions?
Transition property for position
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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

Static Methods

decode(Object result) FlatLight