-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MaplibreGL broken river rendering #463
Comments
Hi, which example HTML file are you using? The issue is definitely in here, I am merging in the breaking 4.0 major version changes and some layers have mixed geometry types so we need to add geometry filters to the styles. |
this one https://github.com/protomaps/PMTiles/blob/main/js/examples/maplibre.html you can also see it live on my test page, it's all static files on apache and some CDN for assets |
you need to modify the id: "water",
type: "fill",
filter: ["==", ["geometry-type"], "Polygon"], I will work on updating the examples |
So basically the tiles contain closed lines (polygons) as well as open lines and the bug was that it closed the open lines using the fill style? |
the fix works perfectly 👍 |
yes, exactly. This has to do with the Basemaps repo which generates the |
hmmm, I added (guessed) more styles using the reference at https://maplibre.org/maplibre-style-spec/ and now I also see little streams and possibly other features. These completely disappeared with adding the filter for fill.
Is there a good-to-use-as-is style compatible with the v4 format I could use instead of trying to make my own? |
Should be fixed by #464 the new style for v4 is not on NPM yet but you can either copy-paste it from maps.protomaps.com |
If I want the map to use local names (I'm making maps for Czech Republic, so e.g. Labe instead of Elbe)... I will have to generate my own planet file first, or the language in styles somehow does this? Or it just changes what font is used? |
If you run |
I opened the issue here maplibre/maplibre-gl-js#4763 but maybe it is a bug in this repo instead. More details are in the other issue.
the map file was grabbed today using this command:
I get the same broken rendering with your example html file, completely unchanged outside of editing the source link and coordinates.
This bug does not reproduce with the example file https://pmtiles.io/protomaps(vector)ODbL_firenze.pmtiles
my pmtiles command line tool is installed from AUR, version 1.20.0
The text was updated successfully, but these errors were encountered: