I have downloaded and configured openstreetmap-tile-server from github repository which is just great and works fine with my map.
I would like to test different style insead of gravitystorm's. I checked the dockerfile and made research over internet to understand how this server works behind the scene.
What I found - that server install and uses carto to export gravitystorms project.mml into readable mapnik.xml for Mapnik application.
But I have found different interesting style which I would like to use with current image.
What I understand by README file- this is whole application to serve tiles, but I would like to get only CSSes styles as it's written in dockerfile with downloading gravitystorm's style. Is it possible to extract CSS styles?
asked 09 Mar '21, 12:17

engopy
126●10●10●15
accept rate: 0%
There are a bunch of questions over at that github repository already - https://github.com/Overv/openstreetmap-tile-server/search?q=style&type=issues - do any of those help?
In particular https://github.com/Overv/openstreetmap-tile-server/issues/152 suggests a couple of options.
After studying dockerfile I understand I need to generate mapnik.xml with carto and it is fine.
What is curious for me is- how to know which file (form repository I listed in post) should I convert with carto into mapnik.xml? There is no
project.mml
- in fact there is no .mml file at all. I found filepiano.yml
which looks like good candidate to be converted but the extension is .yml and it is confusing. I found some of other repositories with no .mml files.I know I could ask on all repositories separately, but I gues it's a newbie question and it can be obvious for users here.
If the file lists the layers, it's the right one. https://github.com/tilery/pianoforte/blob/master/piano.yml is indeed the right one.
See laso: https://help.openstreetmap.org/questions/65257/how-to-convert-yml-to-mml-file
At the end I have forked openstreetmap-carto repository and with kosmtik I've edited official style to my custom. Than during build OSM docker image I've changed style download path to my repository. It works fine.