File tree Expand file tree Collapse file tree 3 files changed +1
-6
lines changed
GoInfoGame/GoInfoGame/UI/Map Expand file tree Collapse file tree 3 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -10,21 +10,18 @@ import Foundation
1010
1111enum SatelliteOption : Identifiable , Hashable {
1212 case none
13- case apple
1413 case wmts( SatelliteServer )
1514
1615 var id : String {
1716 switch self {
1817 case . none: return " none "
19- case . apple: return " apple "
2018 case . wmts( let layer) : return layer. id
2119 }
2220 }
2321
2422 var name : String {
2523 switch self {
2624 case . none: return " None "
27- case . apple: return " Apple Satellite "
2825 case . wmts( let layer) : return layer. name
2926 }
3027 }
Original file line number Diff line number Diff line change @@ -465,8 +465,6 @@ struct MapView: View {
465465 switch selectedSatilliteOption {
466466 case . none:
467467 mapViewRef? . mapType = . standard
468- case . apple:
469- mapViewRef? . mapType = . satellite
470468 case . wmts( let server) :
471469 let layer = WMTSSeever ( satelliteServer: server)
472470 mapViewRef? . addOverlay ( layer, level: . aboveLabels)
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class MapViewModel: ObservableObject {
6565 let supportedLayers = sattiliteServersFor ( point: center)
6666
6767 let wmtsOptions = supportedLayers. map { SatelliteOption . wmts ( $0) }
68- self . availableOptions = [ . none, . apple ] + wmtsOptions
68+ self . availableOptions = [ . none] + wmtsOptions
6969 }
7070
7171
You can’t perform that action at this time.
0 commit comments