Skip to content

Latest commit

 

History

History

compass

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

<< all controls

🧭 @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;
};