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.

Linear interpolation expression serialized as exponential interpolation expression #11562

Closed

Description

@1ec5

If an mbgl::expression::Interpolate is created using the JSON array ["interpolate", ["linear"], ["zoom"], […]], serialize() returns a value that specifies an exponential interpolator with a base of 1.0.

Interpolate::serialize() should have a special case for when the base is 1, to balance out the special case in parseInterpolate() that converts ["linear"] to ExponentialInterpolator(1.0). 02de0ce has the required changes in this repository, but there will need to be several corresponding changes to test fixtures in GL JS (example).

/ref #11389 (review)
/cc @anandthakker @ChrisLoer

Activity

  1. added
    Core
    on Mar 30, 2018
  2. 1ec5 commented on Mar 30, 2018

    @1ec5
    ContributorAuthor

    Fixed in #11565 on the release-boba branch in time for iOS map SDK v4.0.0 and macOS map SDK v0.7.0.

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

    Corebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions