Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Per-attribute transition properties on MGLStyleLayer #8010

Closed

Description

@1ec5

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

Activity

  1. added
    GL JS parity
    iOS
    macOS
    on Feb 9, 2017
  2. added this to the ios-v3.5.0 milestone on Feb 9, 2017
  3. 1ec5 commented on Feb 23, 2017

    @1ec5
    ContributorAuthor

    mbgl::Layer subclasses expose properties for setting transitions on individual layout and paint properties (example). However, there don’t appear to be any getters. We should add transition getters too.

  4. boundsj commented on Mar 10, 2017

    @boundsj
    Contributor

    This was added in #8225 that has landed on the release-ios-v3.5.0-android-v5.0.0 release branch and will be in the next iOS 3.5.0 beta 3 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GL JS parityiOSmacOSruntime styling

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions