-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
pmtiles center coordinates wrong (was:not able to render pmtiles file in maplibreGL) #193
Comments
we need your |
@bdon here it is, many thanks: https://drive.google.com/file/d/1VtsZvOqNA4w4Rv95hB4zHASQs6crlWgM/view?usp=sharing |
Your PMTiles header has center lon, center lat: 14, 35: whole numbers instead of a precise point that is close to Malta. So your viewport is far off where it should be. Did you override the determination of the center somehow? |
nope, I've just run this command:
|
btw - you're perfectly right: just modified my code with the proper lat/lon (center: [14.4468, 35.8836]) and I see it properly:
let me know if you want me to do some tests on why the default center does not contain precise point , I've used basemaps master from yesterday. |
Thanks for reporting, will be fixed by onthegomap/planetiler#769 upstream |
Updating your planetiler dependency via |
I've generated pmtiles file for Malta via basemap and serving it via http-server.
I can display them fine within leaflet with protomapsL.leafletLayer - here the index.html snippet:
I'm now trying to render it via maplibreGL but I just get an empty screen (no console errors), it is as if the layers are not loaded correctly: however when I drop the pmtiles file in https://maps.protomaps.com it displayes jiust fine and I got the JSON style - here is index.html:
and mystyle.json is attached: mystyle.json
Is anyone so kind to give me an hint on what I am doing wrong? Thanks in advance
The text was updated successfully, but these errors were encountered: