@shenyong/mapbox-gl-compass
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

<< all controls

🧭 @shenyong/mapbox-gl-compass

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');

Options

export type CompassControlOptions = {
  instant?: boolean;
};

Readme

Keywords

none

Package Sidebar

Install

npm i @shenyong/mapbox-gl-compass

Weekly Downloads

0

Version

0.0.5

License

MIT

Unpacked Size

3.69 kB

Total Files

7

Last publish

Collaborators

  • shenyong