Modify.removePoint returns true only when a vertex was removed
This commit is contained in:
1 parent
56201b9295
commit
412d9a9713
1 file changed
+2
-2
@@ -1016,10 +1016,10 @@ class Modify extends PointerInteraction {
|
||||
if (this.lastPointerEvent_ && this.lastPointerEvent_.type != MapBrowserEventType.POINTERDRAG) {
|
||||
const evt = this.lastPointerEvent_;
|
||||
this.willModifyFeatures_(evt);
|
||||
this.removeVertex_();
|
||||
const removed = this.removeVertex_();
|
||||
this.dispatchEvent(new ModifyEvent(ModifyEventType.MODIFYEND, this.features_, evt));
|
||||
this.modified_ = false;
|
||||
return true;
|
||||
return removed;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user