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

Add file extension to individual tile URL #1208

Open
ohrie opened this issue Feb 22, 2024 · 0 comments
Open

Add file extension to individual tile URL #1208

ohrie opened this issue Feb 22, 2024 · 0 comments

Comments

@ohrie
Copy link

ohrie commented Feb 22, 2024

My problem is, that I want to add a Cache-Control HTTP Header in my nginx proxy, because martin currently not yet (#749 ) supports the header. To select the tiles properly, nginx selects (analogous to Apache) the files via file extension (see example).
As GDAL writes in their docs: "typical extensions are .pbf, .mvt, .mvt.gz)" for Vector Tiles. Therefore I would propose to add the file extensions for the individual tiles and change the url in the TileJSON.

Therefore the TileJSON would look like this:

{
"tilejson":"3.0.0",
"tiles":["https://tileserver.com/streets/{z}/{x}/{y}.pbf"],
....
}

instead of
"https://tileserver.com/streets/{z}/{x}/{y}"

Mapbox specifies in their vector-tile-spec the file extension as .mvt.

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

1 participant