From bc6a76e57ed0229092a8beebc5f9761168aea674 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Sat, 14 Jan 2023 19:13:38 -0800 Subject: [PATCH] Refresh pins on update --- Meshtastic/Views/Map/MapViewSwiftUI.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Meshtastic/Views/Map/MapViewSwiftUI.swift b/Meshtastic/Views/Map/MapViewSwiftUI.swift index 6f085198..f3980c95 100644 --- a/Meshtastic/Views/Map/MapViewSwiftUI.swift +++ b/Meshtastic/Views/Map/MapViewSwiftUI.swift @@ -83,6 +83,9 @@ struct MapViewSwiftUI: UIViewRepresentable { if dynamicRegion { self.moveToMeshRegion(mapView) } + mapView.removeAnnotations(mapView.annotations) + mapView.addAnnotations(positions) + mapView.addAnnotations(waypoints) } func makeCoordinator() -> MapCoordinator {