File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
GoInfoGame/GoInfoGame/UI/Map Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class MapViewModel: ObservableObject {
6464 }
6565
6666 func sattiliteServersFor( point: CLLocationCoordinate2D ) -> [ SatelliteServer ] {
67- return allSattileLayers. filter { $0. extent. isCoordinate ( point) }
67+ return allSattileLayers. filter { $0. extent. isPointInsideBoundary ( point) }
6868 }
6969
7070 func updateOptions( for center: CLLocationCoordinate2D ) {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ extension Extent {
3535 return coordinates
3636 }
3737
38- func isCoordinate ( _ point: CLLocationCoordinate2D ) -> Bool {
38+ func isPointInsideBoundary ( _ point: CLLocationCoordinate2D ) -> Bool {
3939 let polygon = createPolygon ( from: self )
4040 guard polygon. count > 2 else { return false }
4141 var inside = false
You can’t perform that action at this time.
0 commit comments