I am using Leaflet in combination with GoJS. I noticed that the example: Leaflet.js and GoJS seems to be outdated, because it is not working for the newest version of Leaflet. Dragging GoJS nodes will also drag the map which makes it difficult to reposition any nodes.
Check my fiddle Edit fiddle - JSFiddle - Code Playground
It seems like our current approach will not work with newer versions of leaflet, but I don’t know enough about the library to make a real recommendation for how to approach handling it.
Somewhere, you will want to sometimes disable leaflet’s interactivity, perhaps by using:
myLeafletMap.dragging.disable();
And then you will want to enable it again later:
myLeafletMap.dragging.enable();
So maybe remove the custom leaflet tool we made and add these instead: