Control to indicate map direction. Optionally, can be hidden if map bearing iz 0.
npm i @shenyong/mapbox-gl-compass
import CompassControl from '@shenyong/mapbox-gl-compass';
import '@shenyong/mapbox-gl-compass/src/index.css';
map.addControl(new CompassControl(), 'bottom-right');
export type CompassControlOptions = {
instant?: boolean;
};