I have been using 2 text layers (font icon + label) to do that for a while. The idea is to somehting similar to what OSM does
But it wont work perfectly as i would like and as it should
as you can see in the screenshot the blue arrow show when it does what i want, the icon is showing but the text is hidden
Though in some cases you will end up with the red arrow case where only the text is showing which is not what s expected.
What you want is:
can show both => draw
can show only icon => draw icon
can show only text => hide
I think the easiest, if possible, would be to have a shield property to allow the text to hide if not enough room.
What do you think?
EDIT : actually i see that it is not enough for me as i cant use shields because it only supports images and not font icons. Could we imagine a way to say, while using text-feature-id, dont show me if all other corresponding text-feature-id are hidden?
I have been using 2 text layers (font icon + label) to do that for a while. The idea is to somehting similar to what OSM does
But it wont work perfectly as i would like and as it should as you can see in the screenshot the blue arrow show when it does what i want, the icon is showing but the text is hidden
Though in some cases you will end up with the red arrow case where only the text is showing which is not what s expected.
What you want is:
I think the easiest, if possible, would be to have a shield property to allow the text to hide if not enough room. What do you think?
EDIT : actually i see that it is not enough for me as i cant use shields because it only supports images and not font icons. Could we imagine a way to say, while using
text-feature-id
, dont show me if all other correspondingtext-feature-id
are hidden?