-
Notifications
You must be signed in to change notification settings - Fork 647
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
Serving multiple maps (.MBTiles) in th same server. #1209
Comments
Without a config and no mbtiles files specified, tileserver-gl just picks the first mbtiles file in the directory. It sounds like you have an issue where it is not using your config file and is just picking up the first mbtiles file. When using docker, typically you have a local folder set up. it looks like in your case that is 'build', so it would look something like this (it doesn't need to be exactly like this, it is just an example)
If you look at the second example at https://github.com/maptiler/tileserver-gl?tab=readme-ov-file#getting-started-with-docker you can see an example of this structure at https://github.com/maptiler/tileserver-gl/releases/download/v1.3.0/test_data.zip In the example command You could also tell tileserver-gl the path to your config file, you just what to remember inside the docker all your paths start with /data , so if your config is in style/config.json , you can specy the config location with -c In my own server at tiles.wifidb.net, I use a config like this Don't forget to check out the documentation at |
Hello Acalcutt, hope you are well. Thank you very much for your explanation. Regards |
Hello everyone,
I'm trying to serve multiple maps in my tileserver-gl server free version deployed in Linux Ubuntu 22.04 but unfortunately I just can serve one. My maps are in the folder /data but the server just reads the first one (alphabetic order). I already made a lot of changes in the file style/config.json and in the file /build/style/style.json.
My server is being deployed with docker containers.
I have two .mbtiles with different maps. I want to access them using QGIS desktop. I can access one but the second one the system simple does not read it.
It's enough just to make changes in config.json or I need to make changes also in style.json?
Can you provide me an example?
Why the system just reads the first map?
Thank you.
Regards,
FR
The text was updated successfully, but these errors were encountered: