diff --git a/src/layer/Layer.js b/src/layer/Layer.js index bf157207..13e0abd1 100644 --- a/src/layer/Layer.js +++ b/src/layer/Layer.js @@ -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) {