MapLayerItem

data class MapLayerItem(val id: String = Uuid.random().toString(), val name: String, val uri: String? = null, val isVisible: Boolean = true, val layerType: LayerType, val isNetwork: Boolean = false, val createdAt: Long? = null, val isRefreshing: Boolean = false, val refreshToken: Int = 0)(source)

Constructors

Link copied to clipboard
constructor(id: String = Uuid.random().toString(), name: String, uri: String? = null, isVisible: Boolean = true, layerType: LayerType, isNetwork: Boolean = false, createdAt: Long? = null, isRefreshing: Boolean = false, refreshToken: Int = 0)

Properties

Link copied to clipboard

Wall-clock creation time, from the backing file's mtime. Null for network layers, which have no local file.

Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard

UI indicator: whether a refresh is in flight (drives the sheet/toolbar spinner).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Monotonic counter bumped on refresh so the renderers reliably re-read the layer. A StateFlow conflates transient values, so a bounced boolean flag can be missed — an ever-increasing token cannot.

Link copied to clipboard
val uri: String?