CartoDB / mobile-sdk

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

[cartocss]: marker z positioning #467

Open farfromrefug opened 3 years ago

farfromrefug commented 3 years ago
Screenshot 2021-10-18 at 12 56 51

As shown in the screenshot the z positioning of markers is wrong by default. I know we have placement-priority but here what i want is the default placement we have with Marker where the z positioning is based on lat/long

The biggest issue with this is the wrong rendering while tilting.

Screenshot 2021-10-18 at 12 59 09
mtehver commented 3 years ago

Correct, this feature is missing when using CartoCSS markers. It requires per-frame sorting of markers which is currently not implemented in vector tile renderer. Currently the only workaround is to use VectorLayer with Marker instances.

I am looking into this, will likely add a new property that can be used to force sorting.

farfromrefug commented 3 years ago

@mtehver thanks for confirming this. Would nice a nice to have indeed. But no rush