#2894 - add responsiveness to the map scalebar (#2895)

This commit is contained in:
DaneEvans 2025-08-28 19:52:38 +10:00 committed by GitHub
parent 161582141a
commit 908fd4a263
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -508,8 +508,12 @@ fun MapView(
}
}
DisappearingScaleBar(cameraPositionState = cameraPositionState)
val currentCameraPosition = cameraPositionState.position
var displayedZoom by remember { mutableStateOf(currentCameraPosition.zoom) }
if (displayedZoom != 0f) {
DisappearingScaleBar(cameraPositionState = cameraPositionState)
}
editingWaypoint?.let { waypointToEdit ->
EditWaypointDialog(
waypoint = waypointToEdit,