You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
GLKView can have transparency, so we should see how tricky it is for an MGLMapView to do this also, if parts of the style (e.g. water) have transparency.
Setting the GLKView’s layer.opaque = NO was all that was required to make this work. Here’s an MGLMapView inside a vibrant+blurry UIVisualEffectView atop an AVPlayerLayer playing an MP4 movie:
(In Studio, I started with the Empty template, set the background layer’s opacity to 0, then added a translucent blue water layer.)
Activity
incanus commentedon Nov 15, 2015
Proof of concept basic project: https://github.com/incanus/ClearGLKit
bleege commentedon Nov 15, 2015
👍
1ec5 commentedon Nov 16, 2015
Can't wait for MGLMapView to be backed by a UIVisualEffectView!
1ec5 commentedon Nov 20, 2015
Setting the GLKView’s
layer.opaque = NOwas all that was required to make this work. Here’s an MGLMapView inside a vibrant+blurry UIVisualEffectView atop an AVPlayerLayer playing an MP4 movie:(In Studio, I started with the Empty template, set the background layer’s opacity to 0, then added a translucent blue
waterlayer.)[iOS] Transparent GLKView
gpbl commentedon Jan 5, 2016
Woah great! This is a really nice addition. Thanks!