Refresh pins on update

This commit is contained in:
Garth Vander Houwen 2023-01-14 19:13:38 -08:00
parent a6c4f0639e
commit bc6a76e57e

View file

@ -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 {