determine button disabled state on baselayer change

This commit is contained in:
snkashis 2013-02-13 10:19:37 -05:00
parent c2379a335d
commit 3c5161feba

View File

@ -18,7 +18,7 @@ L.Control.Zoom = L.Control.extend({
this._zoomOutButton = this._createButton( this._zoomOutButton = this._createButton(
'-', 'Zoom out', zoomName + '-out', container, this._zoomOut, this); '-', 'Zoom out', zoomName + '-out', container, this._zoomOut, this);
map.on('zoomend', this._updateDisabled, this); map.on('zoomend baselayerchange', this._updateDisabled, this);
return container; return container;
}, },