From b979fdba4c73174c348c8a64926e00b95d466bf7 Mon Sep 17 00:00:00 2001 From: Michal Zelinka Date: Tue, 12 Jul 2022 23:51:49 +0200 Subject: [PATCH] [wip] Quick Layers zPosition hack to make added annotation views visible --- platform/ios/platform/ios/src/MGLMapView+OpenGL.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/ios/platform/ios/src/MGLMapView+OpenGL.mm b/platform/ios/platform/ios/src/MGLMapView+OpenGL.mm index aa8b6fcb1a8..57fc1037c6a 100644 --- a/platform/ios/platform/ios/src/MGLMapView+OpenGL.mm +++ b/platform/ios/platform/ios/src/MGLMapView+OpenGL.mm @@ -131,6 +131,7 @@ void bind() override { resource.glView.drawableDepthFormat = MGLDrawableDepthFormat16; resource.glView.opaque = mapView.opaque; resource.glView.layer.opaque = mapView.opaque; + resource.glView.layer.sublayers.firstObject.zPosition = -10; resource.glView.enableSetNeedsDisplay = NO; [mapView insertSubview:resource.glView atIndex:0];