-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Expressions of Equality throws error #5947
Comments
There's a workaround: Use
|
@andest01, thanks for the report. Could you please provide a self-contained example on jsbin.com or similar that shows the issue? |
That seems to be generating some unrelated style validation errors. |
@jfirebaugh How frustrating - I inadvertently pasted an older version. My apologies. I tested this version in a new tab and it's exhibiting the above behavior. |
Thanks, I see the issue now! Should be an easy fix. |
mapbox-gl-js version:
Mapbox Version 0.43.0
Steps to Trigger Behavior
http://jsbin.com/tonekocohu/1/edit?html,output
Create a Mapbox Style with the following paint property:
Expected Behavior
The style for the applied geometry uses the expression correctly.
Actual Behavior
The mapbox engine crashes:
Uncaught Error: can't serialize object of type function
==
is undocumented, but clearly exists in the code base.https://github.com/mapbox/mapbox-gl-js/blob/919be588592509f97eeb4a22510b56e7982dbcc6/src/style-spec/expression/definitions/equals.js
https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/expression/definitions/index.js#L37
The
==
operator did work in a prior mapbox version, specifically0.42.0
.The text was updated successfully, but these errors were encountered: