Upgrade leaflet from 1.3.4 to 1.7.1
This commit is contained in:
@@ -218,6 +218,11 @@ L.Control.EasyButton = L.Control.extend({
|
||||
|
||||
state: function(newState){
|
||||
|
||||
// when called with no args, it's a getter
|
||||
if (arguments.length === 0) {
|
||||
return this._currentState.stateName;
|
||||
}
|
||||
|
||||
// activate by name
|
||||
if(typeof newState == 'string'){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user