v-leaflet right click

Hi,
is it possible to recieve an right click event in this add-on?
I want to open a context-menu after an right click on the map.

Would be happy if someone got an solution.

Regards, Florian

Hi,

As discussed in an other thread an option would be to check out if ContextMenu add-on could somehow be supported.

Another option would be to make an add-on (v-leaflet-contextmenu) to add-on (v-leaflet) using leaflet add-on (https://github.com/aratcliffe/Leaflet.contextmenu) :slight_smile:

cheers,
matti

Did that ever happen? Or anyone knock up some code showing it as working? A context menu for a map is a pretty important feature. Just getting an event showing the X, Y coords on the screen where we can show some Vaadin component might well be good enough.

Thanks.

Finally there are things happening on this topic:

https://github.com/mstahv/v-leaflet/pull/98

If we can add pixel coordinates to that, integrating with e.g. the ContextMenu add-on from directory should be trivial.

1.0.0-b3 now supports using with ContextMenu add-on:

See this gist as example:
https://gist.github.com/mstahv/fc97922bcccdf0704831

cheers,
matti