maptiler / tileserver-gl

Vector and raster maps with GL styles. Server side rendering by MapLibre GL Native. Map tile server for MapLibre GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
https://tileserver.readthedocs.io/en/latest/
Other
2.24k stars 639 forks source link

Serving 512px raster map tiles #574

Open msh100 opened 2 years ago

msh100 commented 2 years ago

From what I can tell from the documentation, this may not be possible, but if it is, any guidance would be welcome!

I would like to produce 512px raster map tiles. It appears the only way of doing this is setting @2x and dropping the zoom level however at this point you start to get strange effects and all the detail is on the wrong scale.

Today, is it possible to render these at the correct scale or would I need to stitch them together with other software?

msh100 commented 2 years ago

https://github.com/maptiler/tileserver-gl/pull/495 is very relevant, I pulled and rebased and it works as I need it to

boldtrn commented 1 year ago

Maybe you could create a PR from your changes @msh100?

msh100 commented 1 year ago

Maybe you could create a PR from your changes @msh100?

Morning! I did nothing more than rebase these commits https://github.com/maptiler/tileserver-gl/pull/495/commits so I have nothing to really contribute

jefferypalmer commented 1 year ago

Hi @boldtrn,

We are also looking to support 512 pixel tiles, is there anything I can assist with here? Has this been reviewed/planned for merge into main?

Cheers

acalcutt commented 1 year ago

@boldtrn and I discussed a bit in the slack channel https://osmus.slack.com/archives/C0436FK28C9/p1674463966244539

From my point of view, I think it make sense to support 512px tiles. From my own testing of the https://github.com/maptiler/tileserver-gl/pull/495 I think It could use a bit of reverse compatibility, like a regex for the old format urls. It also needs some work on the tilejson side. @boldtrn and I discussed possible having two tilejson enpoints, silimar to what tileserver does in their other products. https://api.maptiler.com/maps/basic-v2/{z}/{x}/{y}.png?key https://api.maptiler.com/maps/basic-v2/256/{z}/{x}/{y}.png?key

personally I feel like I would do the opposite of this. use the old url to continue to serve 265 tiles, while adding a new one for that supports specify tile size, like in the PR.