DashMapStyleLayer

@Serializable
class DashMapStyleLayer(val id: String, val visible: Boolean = true, val clickableAtZoom: IntRange = 0..Int.MAX_VALUE)

Represents a layer in the map style.

Parameters

id

Unique identifier for the layer.

visible

Indicates if the layer is visible. Default is true.

clickableAtZoom

Zoom range at which the layer is clickable. Default is 0..Int.MAX_VALUE (always clickable). Use IntRange.EMPTY to make the layer never clickable.

Constructors

Link copied to clipboard
constructor(id: String, visible: Boolean = true, clickableAtZoom: IntRange = 0..Int.MAX_VALUE)

Properties

Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
val visible: Boolean = true

Functions

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