From 653724e68de07cc8a35fb734524a8c72d2eef0a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Fri, 27 Mar 2015 16:34:11 -0700 Subject: [PATCH] Child GLKView should be bottommost child Otherwise, any subviews added to an MGLMapView in a XIB or storyboard are completely obscured by the GLKView. --- platform/ios/MGLMapView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index 200fb02fa..d1d4a47a2 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -212,7 +212,7 @@ mbgl::DefaultFileSource *mbglFileSource = nullptr; } _glView.delegate = self; [_glView bindDrawable]; - [self addSubview:_glView]; + [self insertSubview:_glView atIndex:0]; _glView.contentMode = UIViewContentModeCenter; [self setBackgroundColor:[UIColor clearColor]];