React Leaflet Right Click
React Leaflet Right Click is plugin leaflet for create contextmenu more than easier, compatibility with react component and standalone UI. see example code here
npm install react-leaflet-rightclick
Features
- standalone UI
- type-safe
- event hook
Props
prop | status | description |
---|---|---|
onRightClick | optional | event listener when mouse right click clicked, it will return contextmenu event (lat, long, etc), see more on code example. |
customComponent | required | component that will appear when right click on clicked, you can see on code example. |
Development
Want to contribute? Great!
License
MIT
Free Software, Hell Yeah!