React Leaflet Right Click is plugin leaflet for create contextmenu more than easier, compatibility with react component and standalone UI. see example code [here](https://codesandbox.io/s/react-leaflet-rightclick-e6mpze)
npm install react-leaflet-rightclickReact Leaflet Right Click is plugin leaflet for create contextmenu more than easier, compatibility with react component and standalone UI. see example code here
``sh``
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!