Report all features being modified

This commit is contained in:
Andreas Hocevar
2021-02-08 19:08:04 +01:00
parent 8616aa9320
commit 7789bc5b15
2 changed files with 15 additions and 4 deletions

View File

@@ -427,9 +427,12 @@ class Modify extends PointerInteraction {
this.featuresBeingModified_ = new Collection();
const features = this.featuresBeingModified_.getArray();
for (let i = 0, ii = segments.length; i < ii; ++i) {
const feature = segments[i][0].feature;
if (features.indexOf(feature) === -1) {
this.featuresBeingModified_.push(feature);
const segment = segments[i];
for (let s = 0, ss = segment.length; s < ss; ++s) {
const feature = segment[s].feature;
if (feature && features.indexOf(feature) === -1) {
this.featuresBeingModified_.push(feature);
}
}
}