Skip to content

Commit 23273ac

Browse files
committed
updated func name to isPointInsideBoundary
1 parent 535c720 commit 23273ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

GoInfoGame/GoInfoGame/UI/Map/MapViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

GoInfoGame/GoInfoGame/UI/Map/Satellite Server/WMTSServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)