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

Tools for building the style #16

Open
spatialillusions opened this issue Aug 14, 2018 · 3 comments
Open

Tools for building the style #16

spatialillusions opened this issue Aug 14, 2018 · 3 comments

Comments

@spatialillusions
Copy link

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
Copy link

sign0 commented Apr 13, 2019

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
Copy link
Author

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
Copy link

sign0 commented Apr 15, 2019

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

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

2 participants