You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var guideLayer = new L.LayerGroup()
var marker = new L.Marker(...)
marker.snapediting = new L.Handler.MarkerSnap(map, marker);
marker.snapediting.addGuideLayer(guideLayer);
marker.snapediting.enable();
If the guide is just a empty layer just like in this example above and you start moving the marker an error is thrown in L.Handler.MarkerSnap in the _snapMarker function. This is because no snap target is found but one is expected in this function. I propose to just add a condition like this into the function:
If the guide is just a empty layer just like in this example above and you start moving the marker an error is thrown in L.Handler.MarkerSnap in the _snapMarker function. This is because no snap target is found but one is expected in this function. I propose to just add a condition like this into the function:
The text was updated successfully, but these errors were encountered: