Package-level declarations

Types

Link copied to clipboard
enum Easing : Enum<Easing>

Represents the supported easing curves used throughout MapsGL.

Link copied to clipboard
typealias EasingCurve = (Double) -> Double

A function that takes a progress value (from 0.0 to 1.0) and returns an eased value.

Link copied to clipboard

A factory for creating EasingCurve functions.

Link copied to clipboard
data class LayerAnimationTarget(val phaseA: String, val phaseB: String, val meld: Float, val targetLong: Long)

Display target derived from the global Timeline clock for one encoded source.

Link copied to clipboard
class LayerTimeline(val id: String)

Per-source (per-layer) counterpart to the global Timeline companion state: tracks this layer's own valid-time lists, requested/downloaded interval bookkeeping, current phase indices and meld, and staggered (sparse-then-fill) download progress. One instance is registered per source id in Timeline.sourceTimeHash.

Link copied to clipboard

Sparse-then-fill download and playback when a layer has many valid intervals.

Link copied to clipboard
class Timeline(opts: AnimationOptions, controller: MapController) : TimeAnimation

A TimeAnimation that manages and controls one or more individual animations. Using a timeline, you can control the playback of multiple animations at once and keep them in sync.

Link copied to clipboard

Formats timeline instants for on-screen labels using the device timezone and en locale, matching MapsGL JS examples (toLocaleDateString('en') / toLocaleTimeString('en')).

Functions

Link copied to clipboard
fun clamp(value: Double, min: Double, max: Double): Double
Link copied to clipboard
fun setTimeout(action: () -> Unit, delay: Int)