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] new shield 'component' #25

Open farfromrefug opened 2 years ago

farfromrefug commented 2 years ago

In the many issues you tried to help me fix some items placements the one thing i was trying to achieve was to have a new kind of shield component. I think everything we tried with placement-priority and such could not solve it. I think the fact is that we would need a new shield component or an improved one.

The idea is to have a shield where the text can be hidden if there is not enough room to draw both the text and the icon. This is what openstreetmap and google maps do

Screenshot 2022-04-30 at 10 28 29 Screenshot 2022-04-30 at 10 26 23

Now apple maps does it a bit differently. It actually place the text on the best side to be able to draw the text

Screenshot 2022-04-30 at 10 30 29

Finally mapbox does not support this!

Now if i can push further on what i would love the shield to become:

Let me know what you think

farfromrefug commented 2 years ago

@mtehver i have been thinking and thinking about this. Maybe we dont need nor want a new component. It would mean not compatible with other carto css style and might require a lot of work.

Maybe we can accomplish this with a few changes:

I know some of those would not be compatible with web cartocss. Though it would allow cartoSDK styles to be in sync with other frameworks styling