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
- standalone UI
- type-safe
- event hook
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. |
Want to contribute? Great!
MIT
Free Software, Hell Yeah!