osm-bright-gl-style icon indicating copy to clipboard operation
osm-bright-gl-style copied to clipboard

Tools for building the style

Open spatialillusions opened this issue 6 years ago • 3 comments

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?

spatialillusions avatar Aug 14 '18 13:08 spatialillusions

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)

sign0 avatar Apr 13 '19 19:04 sign0

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.)

spatialillusions avatar Apr 15 '19 12:04 spatialillusions

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

sign0 avatar Apr 15 '19 12:04 sign0