Alias for on(...)
Adds a listener function (fn) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. 'click dblclick').
Alias for on(...)
Adds a set of type/listener pairs, e.g. {click: onClick, mousemove: onMouseMove}
Adds an event parent - an Evented that will receive propagated events
Adds the given layer to the group.
Alias for once(...)
Behaves as on(...), except the listener will only get fired once and then removed.
Alias for once(...)
Behaves as on(...), except the listener will only get fired once and then removed.
Brings the layer group to the top [sic] of all other layers
Brings the layer group to the top of all other layers
Alias for off()
Removes all listeners to all events on the object.
Removes all the layers from the group.
Iterates over the layers of the group, optionally specifying context of the iterator function.
Fires an event of the specified type. You can optionally provide a data object — the first argument of the listener function will contain its properties. The event might can optionally be propagated to event parents.
Alias for fire(...)
Fires an event of the specified type. You can optionally provide a data object — the first argument of the listener function will contain its properties. The event might can optionally be propagated to event parents.
Returns the LatLngBounds of the Feature Group (created from bounds and coordinates of its children).
Returns the layer with the given internal ID.
Returns the internal ID for a layer
Alias for listens(...)
Returns true if a particular event type has any listeners attached to it.
Returns true if the given layer is currently added to 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.
Returns true if a particular event type has any listeners attached to it.
Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object. Note that if you passed a custom context to on, you must pass the same context to off in order to remove the listener.
Removes a set of type/listener pairs.
Removes all listeners to all events on the object.
Adds a listener function (fn) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. 'click dblclick').
Adds a set of type/listener pairs, e.g. {click: onClick, mousemove: onMouseMove}
Behaves as on(...), except the listener will only get fired once and then removed.
Behaves as on(...), except the listener will only get fired once and then removed.
Alias for off(...)
Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object. Note that if you passed a custom context to on, you must pass the same context to off in order to remove the listener.
Alias for off(...)
Removes a set of type/listener pairs.
Removes an event parent, so it will stop receiving propagated events
Removes the layer with the given internal ID or the given layer from the group.
Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
Same as FeatureGroup's setStyle method, but style-functions are also allowed here to set the style according to the feature.
Calls setZIndex on every layer contained in this group, passing the z-index.
Returns a GeoJSON representation of the layer group (as a GeoJSON GeometryCollection, GeoJSONFeatureCollection or Multipoint).
Normalize GeoJSON geometries/features into GeoJSON features.
Creates a LatLng object from an array of 2 numbers (longitude, latitude) or 3 numbers (longitude, latitude, altitude) used in GeoJSON for points.
Creates a multidimensional array of LatLngs 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). Can use a custom coordsToLatLng function.
Creates a Layer from a given GeoJSON feature. Can use a custom pointToLayer and/or coordsToLatLng functions if provided as options.
Reverse of coordsToLatLng
Reverse of coordsToLatLngs closed determines whether the first point should be appended to the end of the array to close the feature, only used when levelsDeep is 0. False by default.
Generated using TypeDoc
Adds a GeoJSON object to the layer.