From 63cf7888d8c7767ae9566d72623d43ca35d50297 Mon Sep 17 00:00:00 2001 From: Juraj Hilje Date: Fri, 16 Aug 2024 16:03:07 +0200 Subject: [PATCH] fix(ui): update MapScrollView.swift --- IVPNClient/Scenes/MainScreen/Map/MapScrollView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IVPNClient/Scenes/MainScreen/Map/MapScrollView.swift b/IVPNClient/Scenes/MainScreen/Map/MapScrollView.swift index 24c190c54..aa1251647 100644 --- a/IVPNClient/Scenes/MainScreen/Map/MapScrollView.swift +++ b/IVPNClient/Scenes/MainScreen/Map/MapScrollView.swift @@ -118,6 +118,9 @@ class MapScrollView: UIScrollView { func updateMapMarkers() { markerLocalView.updateView() markerGatewayView.updateView() + if let viewModel = viewModel { + updateMapPosition(viewModel: viewModel, animated: true) + } } func updateMapPosition(latitude: Double, longitude: Double, animated: Bool = false, isLocalPosition: Bool, updateMarkers: Bool = true) {