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.

Respect 'base' in composite functions #8654

Closed

Description

@anandthakker

In GL JS, we use the base property to interpolate the zoom component of composite functions of all types (not just for type: exponential). Ref

Here, it looks like we always assume a base of 1.0f

For consistency with GL JS, we should include a base property on each Composite*Stops<T> type--or maybe as a member of the function itself? I'm not sure--and use when we compute the interpolation factor.

Activity

  1. added
    Core
    on Apr 5, 2017
  2. changed the title [-]Respect 'base' in composite functions of all types[/-] [+]Respect 'base' in composite functions[/+] on Apr 5, 2017
  3. added a commit that references this issue on Apr 5, 2017
  4. jfirebaugh commented on Apr 5, 2017

    @jfirebaugh
    Contributor

    I think there's an underlying design flaw with the current specification of composite functions at play here. You should be able to separately specify the types of the camera and source portions of composite functions -- and if both types are exponential, provide separate bases for each.

  5. anandthakker commented on Apr 5, 2017

    @anandthakker
    ContributorAuthor

    Agreed @jfirebaugh - though I think we should keep this issue open to track the short/medium-term problem, since fixing the spec may take longer.

  6. jfirebaugh commented on Jul 12, 2017

    @jfirebaugh
    Contributor

    In mapbox/mapbox-gl-js#4934 we switched gl-js to match native's linear interpolation for the zoom component. We'll defer to expressions to provide sophisticated independent control over this.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions