Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import CompassControl from 'mapbox-gl-controls/lib/compass';
- map.addControl(new CompassControl({
- instant: false // If false, compass is hidden if north is up (bearing is 0). default: true
- }), 'top-right');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement