Skip to content

Latest commit

 

History

History

compass

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

<< all controls

🧭 @mapbox-controls/compass

Control to indicate map direction. Can be visible or hidden depending on instant option if map bearing is 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;
};