npm.io
0.1.0 • Published 8 years ago

react-leaflet-rotatedmarker

Licence
ISC
Version
0.1.0
Deps
1
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

React Leaflet Rotated Marker

This is a react wrapper of bbecquet's leaflet rotated marker for react-leaflet.

Instead of extending react-leaflet's Marker, I created a new component named RotatedMarker.

Installation

yarn add react-leaflet-rotatedmarker

Usage

  import RotatedMarker from 'react-leaflet-rotatedmarker'

  <RotatedMarker position={position} rotationAngle={180} rotationOrigin={'center'} />