Skip to content
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

Open
shawaj opened this issue Nov 9, 2023 · 3 comments
Open

Viewer that accept cloudflare worker style URLs? #286

shawaj opened this issue Nov 9, 2023 · 3 comments

Comments

@shawaj
Copy link

shawaj commented Nov 9, 2023

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 :-)

@bdon
Copy link
Member

bdon commented Nov 9, 2023

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?

@shawaj
Copy link
Author

shawaj commented Nov 9, 2023

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.

@bdon
Copy link
Member

bdon commented Nov 13, 2023

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.

@bdon bdon mentioned this issue Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants