0.0.5 • Published 1 year ago

@shenyong/mapbox-gl-compass v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year 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

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago