Skip to content

Commit

Permalink
Update drawhandler.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jokd committed Oct 20, 2023
1 parent 1da8d53 commit 3b64460
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controls/draw/drawhandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ const DrawHandler = function DrawHandler(options = {}) {
drawLayer.un('change:visible', onChangeVisible);
}
drawLayer = layer;
drawLayer.setVisible(true);
drawLayer.on('change:visible', onChangeVisible);
onChangeVisible();
} else {
Expand Down

0 comments on commit 3b64460

Please sign in to comment.