fix Map hasLayer
This commit is contained in:
parent
8c3010ca88
commit
de4f0353e1
@ -87,7 +87,7 @@ L.Map.include({
|
||||
},
|
||||
|
||||
hasLayer: function (layer) {
|
||||
return !layer || L.stamp(layer) in this._layers;
|
||||
return layer || L.stamp(layer) in this._layers;
|
||||
},
|
||||
|
||||
eachLayer: function (method, context) {
|
||||
|
Loading…
Reference in New Issue
Block a user