-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Expression image
operator
#994
Labels
Comments
Can you please provide a jsbin with minimal repoduction? |
I have just updated the description with the JS Bin example. |
I think the following is working as expected, isn't it: "icon-image": [
"coalesce",
[
"get",
"subclass"
],
[
"get",
"class"
],
"dot"
], I do see some missing images though, which might cause the console warning in the above expression, not sure it is related though...
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Maybe wrong
image
operator evaluation?To Reproduce
Using following expression on
icon-image
attribute on symbol layerthrowing unwanted console warning.
The expression is working correctly, it picks icon either by subclass value, class value or if the icon does not exist it picks existing dot icon. This behavior is handled by the coalesce expression operator and works really correctly.
But if there is no match by subclass or class value a warning message in web console is shown saying that non matched icon could not be loaded.
Expected behavior
Map Engine should not throw warning about missing icon evaluated by subclass or class value.
Warning
Desktop (please complete the following information):
OS or web browser does not affect the behavior.
Example
https://jsbin.com/mupurasosi/edit?html,output
The text was updated successfully, but these errors were encountered: