Leaflet.contextmenu icon indicating copy to clipboard operation
Leaflet.contextmenu copied to clipboard

Contextmenu support react-leaflet

Open ismaelheinen opened this issue 6 years ago • 4 comments

There is forecast to be implemented for react-leaflet, tried to insert in some ways, did not work. If it is not the plan, you can close the issue. Thanks

ismaelheinen avatar Jan 17 '19 12:01 ismaelheinen

I successfully integrated contextmenu in its current version into a react-leaflet map in one of my projects, just imported context menu as usual and then in map declaration put contextmenu= {true} contextmenuWidth={ 130} contextmenuItems={ [{ instead of contextmenu: true, contextmenuWidth: 130, contextmenuItems: [{

Kastow avatar May 15 '19 16:05 Kastow

Well, I'll try that. Very simple. Just stupid of me, by the way.

ismaelheinen avatar May 15 '19 16:05 ismaelheinen

I successfully integrated contextmenu in its current version into a react-leaflet map in one of my projects, just imported context menu as usual and then in map declaration put contextmenu= {true} contextmenuWidth={ 130} contextmenuItems={ [{ instead of contextmenu: true, contextmenuWidth: 130, contextmenuItems: [{

Here it almost works... but only the text appears. The box beneath it, don't. Tried to manually include the css in the html, but still doesn't work.

ftzi avatar Sep 30 '19 23:09 ftzi

@SrBrahma a quick and dirty hack is to add the content of the contextmenu css to your index.css file.

zvikarp avatar Dec 02 '19 09:12 zvikarp