@mapbox-controls/compass
v3.0.0
Published
Indicate map direction
Downloads
2,110
Readme
🧭 @mapbox-controls/compass
Control to indicate map direction. Optionally, can be hidden if map bearing iz 0.
npm i @mapbox-controls/compass
import CompassControl from '@mapbox-controls/compass';
import '@mapbox-controls/compass/src/index.css';
map.addControl(new CompassControl(), 'bottom-right');
Options
export type ControlOptions = {
instant?: boolean;
};