Skip to content

Commit

Permalink
fix: reset markers at updateUIView
Browse files Browse the repository at this point in the history
  • Loading branch information
waynewbishop committed Dec 16, 2024
1 parent d809e72 commit e845e50
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ struct GoogleMapView: UIViewRepresentable {
uiView.backgroundColor = backgroundColor
}

//clears all markers and polylines
uiView.clear()

// Refresh markers on the map
markers.forEach { marker in
marker.map = uiView
Expand Down

0 comments on commit e845e50

Please sign in to comment.