Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify what happens with exponential or interval property function type mismatches #4146

Closed
lucaswoj opened this issue Feb 1, 2017 · 1 comment
Assignees
Labels
cross-platform 📺 Requires coordination with Mapbox GL Native (style specification, rendering tests, etc.)

Comments

@lucaswoj
Copy link
Contributor

lucaswoj commented Feb 1, 2017

From @jfirebaugh on November 29, 2016 18:19

For example, what is the result of evaluating the following function against a feature whose p property value is not numeric?

{
  "property": "p",
  "stops": [
    [0, 0],
    [10, 100]
  ]
}

cc @lucaswoj

Copied from original issue: mapbox/mapbox-gl-style-spec#588

@lucaswoj
Copy link
Contributor Author

lucaswoj commented Feb 1, 2017

Currently this is undefined behaviour.

If we're looking to define the behaviour in this case, I'd suggest implementing a default value per mapbox/mapbox-gl-style-spec#480 and using that value in cases like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cross-platform 📺 Requires coordination with Mapbox GL Native (style specification, rendering tests, etc.)
Projects
None yet
Development

No branches or pull requests

3 participants