National Park Service map symbols optimized for the web.
Add requests for new symbols as an issue. Newly developed symbols will be bundled into periodic releases.
The Symbol Library uses a semantic versioning scheme:
- 0.0.z: bugfixes, modifications
- 0.y.0: icons added
- x.0.0: icons removed, sprite scheme changed, or major features added
This repository was originally forked from Mapbox's Maki project, so the file structure is similar.
Source SVG files are in the src
subdirectory. To create pixel-perfect icons at different sizes, each icon is designed 3 times for 16, 24, and 32 pixels wide/tall.
PNG renders of all of the SVGs are in the renders
directory. High-resolution (aka Retina) versions of each icon are present as well, named using the common @2x
convention.
You can use the SVGs and PNGs in this repository as they are without building anything, however a render script is included to assist designers/developers who want to modify or create new icons. It will render SVGs to PNGs at 100% and 200% resolution, create sprites used by NPMap.js, NPMap Builder, and the Places Editor, and generate corresponding CSS styles for the sprites.
The script requires Node, Bash, Inkscape, and ImageMagick. In addition, each icon must have an appropriate entry in www/npmaki.json
to be rendered correctly.
You can run the script like this:
npm install
cd npmap-symbol-library
bash render.sh