Skip to content

Commit aca2096

Browse files
committed
fix redrawing imagery on any popover action
1 parent 670c9c3 commit aca2096

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

GoInfoGame/GoInfoGame/UI/Map/CustomMap.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ struct CustomMap: UIViewRepresentable {
9191

9292

9393
// Remove existing overlays
94-
mapView.overlays.forEach { mapView.removeOverlay($0) }
94+
mapView.overlays.forEach {
95+
if !($0 is WMTSSeever) {
96+
mapView.removeOverlay($0)
97+
}
98+
}
9599

96100
mapView.addOverlay(shadowOverlay)
97101

98-
if case .wmts(let satelliteServer) = selectedSattiliteOption {
99-
mapView.addOverlay(WMTSSeever(satelliteServer: satelliteServer), level: .aboveLabels)
100-
}
101-
102102
// if useBingMaps {
103103
// let tileOverlay = BingTileOverlay()
104104
// tileOverlay.minimumZ = 3 // Set minimum zoom level

0 commit comments

Comments
 (0)