Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

@mapbox-controls/compass

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox-controls/compass

Indicate map direction


Version published
Weekly downloads
423
decreased by-24.73%
Maintainers
1
Weekly downloads
 
Created

<< 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 CompassControlOptions = {
  instant?: boolean;
};

FAQs

Package last updated on 19 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts