Incorrect rendering of rivers (with pmtiles) #4764
-
I followed the steps on the protomaps website, got my map with The map file looks fine when viewed in an online tool. However, on my page, water rendering is completely bugged out. I removed all external styles and JS to isolate the problem. maplibre-gl-js version:
browser: tested in chrome, vivaldi, firefox Steps to Trigger Behaviorsee the demo. The most basic usage. Link to DemonstrationHere is a live demo: Expected Behaviorwater rendering normally Actual BehaviorLooks as if the SVG paths were closed and filled randomly. Rivers are increasingly broken the more you zoom in. Buildings and roads render fine. zoomed out, rivers look more correct |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
maybe I should instead report this in the pmtiles plugin github? |
Beta Was this translation helpful? Give feedback.
-
I'm not aware of these kind of issues in maplibre. |
Beta Was this translation helpful? Give feedback.
-
This looks like a styling issue, not data. I think I've had the similar issue before, can't remember specifics. Likely you're using some kind of Maplibre layer type (e.g |
Beta Was this translation helpful? Give feedback.
-
The issue was solved by updating the styles, pmtiles was migrating the planet files hosted on their server to a new format and the style shown in examples was outdated. This new format added SVG paths to rivers, which previously only used closed polygons |
Beta Was this translation helpful? Give feedback.
I'm not aware of these kind of issues in maplibre.
Without a minimal reproduction there's not much I can do.
Most likely, the problem is related to how you created the pmtiles...
Did you try out pmtiles from protomaps examples first to see that you get good results?