Skip to content

Commit

Permalink
Wrong parameter (#1791)
Browse files Browse the repository at this point in the history
  • Loading branch information
jokd authored Jun 26, 2023
1 parent 6891f76 commit 34b5862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controls/draw/drawhandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,10 @@ const DrawHandler = function DrawHandler(options = {}) {
});
newLayer.getSource().on('addfeature', (e) => {
e.feature.on('change:origostyle', () => {
onUpdate(e, newLayer.get('name'));
onUpdate(e.feature, newLayer.get('name'));
});
e.feature.on('change:popuptext', () => {
onUpdate(e, newLayer.get('name'));
onUpdate(e.feature, newLayer.get('name'));
});
});
return newLayer;
Expand Down

0 comments on commit 34b5862

Please sign in to comment.