CartoDB / mobile-carto-libs

Internal dependencies for CARTO Mobile SDK
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

[Feature Request] shield allow hiding text when not enough "place" #13

Closed farfromrefug closed 2 years ago

farfromrefug commented 3 years ago

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 corresponding text-feature-id are hidden?

a3y17ltexcQQ3A 200805 001mguillon08072021132703

farfromrefug commented 2 years ago

I ll close this in favour of https://github.com/CartoDB/mobile-carto-libs/issues/25