react-leaflet-rightclick
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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!

Package Sidebar

Install

npm i react-leaflet-rightclick

Weekly Downloads

42

Version

1.0.2

License

MIT

Unpacked Size

5.93 kB

Total Files

4

Last publish

Collaborators

  • dekguh