Upgrade leaflet from 1.3.4 to 1.7.1

This commit is contained in:
leosw
2021-03-29 23:19:49 +02:00
parent 592d7852f8
commit a088d1f3ca
13 changed files with 169 additions and 139 deletions

View File

@@ -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'){