benjamintd / benmaps.fr

Web maps that don't track you.
https://benmaps.fr
MIT License
179 stars 22 forks source link

Public sprites. #36

Closed benjamintd closed 7 years ago

benjamintd commented 7 years ago

Make icons and sprite publicly available (fixes #35 ).

This was a bit tricky because the Mapbox style specification forbids relative urls. Consequently I had to add a new .env variable that points to the public URL where the project is deployed: PUBLIC_URL.

Sprite sheets are built automatically from the styles/icons directory when running the build or build-sprites npm scripts.

cc/ @leonhandreke