FlatLightState

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

See also

Constructors

Link copied to clipboard
fun FlatLightState(id: String = generateRandomLightId("flat"))

Types

Link copied to clipboard
object Companion

Public companion object.

Link copied to clipboard
data class Holder(val savedProperties: Map<String, Value>) : Parcelable

FlatLightState Holder class to be used within Saver.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Overwrite the equals for FlatLightState.

Link copied to clipboard
open override fun hashCode(): Int

Overwrite the hashcode for FlatLightState.

Link copied to clipboard
open override fun toString(): String

Overwrite the toString for FlatLightState.

Properties

Link copied to clipboard

Whether extruded geometries are lit relative to the map or viewport.

Link copied to clipboard

Color tint for lighting extruded geometries.

Link copied to clipboard

Defines the transition of color.

Link copied to clipboard
val id: String

The id of the FlatLightState.

Link copied to clipboard

Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.

Link copied to clipboard

Defines the transition of intensity.

Link copied to clipboard

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° (0° when light.anchor is set to viewport corresponds to the top of the viewport, or 0° 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°, directly above, to 180°, directly below).

Link copied to clipboard

Defines the transition of position.