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
Copy file name to clipboardExpand all lines: packages/plugins/Draw/src/store/createInteractions/createModifyInteractions.ts
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -38,9 +38,14 @@ export default function (
38
38
}
39
39
}
40
40
})
41
-
return[
42
-
newModify({source: drawSource}),
43
-
newSnap({source: drawSource}),
44
-
select,
45
-
]
41
+
42
+
constmodify=newModify({source: drawSource})
43
+
modify.on('modifystart',(event)=>{
44
+
// NOTE: This prevents the user from dragging multiple features. Beware, as dragSegments is an internal property, this might break on an update of OpenLayers
0 commit comments