aboutsummaryrefslogtreecommitdiff
path: root/iosApp/iosApp/Map/MapViewController.swift
diff options
context:
space:
mode:
Diffstat (limited to 'iosApp/iosApp/Map/MapViewController.swift')
-rw-r--r--iosApp/iosApp/Map/MapViewController.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/iosApp/iosApp/Map/MapViewController.swift b/iosApp/iosApp/Map/MapViewController.swift
index bc793e2..131a511 100644
--- a/iosApp/iosApp/Map/MapViewController.swift
+++ b/iosApp/iosApp/Map/MapViewController.swift
@@ -77,7 +77,7 @@ class MapViewController: UIViewController {
func display(markers: [Marker],
isReport: Bool,
center: Bool = false) {
- DispatchQueue.main.async {
+ mapView.runOnInit {
self.mapView.display(markers: markers,
isReport: isReport,
center: center)
@@ -85,7 +85,7 @@ class MapViewController: UIViewController {
}
func focusOn(marker: Marker) {
- DispatchQueue.main.async {
+ mapView.runOnInit {
self.mapView.focusOn(marker: marker)
}
}