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

Need to change the value of "tiles" from auto generated 'osm2vectortiles.json' #60

Closed bertrandmd closed 8 years ago

bertrandmd commented 8 years ago

in my osm2vectortiles.json, i need to change the value of "tile" ex: "tiles": [ "127.0.0.1:8080/data/osm2vectortiles/{z}/{x}/{y}.pbf" ]

I need to have : "tiles": [ "127.0.0.1:8080/myfolder/data/osm2vectortiles/{z}/{x}/{y}.pbf" ] with tileserver doc I can understand I need to create a config.json. Could you be more precise about the minimum parameter to put in this file?

Thanks

petrsloup commented 8 years ago

Changing the folder structure is not directly possible.

Additional software (such as nginx) is usually used in production in front of the tileserver-gl itself and is capable of handling this (see #51).

Duplicate of #51

klokan commented 8 years ago

To get started with the config file you can run tileserver gl with "--verbose" argument and it will print out the config automatically generated. This is a good starting point to copy it out, save it into a file and start to adjust it according to your needs.

bertrandmd commented 8 years ago

@petrsloup yes nginx works ! thks @klokan thks for the tips !