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

`line-offset` breaks joins #499

Open farfromrefug opened 2 years ago

farfromrefug commented 2 years ago

as you can see with line-offset the joins are not correct

Screenshot 2022-05-30 at 15 16 40 Screenshot 2022-05-30 at 15 16 31
mtehver commented 2 years ago

Thanks for reporting this. I made a simple testcase based on this CartoCSS but did not manage to reproduce this. So my guess this is dependent on geometry also. Could you put together a small reproducible test program?

farfromrefug commented 2 years ago

THanks for looking at this :D So you can reproduce it with this code https://github.com/CartoDB/mobile-sdk/blob/07fe90c800a7998032884bd5e04632f7837912ef/scripts/android-dev/app/src/main/java/com/akylas/cartotest/ui/main/SecondFragment.java#L297 (you dont need the MultiTileDataSource just use routes.mbtiles You can get routes.mbtiles and inner.zip from here http://gofile.me/4pKGL/sx3ZsbuEW

Once you ve started it zoom on any route to see it (you need sharp corners like here)

You will also see that it does not render well (line-offset) as you zoom in/out in those corner places. But it seems mapbox is facing the same issuse as seen here in a maptiler example

Screenshot 2022-06-15 at 10 56 32