diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2022-09-21 12:52:36 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2022-09-22 10:08:55 +0200 |
| commit | e3f1784f63ff2f8b180656dc325eb7c11ea9db78 (patch) | |
| tree | aa43dd30b0fd6023d7d8dc93e0a2fb7580f609e1 | |
| parent | 2b6debc4b7743b5baafcecebce8b633526069e55 (diff) | |
| download | mullvadvpn-e3f1784f63ff2f8b180656dc325eb7c11ea9db78.tar.xz mullvadvpn-e3f1784f63ff2f8b180656dc325eb7c11ea9db78.zip | |
Add custom overlay above labels
| -rw-r--r-- | ios/MullvadVPN/ConnectViewController.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ios/MullvadVPN/ConnectViewController.swift b/ios/MullvadVPN/ConnectViewController.swift index ebfd55f27b..49a7bdf1bf 100644 --- a/ios/MullvadVPN/ConnectViewController.swift +++ b/ios/MullvadVPN/ConnectViewController.swift @@ -518,7 +518,7 @@ class ConnectViewController: UIViewController, MKMapViewDelegate, RootContainmen // Replace the default map tiles tileOverlay.canReplaceMapContent = true - contentView.mapView.addOverlay(tileOverlay) + contentView.mapView.addOverlay(tileOverlay, level: .aboveLabels) } private func loadGeoJSONData() { @@ -534,7 +534,7 @@ class ConnectViewController: UIViewController, MKMapViewDelegate, RootContainmen let data = try Data(contentsOf: fileURL) let overlays = try GeoJSON.decodeGeoJSON(data) - contentView.mapView.addOverlays(overlays) + contentView.mapView.addOverlays(overlays, level: .aboveLabels) } catch { logger.error(chainedError: AnyChainedError(error), message: "Failed to load geojson.") } |
