-
Notifications
You must be signed in to change notification settings - Fork 102
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
POI subclass icons not used ? #146
Comments
In general, yes, but the above expression only takes into account the subclass 'Florist' and the subclass 'Furniture'. From #64 (comment) :
To style other subclass values we need, Since both icons for tennis/soccer are already included in the sprites, I added them in #147. |
Thanks @pathmapper for the explanation, and for the PR!
But I also wonder: why not use the more general expression |
Hello,
(I previously posted this as a comment in issue #113 but since it is closed I prefer to open a new issue)
Since issue #113 the expression
"icon-image": ["match", ["get", "subclass"], ["florist", "furniture"], ["get", "subclass"], ["get", "class"]]
is used to try to find the subclass icon of a POI instead of the class icon (right?)It seems to me that this is not working in the case of the sport icon (subclass) versus the pitch icon (class).
(In the 2 examples below, I printed the subclass instead of the name in the text layout field, and the captures are from maputnik website)
For example, I was expecting the match expression to give this result, with different icons for soccer and tennis pitches:
(To get this result I had to used
"icon-image": "{subclass}"
which is not satisfactory because it does not have the fallback)whereas the match expression gives this result, with always the pitch icon whatever the sport:
I did not check if it is working for other subclass icons (when the class is not pitch).
The text was updated successfully, but these errors were encountered: