0.0.5 • Published 2 years ago

@shenyong/mapbox-gl-compass v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

<< 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;
};
0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago