-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
support tiles beyond z14 in leaf directories #4
Comments
Is this the same issue as with the |
For GL JS styles it would appear that the
|
@reyemtm did you download from https://protomaps.com/downloads/large_map ? if so it's possible your PMTiles archive only goes down to 12, because the total # of tiles in a single export is limited to 10,000. a Smaller area might get you down to 14. |
Ok that explains it. I'll try downloading a smaller area. So if a larger
area is needed that's when licensing comes in?
…On Tue, Mar 29, 2022, 2:47 AM Brandon Liu ***@***.***> wrote:
@reyemtm <https://github.com/reyemtm> did you download from
https://protomaps.com/downloads/large_map ? if so it's possible your
PMTiles archive only goes down to 12, because the total # of tiles in a
single export is limited to 10,000. a Smaller area might get you down to 14.
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQ2HUIIWTDY3EIBPYQQRR3VCKRQFANCNFSM4YEN7YJQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Confirmed downloading a smaller area fixed the issue. |
Oh! I see, so tiles beyond z14 are not supported in single-file? See: https://tulsa-crash-map.netlify.app/#13/36.15138/-95.98636 vs https://tulsa-crash-map.netlify.app/#14/36.15138/-95.98636. Any ideas on workarounds? I suppose a second layer with regular XYZ would do the trick... Separately, how do zooms beyond 14 work on this map? Or am I missing something? Note: I'm using the python bin for this. Also, it's possible I'm doing something wrong during the mbtiles step. |
What source did you get the first one from? It looks like it only contains tiles down to z13, which might have been introduced as a limitation if you downloaded a "large map" (confusing right now, I know) The client uses overzooming, so when you go beyond 14 in MapLibre, your data source is still the z14 tile, although your zoom-dependent styling can show different features at 15, 16, 17 etc. Currently the implementations only support one leaf level, so up to z14. In practice, most vector tile applications get enough resolution with z14, but it's worth supporting z15 for the cases that do really need it as well as raster tiles. |
Thank you for the reply! I've been obsessed with this awesome work for the past few days.
Ah, I see, okay. So, the basemap is a small area map extract. I see what you mean by the maxzoom in the source data. However, I'm interested in why my red point data (which is generated from Apologies if I'm missing something entirely. |
Further thinking: I believe maplibre-gl is not over-zooming past the specified maxzoom of this particular set of pmtiles for some reason. I can confirm this when I view the mbtiles version of the dataset in mapbox-gl, where it does the overzooming beyond the maxzoom. So it might be:
I'm not sure why it would be explanation 1) because maplibre-gl overzooms beyond the maxzoom with the basemap pmtiles just fine. I'm going to try a few different things but any observations would help! Thank you! :) (I realize this discovery moves it outside the intention of this particular issue). |
OKAY I figured it out. It's because I needed to explicitly specify the maxzoom in my source configuration. I'm sure that's documented somewhere. Sorry, I really went down a rabbit hole there. I'm not sure how mbview works but I wonder if it infers the maxzoom from the metadata? Anyway, thanks for letting me bounce ideas here. |
@allthesignals yeah, that makes sense. Ideally, the PMTiles maplibre adapter should read the metadata from the archive and then populate |
Opened #48 |
PMTiles are so cool! Thanks @bdon for all the work you put into this :) I run into a similar issue with the map disappearing when going to zoom level 13 and more. I generated the tiles with planetiler in https://github.com/wipfli/swiss-map which creates a 239 MB mbtiles and a 329 MB pmtiles file. My workaround there was to limit to zoom 12 in the tiles: "sources": {
"swissmap": {
"type": "vector",
"tiles": ["pmtiles://output.pmtiles/{z}/{x}/{y}"],
"maxzoom": 12
}
}, But then details will be missing from levels 13, 14. |
Yeah, unfortunately there is no way through maplibre |
I used the command
You can download the mbtiles and pmtiles file here: |
I installed v1.3.0 and the issue with the missing tiles is gone. Sorry for not checking earlier @bdon... |
@wipfli ok, thanks for letting me know! btw, for the v3 mbtiles conversion tool I'm considering releasing that as a standalone binary (go version) instead of getting |
Also long as it is easy to get and run on ubuntu, I think a standalone binary is fine too... |
No description provided.
The text was updated successfully, but these errors were encountered: