From 7567eaf152fbaaed52a414c5c2d1cb3ebd2214ad Mon Sep 17 00:00:00 2001 From: Jukka Hietanen Date: Fri, 28 May 2021 23:36:15 +0300 Subject: [PATCH] [ios] Disable map snapshots by default. This fixes following issues: (#83) * Map can flash another map style when brought to foreground * Map can jump when brought to foreground * Fixed "zoomed in" flash issue with Metal branch (https://github.com/maplibre/maplibre-gl-native/issues/76) --- platform/ios/platform/ios/src/MGLMapView.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/ios/platform/ios/src/MGLMapView.mm b/platform/ios/platform/ios/src/MGLMapView.mm index 351ab0449..20907c370 100644 --- a/platform/ios/platform/ios/src/MGLMapView.mm +++ b/platform/ios/platform/ios/src/MGLMapView.mm @@ -6699,7 +6699,9 @@ static void *windowScreenContext = &windowScreenContext; return; } +#ifdef MBGL_ENABLE_MAP_SNAPSHOTS [self queueBackgroundSnapshot]; +#endif if ([self.delegate respondsToSelector:@selector(mapViewDidBecomeIdle:)]) { [self.delegate mapViewDidBecomeIdle:self];