Adds a given layer to the group.
Adds the group of layers to the map.
Removes all the layers from the group.
Iterates over the layers of the group, optionally specifying context of the iterator function.
Returns the layer with the given id.
Returns an array of all the layers added to the group.
Returns true if the given layer is currently added to the group.
Should contain code that creates DOM elements for the overlay, adds them to map panes where they should belong and puts listeners on relevant map events. Called on map.addLayer(layer).
Should contain all clean up code that removes the overlay's elements from the DOM and removes listeners previously added in onAdd. Called on map.removeLayer(layer).
Removes a given layer from the group.
Removes a given layer of the given id from the group.
Returns a GeoJSON representation of the layer group (GeoJSON FeatureCollection).
You can also use the following shortcut when you just need to make one additional method call.
You use L.Class.extend to define new classes, but you can use the same method on any class to inherit from it.
Create a layer group, optionally given an initial set of layers.