Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contextmenu support react-leaflet #119

Open
ismaelheinen opened this issue Jan 17, 2019 · 4 comments
Open

Contextmenu support react-leaflet #119

ismaelheinen opened this issue Jan 17, 2019 · 4 comments

Comments

@ismaelheinen
Copy link

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 ismaelheinen changed the title Contextmenu support do react-leaflet Contextmenu support react-leaflet Jan 17, 2019
@Kastow
Copy link

Kastow commented May 15, 2019

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: [{

@ismaelheinen
Copy link
Author

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

@SrBrahma
Copy link

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.

@zvikarp
Copy link

zvikarp commented Dec 2, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants