diff --git a/mapshaper-gui.js b/mapshaper-gui.js index a1b2a49d..22464952 100644 --- a/mapshaper-gui.js +++ b/mapshaper-gui.js @@ -5591,6 +5591,7 @@ gui.on('active', updateVisibility); gui.on('inactive', updateVisibility); gui.model.on('update', updateVisibility); + gui.on('mode', updateVisibility); // @iconRef: selector for an (svg) button icon this.addButton = function(iconRef) {