@shenyong/mapbox-gl-utils
v0.0.5
Published
Utils for mapbox controls
Downloads
7
Readme
🧭 @shenyong/mapbox-gl-compass
Control to indicate map direction. Optionally, can be hidden if map bearing iz 0.
npm i @shenyong/mapbox-gl-utils
import { ButtonOption, createButtonsContainer, createButtons, parseSVG } from '@shenyong/mapbox-gl-utils';
import '@shenyong/mapbox-gl-utils/src/index.css';
this.buttonsContainer = createButtonsContainer();
this.buttons = createButtons([]);
this.svg = parseSVG('');
Options