Web component to create icons relevant for orienteering in an SVG format. Check out this demo and its source code for the supported icon and their respective names.
Install the package or include the script.
npm i @city-ol/orienteering-icons
<script
type="module"
src="https://unpkg.com/@city-ol/orienteering-icons/lib/orienteering-icon.js"
></script>
To create an icon, add an <orienteering-icon>
element and specify its name.
<orienteering-icon name="broad_leaved"></orienteering-icon>
The icon color and width can be changed by setting --color
and --width
CSS variables (defaults to black
and 100%
).
orienteering-icon {
--color: black;
--width: 80px;
}
npm run build
To genereate a custom-elements.json
file, run:
npx custom-elements-manifest analyze
The icons for the description of individual controls are taken from the OpenOrienteering Mapper software, which is licensed under the GNU General Public License v3.0. No visual changes have been made, but the icons are stored in a modified format.