SHARE
TWEET

Untitled

a guest May 19th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import CompassControl from 'mapbox-gl-controls/lib/compass';
  2.  
  3. map.addControl(new CompassControl({
  4.   instant: false // If false, compass is hidden if north is up (bearing is 0). default: true
  5. }), 'top-right');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top