Skip to content

Commit

Permalink
Remove Digitizer-specific (styleEditor) event code; re-dispatch selec…
Browse files Browse the repository at this point in the history
…t event on SelectableModify instead
  • Loading branch information
werrolf committed Oct 8, 2020
1 parent d295747 commit be32ad9
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions selectableModify.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,10 @@
style: selectStyleFunction
});

var self = this;
this.select_.on('select', function (event) {

event.selected && event.selected.forEach(function (feature) {
feature.set("featureStyleDisabled", true);
});

event.deselected && event.deselected.forEach(function (feature) {
feature.unset("featureStyleDisabled");
});
// Re-dispatch on compound interaction
self.dispatchEvent(event);
});

options.features = this.select_.getFeatures();
Expand Down

0 comments on commit be32ad9

Please sign in to comment.