-
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
Drop warning thrown when image equates to "" and image expression type is not used #8800
Comments
I'm not sure I understand this part. What do you think would be the expected outcome of |
Throwing this warning seems consistent with existing warnings, for example, when a field value is the incorrect type in a get expression. I think it's useful. I do wonder if Mapbox GL should have separate |
Yes. It should be treated as if
An incorrect type in a get expression is an example of something wrong and yeah, a warning should be thrown. However, providing
Yeah, that crossed my mind too (similar to how React does this) +1 |
I agree with this. Even in development mode, the error message or the More so, |
mapbox-gl-js version:
v1.4.0-beta.1
Question
icon-image: ""
is a valid value, so I was confused when I saw this warning thrown.As its a common scenario to write an expression that chooses some features to use
""
and others to use one, I think this sends a confusing message to a user.Understanding the rationale behind adding it in
v1.4.0
as part of the new image expression type, can we limit the warning thrown to when its in use?Links to related documentation
The text was updated successfully, but these errors were encountered: