node package manager

leaflet-compass

Leaflet.Control.Compass

A leaflet control plugin to make simple rotating compass

Tested in Leaflet 0.7.7

require only HTML5 API

Tested platforms:

  • Chrome on Android
  • Safari on iOS

Demo online:
labs.easyblog.it/maps/leaflet-compass

Image

How to use

Adding the Compass Control to the map:

map.addControl( new L.Control.Compass() );
 

Where

Source code:

Github
Bitbucket
Atmosphere NPM