mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Hook up route lines to toggle
This commit is contained in:
parent
8c01abacce
commit
b22cbcbff3
1 changed files with 7 additions and 0 deletions
|
|
@ -197,6 +197,13 @@ struct MapViewSwiftUI: UIViewRepresentable {
|
|||
lineIndex = 0
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Remove all existing PolyLine Overlays
|
||||
for overlay in mapView.overlays {
|
||||
if overlay is MKPolyline {
|
||||
mapView.removeOverlay(overlay)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//DispatchQueue.main.async {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue