Skip to content

Commit

Permalink
[wip] Quick Layers zPosition hack to make added annotation views visible
Browse files Browse the repository at this point in the history
  • Loading branch information
username0x0a committed Oct 2, 2022
1 parent 74edf29 commit b979fdb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platform/ios/platform/ios/src/MGLMapView+OpenGL.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit b979fdb

Please sign in to comment.