diff --git a/src/control/Control.Zoom.js b/src/control/Control.Zoom.js index 91f1efff..8a5ea915 100644 --- a/src/control/Control.Zoom.js +++ b/src/control/Control.Zoom.js @@ -18,13 +18,13 @@ L.Control.Zoom = L.Control.extend({ this._zoomOutButton = this._createButton( '-', 'Zoom out', zoomName + '-out', container, this._zoomOut, this); - map.on('zoomend', this._updateDisabled, this); + map.on('zoomend baselayerchange', this._updateDisabled, this); return container; }, onRemove: function (map) { - map.off('zoomend', this._updateDisabled, this); + map.off('zoomend baselayerchange', this._updateDisabled, this); }, _zoomIn: function (e) {