From b9c0cd1677ae3682431054b87175a9e304106f78 Mon Sep 17 00:00:00 2001 From: Gianluca Scopelliti Date: Fri, 7 Jun 2024 19:15:22 +0200 Subject: [PATCH] fix MarkerState rotation --- .../src/main/java/com/utsman/osmandcompose/MarkerState.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm-compose/src/main/java/com/utsman/osmandcompose/MarkerState.kt b/osm-compose/src/main/java/com/utsman/osmandcompose/MarkerState.kt index 284636e..04f8abb 100644 --- a/osm-compose/src/main/java/com/utsman/osmandcompose/MarkerState.kt +++ b/osm-compose/src/main/java/com/utsman/osmandcompose/MarkerState.kt @@ -12,7 +12,7 @@ import org.osmdroid.views.overlay.Marker class MarkerState(geoPoint: GeoPoint = GeoPoint(0.0, 0.0), rotation: Float = 0f) { var geoPoint: GeoPoint by mutableStateOf(geoPoint) - var rotation: Float by mutableStateOf(0f) + var rotation: Float by mutableStateOf(rotation) private val markerState: MutableState = mutableStateOf(null)