aboutsummaryrefslogtreecommitdiff
path: root/iosApp/iosApp/Map/MapViewController.swift
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-04-14 01:02:56 -0500
committerIván Ávalos <avalos@disroot.org>2022-04-14 01:02:56 -0500
commit796b46d0b3a426eb2ae19272ecf3a97e925565ff (patch)
tree9c5d7d5911a76b27067a446cd9d8ad72aa983376 /iosApp/iosApp/Map/MapViewController.swift
parent20068c7e0d20740506ca268b34c2e520385af385 (diff)
parentbd758c32dadb69320a471b005c86b3d8ce393177 (diff)
downloadetbsa-trackermap-mobile-796b46d0b3a426eb2ae19272ecf3a97e925565ff.tar.gz
etbsa-trackermap-mobile-796b46d0b3a426eb2ae19272ecf3a97e925565ff.tar.bz2
etbsa-trackermap-mobile-796b46d0b3a426eb2ae19272ecf3a97e925565ff.zip
Merge branch 'main' of https://git.sr.ht/~avalos/trackermap-mobile
Diffstat (limited to 'iosApp/iosApp/Map/MapViewController.swift')
-rw-r--r--iosApp/iosApp/Map/MapViewController.swift6
1 files changed, 3 insertions, 3 deletions
diff --git a/iosApp/iosApp/Map/MapViewController.swift b/iosApp/iosApp/Map/MapViewController.swift
index 3c38b89..07b72a6 100644
--- a/iosApp/iosApp/Map/MapViewController.swift
+++ b/iosApp/iosApp/Map/MapViewController.swift
@@ -20,7 +20,7 @@ import WhirlyGlobe
import shared
import GEOSwift
-typealias MarkerCallback = (Int32?) -> ()
+typealias MarkerCallback = (Int32?, Bool) -> ()
extension Geometry {
func getCoordinates() -> [Point] {
@@ -138,7 +138,7 @@ extension MapViewController: MaplyViewControllerDelegate {
func maplyViewController(_ viewC: MaplyViewController,
didTapAt coord: MaplyCoordinate) {
- markerCallback?(nil)
+ markerCallback?(nil, true)
}
func maplyViewController(_ viewC: MaplyViewController,
@@ -147,7 +147,7 @@ extension MapViewController: MaplyViewControllerDelegate {
onScreen screenPt: CGPoint) {
if let marker = selectedObj as? MaplyScreenMarker {
if let id = marker.userObject as? Int32 {
- markerCallback?(id)
+ markerCallback?(id, true)
}
}
}