-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Is it possible to use multiple URL for a single PMTiles source? #491
Comments
No - that solution relies on server-side aliasing of |
Precisely! We already have a classic tile hosting infrastructure that handles subdomains. Since most map frameworks already handle the use of multiple tile URLs for each tile source, it might seem legitimate that the PMTiles protocol provides such a feature. Could this be a feature request? |
Why do you prefer this solution instead of HTTP/2? |
It's not a matter of preference, but rather of keeping a functionality that is for now still available with default protocol. If you think it shouldn't be possible, I won't insist further. |
This is tied to the interpolation of In order to take advantage of multiple subdomains you would then need a proxy in front of S3 storage, but if you are already using a proxy it seems like the vast majority of dynamic proxies like caddy, nginx or a zxy decoder all support HTTP/2 already. So don't feel like this solution is general enough to be part of the JS implementation, but if other users disagree then it could be reconsidered. |
Maybe related to #16
Currently in HTTP/1.1 browsers are limiting by domain how many (6) concurrent requests can be done.
Map frameworks like MapLibre, Mapbox, Leaflet (also according tilejson-spec) allow to define multiple URL for each source.
Also each (file)tiles providers usually provide multiple subdomain for the same content (
[a|b|c].tile.thunderforest.com
,[a|b|c].tile-cyclosm.openstreetmap.fr
,…).Thus allowing to bypass browsers limitation.
Is there such a way for PMTiles protocol adapter to accept multiple URL?
The text was updated successfully, but these errors were encountered: