Clip MGLMapView to its bounds

Fixes #1300.
This commit is contained in:
Minh Nguyễn
2015-04-22 12:48:15 -07:00
parent e1cf6d1515
commit 8ab22c11a2

View File

@@ -242,7 +242,8 @@ mbgl::DefaultFileSource *mbglFileSource = nullptr;
_glView.contentMode = UIViewContentModeCenter;
[self setBackgroundColor:[UIColor clearColor]];
self.backgroundColor = [UIColor clearColor];
self.clipsToBounds = YES;
// load extensions
//