Adds a GeoJSON object to the layer.
Adds a given layer to the group.
Adds the group of layers to the map.
Binds a popup with a particular HTML content to a click on any layer from the group that has a bindPopup method.
Brings the layer group to the bottom of all other layers.
Brings the layer group to the top of all other layers.
Removes all the layers from the group.
Iterates over the layers of the group, optionally specifying context of the iterator function.
Returns the LatLngBounds of the Feature Group (created from bounds and coordinates of its children).
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.
Changes styles of GeoJSON vector layers with the given style function.
Changes styles of GeoJSON vector layers with the given style options.
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.
Creates a LatLng object from an array of 2 numbers (latitude, longitude) used in GeoJSON for points. If reverse is set to true, the numbers will be interpreted as (longitude, latitude).
Creates a multidimensional array of LatLng objects from a GeoJSON coordinates array. levelsDeep specifies the nesting level (0 is for an array of points, 1 for an array of arrays of points, etc., 0 by default). If reverse is set to true, the numbers will be interpreted as (longitude, latitude).
You use L.Class.extend to define new classes, but you can use the same method on any class to inherit from it.
Creates a GeoJSON layer. Optionally accepts an object in GeoJSON format to display on the map (you can alternatively add it later with addData method) and an options object.