FeatureGroup
Extended LayerGroup that makes it easier to do the same thing to all its member layers:
Layer.bindPopup binds a popup to all the layers at once (likewise with Layer.bindTooltip)
Events are propagated to the FeatureGroup, so if the group has an event handler, it will handle events from any of the layers. This includes mouse events and custom events.
Has
layeradd
andlayerremove
events
Inheritors
Constructors
Functions
Adds the given layer to the group.
Removes all the layers from the group.
Calls methodName on every layer contained in this group, passing any additional parameters. Has no effect if the layers contained do not implement methodName.
Removes the given layer from the group.
Removes the layer with the given internal ID from the group.
Returns a GeoJSON representation of the layer group (as a GeoJSON GeometryCollection, Feature