CartoDB / mobile-sdk

CARTO Mobile SDK core project
https://carto.com/docs/carto-engine/mobile-sdk/
BSD 3-Clause "New" or "Revised" License
182 stars 65 forks source link

functionality for allow-overlap for different layers but not inside the one #429

Open F-15023 opened 3 years ago

F-15023 commented 3 years ago

Hi! I ran into some difficulties. I have icons on the map and a caption with the name. To display them, I use the shield type because when two icons intersect, I want the icon to be hidden along with the text. The problem is that there are a lot of icons on the map and they completely hide the street names. I would like street names not to be hidden if they intersect with an icon or text. How do I achieve this behavior? However, I don't want the icons to be drawn on top of each other if I enable allow-overlap and i don't want the road names to be draw on the top of each others.

mtehver commented 3 years ago

You are using CartoCSS, correct? Basically the only way is to have two separate CartoCSS styles and VectorTileLayer instances.