hasLayer(<Layer> layer)
Boolean
Returns true if the given layer is currently added to the map
true
eachLayer(<Function> fn, <Object> context?)
this
Iterates over the layers of the map, optionally specifying context of the iterator function.
map.eachLayer(function(layer){ layer.bindPopup('Hello'); });