LightDslReceiver

This Interface contains all the functions that will be exposed to Koltin DSL.

Separated the DSL receiver class to this interface to avoid IDE code suggestion for property getters.

interface LightDslReceiver

Functions

anchor
Link copied to clipboard

Set the Anchor property

abstract fun anchor(anchor: Expression): Light

Set the Anchor property.

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

abstract fun anchor(anchor: Anchor): Light
color
Link copied to clipboard

Set the Color property

abstract fun color(color: Expression): Light

Set the Color property.

abstract fun color(color: Int): Light

Set the Color property.

Color tint for lighting extruded geometries.

abstract fun color(color: String): Light
colorTransition
Link copied to clipboard

Set the Color property transition options.

abstract fun colorTransition(options: StyleTransition): Light
abstract fun colorTransition(block: StyleTransition.Builder.() -> Unit): Light
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
intensity
Link copied to clipboard

Set the Intensity property

abstract fun intensity(intensity: Expression): Light

Set the Intensity property.

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

abstract fun intensity(intensity: Double): Light
intensityTransition
Link copied to clipboard

Set the Intensity property transition options.

abstract fun intensityTransition(options: StyleTransition): Light
abstract fun intensityTransition(block: StyleTransition.Builder.() -> Unit): Light
position
Link copied to clipboard

Set the Position property

abstract fun position(position: Expression): Light

Set the Position property.

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).

abstract fun position(position: LightPosition): Light

DSL for setting LightPosition.

abstract fun position(radialCoordinate: Double, azimuthalAngle: Double, polarAngle: Double): Light
positionTransition
Link copied to clipboard

Set the Position property transition options.

abstract fun positionTransition(options: StyleTransition): Light
abstract fun positionTransition(block: StyleTransition.Builder.() -> Unit): Light
toString
Link copied to clipboard
open override fun toString(): String

Inheritors

Light
Link copied to clipboard