CartoDB / mobile-sdk

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

Remove duplicate features in different vector tile sources #537

Open safe-bug opened 1 year ago

safe-bug commented 1 year ago

Hello,

I have two vector tile sources, with one having a higher priority and being displayed on top of the other. I am seeking a solution to remove all features (points) that are present on the higher level tile from the lower level tile dynamically, since the higher level data changes periodically. How can I do this?

Thanks

mtehver commented 1 year ago

Hi. I see two options here:

If you simply want to hide features while rendering, you can perhaps use 'MarkerSymbolizer' with 'allow-overlap: false' attribute. The problem here is that this hides all overlapping points, even when they are not the same.

The second options is to simply update features of your vector tile data sources to ensure that there are no overlapping points.