This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Per-attribute transition properties on MGLStyleLayer #8010
Labels
GL JS parity
For feature parity with Mapbox GL JS
iOS
Mapbox Maps SDK for iOS
macOS
Mapbox Maps SDK for macOS
runtime styling
Milestone
MGLStyleLayer’s concrete subclasses should allow the developer to set transitions that affect individual layout or paint attributes.
We could pair every layout or paint attribute with a
transitionFor…
property. Or we could fight property proliferation by adding-transitionForKey:
and-setTransition:forKey:
methods to MGLStyleLayer itself (along the lines of-[CALayer addAnimation:forKey:]
). (The downside would be pushing validation of the key until runtime.)Either way, we should add an MGLTransition class or struct to encapsulate the details of a transition. We’ll want to refine the MGLStyle methods added in #7711 to make use of MGLTransition instead of working with durations and delays directly.
/ref #7863
/cc @incanus @boundsj @jfirebaugh @tobrun
The text was updated successfully, but these errors were encountered: