determine button disabled state on baselayer change
This commit is contained in:
parent
c2379a335d
commit
3c5161feba
@ -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;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user