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

Change mapnik.xml style #152

Closed
vchen0 opened this issue Sep 30, 2020 · 6 comments
Closed

Change mapnik.xml style #152

vchen0 opened this issue Sep 30, 2020 · 6 comments

Comments

@vchen0
Copy link

vchen0 commented Sep 30, 2020

I'm new to openstreetmaps and docker and was wondering is there a simple way to update the map style.

My understanding is that I can edit the style files in openstreetmap-carto and then build the xml with carto using
carto project.mml > mapnik.xml
But then I'm not sure what to do with mapnik.xml.

I followed the switch2osm docker tutorial and run the container using
docker run -p 8080:80 -v openstreetmap-data:/var/lib/postgresql/12/main -d overv/openstreetmap-tile-server:1.3.10 run

Is there a way to simply point the docker container to the new mapnik.xml? Sorry if that question doesn't make sense (I'm not familiar with how docker functions).

@quinncnl
Copy link

You can use -v to substitute the file

@RadekHavelka
Copy link

there are several ways. you can modifiy Dockerfile to COPY the mapnik.xml from your computer to docker during "docker build ." command. That will take the file and copy to docker, build it, and they if you do your normal "docker run", it will use it.
you can also modify mapnik.xml inside the container by running "docker exec -it DOCKERNAME bash" that will run bash command line INSIDE the docker and connect you to it. Then you can modify the xml manually, download (via wget) some replacement etc. Please not this will NOT survive new build command, but will stay during restart of the docker. Durable solution is to dig a bit into the docker build and dockerfile.

@mylastore
Copy link

One example of doing the copy/import of the newly regenerated mapnik.xml on docker-compose file will be nice for us rookies ;)

@astronautchen
Copy link

docker-compose

please tell me how to do this ,thank you !!

@lgmadurange
Copy link

substitute

how can i do that

@Istador
Copy link
Contributor

Istador commented Nov 10, 2021

docker run [...] -v /path/on/your/host/mapnik.xml:/home/renderer/src/openstreetmap-carto/mapnik.xml [...]

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

8 participants