Can maplibre handle sparse pmtiles? #5126
Replies: 2 comments 12 replies
-
I believe the solution would involve 2 pmtiles behind a tile server and routing though nginx rules. I haven't tried that, but I think you should be able to make it work... |
Beta Was this translation helpful? Give feedback.
-
I have not tested this with vector tiles, but I have been looking at something similar with terrain raster-dem files. I talked with wipfli initially and he had given me some ideas for layering raster tiles with addprotocol that replaced specific tiles. That worked, but it wasn't very flexible since you had to specify every tile you wanted to replace at every zoom level. I took that example and asked google AI to make a function that would check if a higher zoom tile was withing a lower zoon tile, and it gave me the function I used in this example. I used that function to show a different source when the tile is within the tiles (5/16/11, 5/17/11, 5/16/12, 5/17/12) In my example the main source goes to zoom 12, but the source in the (5/16/11, 5/17/11, 5/16/12, 5/17/12) areas go up to zoom 14. For the most part it seems with terrain that it does try to load lower zoom tiles if the higher zoom tiles don't exist. However even though the terrain works, I think I have also run into some issues caused tile zoom level being different from the max zoom on the source (specifically 'merged_terrain_source' in my example). For example, When I use it with a style that includes buildings and am looking in an area that only goes to zoom 12 instead of the source max zoom of 14, it seems to cause the building to float (which does not happen in the areas that actually go to zoom 14) It also goes away if i set the 'merged_terrain_source' to max zoom of 12, but then it wouldn't load the higher zoom tiles where they are available. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I don't have the disk space on my server to host a pmtiles file with all levels for the whole planet. I was thinking of preparing a sparse pmtiles with :
I'am expecting the following behaviour for levels 11 to 14:
I've done some preliminary tests on small regions and it doesn't seem to work:
Is it possible to handle sparse pmtiles with overzooming in the last available level ? Is it a question for maplibre developers or pmtiles developers ?
Thanks !
Etienne
Beta Was this translation helpful? Give feedback.
All reactions