From dd969f7ebb40a49acd6a3fd13ab0c4441e00629b Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 9 Apr 2026 09:58:45 +0000 Subject: Fix startup crash: rename wind source ID to avoid collision MapLayerManager registers SOURCE_WIND = "wind-source" as a RasterSource in the style builder. MapHandler was using the same ID for its GeoJsonSource, causing MapLibre to throw on duplicate source IDs at style-load time. Rename MapHandler's source to "wind-arrows-source". https://claude.ai/code/session_01HXPjBsogsJVRwCiekDGkJX --- android-app/app/src/main/kotlin/org/terst/nav/ui/MapHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'android-app/app') diff --git a/android-app/app/src/main/kotlin/org/terst/nav/ui/MapHandler.kt b/android-app/app/src/main/kotlin/org/terst/nav/ui/MapHandler.kt index 1978745..ca146b1 100644 --- a/android-app/app/src/main/kotlin/org/terst/nav/ui/MapHandler.kt +++ b/android-app/app/src/main/kotlin/org/terst/nav/ui/MapHandler.kt @@ -74,7 +74,7 @@ class MapHandler(private val maplibreMap: MapLibreMap) { private val TRACK_PAST_SOURCE_ID = "track-past-source" private val TRACK_PAST_LAYER_ID = "track-line-past" - private val WIND_SOURCE_ID = "wind-source" + private val WIND_SOURCE_ID = "wind-arrows-source" private val WIND_LAYER_ID = "wind-arrows" private val WIND_ARROW_ICON_ID = "wind-arrow" private val WIND_GRID_SOURCE_ID = "wind-grid-source" -- cgit v1.2.3