<Compass />

Constructor

# <Compass map size variation />

A map rotation control
PropTypes:
Name Type Required Description Default
map object Yes reference to Openlayers map object
size string No sets the width/height of the compass in a valid CSS unit like px or ems '45px'
variation enum No light or dark variation for styling 'light'
Since:
  • 0.1.0

View Source Controls/Compass.js, line 29