Optional
layers: Layer[]Optional
options: LayerOptionsProtected
_mapOptional
featureAlias 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').
Optional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyAlias 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.
Optional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyAlias for once(...)
Behaves as on(...), except the listener will only get fired once and then removed.
Optional
beforeOptional
options: PopupOptionsOptional
options: TooltipOptionsAlias 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.
Optional
context: anyFires 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.
Optional
data: anyOptional
propagate: booleanAlias 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.
Optional
data: anyOptional
propagate: booleanOptional
getOptional
getReturns the internal ID for a layer
Optional
name: stringReturns 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.
Rest
...params: any[]Returns true if a particular event type has any listeners attached to it.
Optional
propagate: booleanOptional
context: anyOptional
propagate: booleanOptional
context: anyOptional
propagate: booleanOptional
context: anyOptional
propagate: booleanOptional
context: anyOptional
propagate: booleanOptional
context: anyOptional
propagate: booleanOptional
context: anyOptional
propagate: booleanOptional
context: anyOptional
propagate: booleanOptional
context: anyOptional
propagate: booleanOptional
context: anyOptional
propagate: booleanOptional
context: anyOptional
propagate: booleanOptional
context: anyOptional
propagate: booleanOptional
context: anyOptional
propagate: booleanOptional
context: anyOptional
propagate: booleanOptional
context: anyOptional
propagate: booleanOptional
context: anyOptional
propagate: booleanRemoves 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.
Optional
fn: LayersControlEventHandlerFnOptional
context: anyOptional
fn: LayerEventHandlerFnOptional
context: anyOptional
fn: LeafletEventHandlerFnOptional
context: anyOptional
fn: ResizeEventHandlerFnOptional
context: anyOptional
fn: PopupEventHandlerFnOptional
context: anyOptional
fn: TooltipEventHandlerFnOptional
context: anyOptional
fn: ErrorEventHandlerFnOptional
context: anyOptional
fn: LocationEventHandlerFnOptional
context: anyOptional
fn: LeafletMouseEventHandlerFnOptional
context: anyOptional
fn: LeafletKeyboardEventHandlerFnOptional
context: anyOptional
fn: ZoomAnimEventHandlerFnOptional
context: anyOptional
fn: DragEndEventHandlerFnOptional
context: anyOptional
fn: TileEventHandlerFnOptional
context: anyOptional
fn: TileErrorEventHandlerFnOptional
context: anyOptional
fn: LeafletEventHandlerFnOptional
context: anyRemoves 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').
Optional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyAdds 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.
Optional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyOptional
context: anyBehaves as on(...), except the listener will only get fired once and then removed.
Optional
latlng: LatLngExpressionOptional
latlng: LatLngExpressionAlias 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.
Optional
fn: LayersControlEventHandlerFnOptional
context: anyOptional
fn: LayerEventHandlerFnOptional
context: anyOptional
fn: LeafletEventHandlerFnOptional
context: anyOptional
fn: ResizeEventHandlerFnOptional
context: anyOptional
fn: PopupEventHandlerFnOptional
context: anyOptional
fn: TooltipEventHandlerFnOptional
context: anyOptional
fn: ErrorEventHandlerFnOptional
context: anyOptional
fn: LocationEventHandlerFnOptional
context: anyOptional
fn: LeafletMouseEventHandlerFnOptional
context: anyOptional
fn: LeafletKeyboardEventHandlerFnOptional
context: anyOptional
fn: ZoomAnimEventHandlerFnOptional
context: anyOptional
fn: DragEndEventHandlerFnOptional
context: anyOptional
fn: TileEventHandlerFnOptional
context: anyOptional
fn: TileErrorEventHandlerFnOptional
context: anyOptional
fn: LeafletEventHandlerFnOptional
context: anyAlias 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.
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).
Optional
precision: number | falseOptional
precision: numberStatic
addStatic
callStatic
extendStatic
includeStatic
mergeGenerated using TypeDoc
Used to group several layers and handle them as one. If you add it to the map, any layers added or removed from the group will be added/removed on the map as well. Extends Layer.