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 a constructor hook to the class.
Adds the given layer to the group.
Removes all the layers from the group.
Iterates over the layers of the group, optionally specifying context of the iterator function.
Calls methodName on every layer contained in this group, passing any additional parameters. Has no effect if the layers contained do not implement methodName.
Merges options into the defaults of the class.
Removes the given layer from the group.
Removes the layer with the given internal ID from the group.