Package-level declarations

Types

Link copied to clipboard
data class CustomLayer(val id: String, val uri: String, val refreshToken: Int = 0, val icons: Set<String> = emptySet(), val groundOverlays: List<LayerGroundOverlay> = emptyList())

A user-imported overlay, already reduced to GeoJSON.

Link copied to clipboard
data class LayerGroundOverlay(val imagePath: String, val corners: List<Pair<Double, Double>>)

One image draped over the map for a layer: where its corners land, and the local file its pixels were resolved to.

Functions

Link copied to clipboard
fun NodeLayers(nodes: List<Node>, myNodeNum: Int?, showPrecisionCircles: Boolean, onNodeClick: (Int) -> Unit, onClusterZoom: (Position, Double) -> Unit, onClusterMembers: (List<ClusterMember>) -> Unit, visibleBounds: BoundingBox? = null, zoom: Int = 0)

The mesh node layers: ground-truth precision circles underneath, then clusters, then individual node chips.

Link copied to clipboard

Turns the visible map layers into what MapLibre can actually fetch.