Open christian2701 opened 10 months ago
result of the discussion was that xvfb-run -a /opt/test7/mbntest/build/bin/mbgl-render --style=style.json --lat=45.446518 --lon=12.330183 --zoom=16 --width=4000 --height=4000 --output 4000.png with opacity 0.4 shows "something"wrong painted / different to mapliubre-js where this tile works
seems to be a "fill" error. Changing to type=line in style.json shows no geometry errors
earcut is being used to triangulate fill polygons. It's very possible that in the above case the error is related to the self intersection of the segments generated to close the geometry in the upper & lower right corners.
I attempted to look at the geojson this creates with vt2geojson
vt2geojson https://tiles.wifidb.net/data/it-nord-est-latest-wateronly-lowres/14/8752/5864.pbf > 14-8752-5864.pbf.json
vt2geojson https://tiles.wifidb.net/data/it-nord-est-latest-wateronly-lowres/14/8753/5864.pbf > 14-8753-5864.pbf.json
and i got these two geojson files 14-8752-5864.pbf.json 14-8753-5864.pbf.json
One thing I notice looking at these in google earth is it seems like the main water polygon has some type of line going around the border if the tile
btw, with the rest of the water polygons it doesn't looks like that line shows, just in that 3049430 polygon.
You can compare with this water layer export from my current planetiler mbtiles file. it doesn't get lines like that. wdb_14-8753-5864_water.pbf.json
Well spotted @acalcutt The line / border is caused by tilemaker on certain edge cases https://github.com/systemed/tilemaker/issues/574 Thererfore this is not a maplibre-native effect after all So i think we can 99% close this issue and the remaining 1% is the confusion from the start why maplibre-js doesn't show this behavior while native does - some display rules seem to work not 1:1 js vs native ?
Thererfore this is not a maplibre-native effect after all
I think it is at least worth noting, as @geoneutrino says, that Maplibre Native's behaviour here differs from Maplibre JS's. I've verified this with my own vector tiles - in fact I had been wondering why I had a few "burst" coastlines in my app but not when viewed on the web!
Discussed in https://github.com/maplibre/maplibre-native/discussions/1836