Issues with leaflet version 1.1.0
scott-k-mitchell opened this issue · 2 comments
scott-k-mitchell commented
I am trying to use this plug-in with the latest version of leaflet (version 1.1.0), but am getting errors.
Using your demo code and replacing:
<script src="https://unpkg.com/leaflet@1.0.2/dist/leaflet.js"></script>
With:
<script src="https://unpkg.com/leaflet@1.1.0/dist/leaflet.js"></script>
What happens is if I right-click on a marker I see the marker context menu. But as soon as I click off the marker, it disappears but I get a script reference error:
leaflet.contextmenu.js:281 Uncaught TypeError: Cannot read property 'off' of undefined
Then things are all buggered up. If I click on the map (not a marker) I see the marker's context menu, for instance.
Thanks
MartinAronsen commented
Next version of Leaflet will fix this.
Leaflet/Leaflet@7a73e1d
abellouniovi commented
I have just tried the plugin with the last version of Leaflet (1.2.0) and everything seems to work fine again. Thanks!