-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Viewer that accept cloudflare worker style URLs? #286
Comments
the viewer right now is specific to pmtiles files, the worker turns it into a plain z/x/y URL which does not require any specialized pmtiles-related code. What functionality were you looking to get out of the viewer in particular? |
What I was thinking is just a way you can put in either an URL like https://tiles.example.com/20231108 or an URL scheme like https://tiles.example.com/20231108/{z}/{x}/{y}.mvt and it would populate the map using those tiles. Really just as a quick way to test that the CF worker is up and running and caching is working etc without having to spin up maplibre-gl or anything else. Maybe having ability to put in a maplibre-gl style JSON with link to the tile source embedded or similar might also be useful for demoing styles etc Hope that makes sense. |
Yeah, that should just be a matter of letting the MapLibre-based viewer take plain ZXY urls. I need to split out the "tile inspector" functionality - afterwards I'll add that. |
Will do in the rework of https://pmtiles.io - consolidating on issue #49 (comment) |
Awesome, thanks @bdon 🙏 |
FYI https://maps.protomaps.com now supports TileJSON e.g. This is a subset of how pmtiles.io will eventually work which is inspecting |
In your (fantastic!) guide here... https://docs.protomaps.com/deploy/cloudflare#_3-create-worker-route
You have the URL format for the worker of:
https://subdomain.mydomain.com/FILENAME/0/0/0.mvt
https://subdomain.mydomain.com/FILENAME.json
Is there a viewer that can accept these kind of URLs for testing?
I know you have the viewer that can take the pmtiles files, however as those can't be cached at cloudflare, I was hoping to do some testing with a viewer that can accept the cached formats.
Thanks in advance :-)
The text was updated successfully, but these errors were encountered: