mobile-sdk icon indicating copy to clipboard operation
mobile-sdk copied to clipboard

[cartocss]: marker z positioning

Open farfromrefug opened this issue 4 years ago • 2 comments

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

farfromrefug avatar Oct 18 '21 10:10 farfromrefug

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.

mtehver avatar Oct 21 '21 07:10 mtehver

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

farfromrefug avatar Oct 21 '21 08:10 farfromrefug