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

`line-offset` breaks joins

Open farfromrefug opened this issue 3 years ago • 2 comments

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

farfromrefug avatar May 30 '22 13:05 farfromrefug

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?

mtehver avatar Jun 15 '22 08:06 mtehver

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

farfromrefug avatar Jun 15 '22 09:06 farfromrefug