openmaptiles / osm-bright-gl-style

OSM Bright GL Style using OpenMapTiles
https://openmaptiles.github.io/osm-bright-gl-style/
Other
194 stars 120 forks source link

Tools for building the style #16

Open spatialillusions opened 6 years ago

spatialillusions commented 6 years ago

Really nice style, and I just wonder if it would be possible to provide the tool/scripts that you use for building the github pages version that contains the local version and that also builds the sprites?

sign0 commented 5 years ago

This container seems to generate sprites in the right format. However, I still can not call them in my style sheet. Have you found a solution ?

https://github.com/macteo/spritezero-docker (mapbox/spritezero)

spatialillusions commented 5 years ago

My solution was to go the github-pages branch of the style and grab the generated spirits there... https://github.com/openmaptiles/osm-bright-gl-style/tree/gh-pages (It also contains versions of the style to run offline, and that is nice.)

sign0 commented 5 years ago

I found a solution :

- Create /sprites/_svg in your tileserver folder (/data)

mkdir sprites &&\
mkdir sprites/_svg

- Put your *.svg files in sprites/_svg

- Run this container : generate sprites in the format required by Mapbox and OpenMapTiles

docker run -it -e THEME=sprite -v ${PWD}:/data dolomate/spritezero