Hierarchy

  • Evented
    • Map

Constructors

  • Parameters

    • element: string | HTMLElement
    • Optionaloptions: MapOptions

    Returns Map

Properties

attributionControl: Control.Attribution
boxZoom: Handler
doubleClickZoom: Handler
dragging: Handler
keyboard: Handler
options: MapOptions
scrollWheelZoom: Handler
tapHold?: Handler
touchZoom: Handler
zoomControl: Control.Zoom

Methods

  • Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    • type:
          | "drag"
          | "dragstart"
          | "error"
          | "load"
          | "unload"
          | "loading"
          | "update"
          | "zoomlevelschange"
          | "viewreset"
          | "zoomstart"
          | "movestart"
          | "zoom"
          | "move"
          | "zoomend"
          | "moveend"
          | "autopanstart"
          | "add"
          | "remove"
          | "down"
          | "predrag"
    • fn: LeafletEventHandlerFn
    • Optionalcontext: any

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    • type:
          | "click"
          | "contextmenu"
          | "dblclick"
          | "mousedown"
          | "mousemove"
          | "mouseout"
          | "mouseover"
          | "mouseup"
          | "preclick"
    • fn: LeafletMouseEventHandlerFn
    • Optionalcontext: any

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    • type: "tileunload" | "tileloadstart" | "tileload" | "tileabort"
    • fn: TileEventHandlerFn
    • Optionalcontext: any

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • Alias for on(...)

    Adds a set of type/listener pairs, e.g. {click: onClick, mousemove: onMouseMove}

    Parameters

    • eventMap: LeafletEventHandlerFnMap

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Adds an event parent - an Evented that will receive propagated events

    Parameters

    • obj: Evented

    Returns this

  • Parameters

    • name: string
    • HandlerClass: typeof Handler

    Returns this

  • Parameters

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • type:
          | "drag"
          | "dragstart"
          | "error"
          | "load"
          | "unload"
          | "loading"
          | "update"
          | "zoomlevelschange"
          | "viewreset"
          | "zoomstart"
          | "movestart"
          | "zoom"
          | "move"
          | "zoomend"
          | "moveend"
          | "autopanstart"
          | "add"
          | "remove"
          | "down"
          | "predrag"
    • fn: LeafletEventHandlerFn
    • Optionalcontext: any

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • type:
          | "click"
          | "contextmenu"
          | "dblclick"
          | "mousedown"
          | "mousemove"
          | "mouseout"
          | "mouseover"
          | "mouseup"
          | "preclick"
    • fn: LeafletMouseEventHandlerFn
    • Optionalcontext: any

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • type: "tileunload" | "tileloadstart" | "tileload" | "tileabort"
    • fn: TileEventHandlerFn
    • Optionalcontext: any

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Alias for once(...)

    Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • eventMap: LeafletEventHandlerFnMap

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Alias for off()

    Removes all listeners to all events on the object.

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    • name: string
    • Optionalcontainer: HTMLElement

    Returns HTMLElement

  • Parameters

    • fn: (layer: Layer) => void
    • Optionalcontext: any

    Returns this

  • 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.

    Parameters

    • type: string
    • Optionaldata: any
    • Optionalpropagate: boolean

    Returns this

  • 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.

    Parameters

    • type: string
    • Optionaldata: any
    • Optionalpropagate: boolean

    Returns this

  • Returns LatLng

  • Returns HTMLElement

  • Returns number

  • Returns number

  • Name of the pane or the pane as HTML-Element

    Parameters

    • pane: string | HTMLElement

    Returns undefined | HTMLElement

  • Returns { [name: string]: HTMLElement } & DefaultMapPanes

  • Returns Bounds

  • Returns Point

  • Parameters

    • Optionalzoom: number

    Returns Bounds

  • Parameters

    Returns Renderer

  • Parameters

    • scale: number
    • OptionalfromZoom: number

    Returns number

  • Returns Point

  • Returns number

  • Parameters

    • toZoom: number
    • OptionalfromZoom: number

    Returns number

  • Alias for listens(...)

    Returns true if a particular event type has any listeners attached to it.

    Parameters

    • type: string

    Returns boolean

  • Parameters

    Returns boolean

  • Boolean for animate or advanced ZoomPanOptions

    Parameters

    Returns this

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    • type:
          | "click"
          | "contextmenu"
          | "dblclick"
          | "drag"
          | "dragend"
          | "dragstart"
          | "error"
          | "keydown"
          | "keypress"
          | "keyup"
          | "load"
          | "mousedown"
          | "mousemove"
          | "mouseout"
          | "mouseover"
          | "mouseup"
          | "resize"
          | "unload"
          | "loading"
          | "update"
          | "locationerror"
          | "locationfound"
          | "zoomanim"
          | "tileerror"
          | "baselayerchange"
          | "overlayadd"
          | "overlayremove"
          | "layeradd"
          | "layerremove"
          | "zoomlevelschange"
          | "viewreset"
          | "zoomstart"
          | "movestart"
          | "zoom"
          | "move"
          | "zoomend"
          | "moveend"
          | "autopanstart"
          | "add"
          | "remove"
          | "down"
          | "predrag"
          | "popupopen"
          | "tooltipopen"
          | "tooltipclose"
          | "preclick"
          | "tileunload"
          | "tileloadstart"
          | "tileload"
          | "tileabort"
    • Optionalpropagate: boolean

    Returns boolean

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    Returns boolean

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    • type: "layeradd" | "layerremove"
    • fn: LayerEventHandlerFn
    • Optionalcontext: any
    • Optionalpropagate: boolean

    Returns boolean

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    • type:
          | "drag"
          | "dragstart"
          | "error"
          | "load"
          | "unload"
          | "loading"
          | "update"
          | "zoomlevelschange"
          | "viewreset"
          | "zoomstart"
          | "movestart"
          | "zoom"
          | "move"
          | "zoomend"
          | "moveend"
          | "autopanstart"
          | "add"
          | "remove"
          | "down"
          | "predrag"
    • fn: LeafletEventHandlerFn
    • Optionalcontext: any
    • Optionalpropagate: boolean

    Returns boolean

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    Returns boolean

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    • type: "popupclose" | "popupopen"
    • fn: PopupEventHandlerFn
    • Optionalcontext: any
    • Optionalpropagate: boolean

    Returns boolean

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    • type: "tooltipopen" | "tooltipclose"
    • fn: TooltipEventHandlerFn
    • Optionalcontext: any
    • Optionalpropagate: boolean

    Returns boolean

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    Returns boolean

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    Returns boolean

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    • type:
          | "click"
          | "contextmenu"
          | "dblclick"
          | "mousedown"
          | "mousemove"
          | "mouseout"
          | "mouseover"
          | "mouseup"
          | "preclick"
    • fn: LeafletMouseEventHandlerFn
    • Optionalcontext: any
    • Optionalpropagate: boolean

    Returns boolean

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    Returns boolean

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    Returns boolean

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    Returns boolean

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    • type: "tileunload" | "tileloadstart" | "tileload" | "tileabort"
    • fn: TileEventHandlerFn
    • Optionalcontext: any
    • Optionalpropagate: boolean

    Returns boolean

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    Returns boolean

  • Returns true if a particular event type has any listeners attached to it.

    Parameters

    Returns boolean

  • Parameters

    Returns this

  • Parameters

    • ev: MouseEvent

    Returns Point

  • Parameters

    • ev: MouseEvent

    Returns LatLng

  • Parameters

    • ev: MouseEvent

    Returns Point

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    • type:
          | "drag"
          | "dragstart"
          | "error"
          | "load"
          | "unload"
          | "loading"
          | "update"
          | "zoomlevelschange"
          | "viewreset"
          | "zoomstart"
          | "movestart"
          | "zoom"
          | "move"
          | "zoomend"
          | "moveend"
          | "autopanstart"
          | "add"
          | "remove"
          | "down"
          | "predrag"
    • Optionalfn: LeafletEventHandlerFn
    • Optionalcontext: any

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    • type:
          | "click"
          | "contextmenu"
          | "dblclick"
          | "mousedown"
          | "mousemove"
          | "mouseout"
          | "mouseover"
          | "mouseup"
          | "preclick"
    • Optionalfn: LeafletMouseEventHandlerFn
    • Optionalcontext: any

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    • type: "tileunload" | "tileloadstart" | "tileload" | "tileabort"
    • Optionalfn: TileEventHandlerFn
    • Optionalcontext: any

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • Removes a set of type/listener pairs.

    Parameters

    • eventMap: LeafletEventHandlerFnMap

    Returns this

  • Removes all listeners to all events on the object.

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    • type:
          | "drag"
          | "dragstart"
          | "error"
          | "load"
          | "unload"
          | "loading"
          | "update"
          | "zoomlevelschange"
          | "viewreset"
          | "zoomstart"
          | "movestart"
          | "zoom"
          | "move"
          | "zoomend"
          | "moveend"
          | "autopanstart"
          | "add"
          | "remove"
          | "down"
          | "predrag"
    • fn: LeafletEventHandlerFn
    • Optionalcontext: any

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    • type:
          | "click"
          | "contextmenu"
          | "dblclick"
          | "mousedown"
          | "mousemove"
          | "mouseout"
          | "mouseover"
          | "mouseup"
          | "preclick"
    • fn: LeafletMouseEventHandlerFn
    • Optionalcontext: any

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    • type: "tileunload" | "tileloadstart" | "tileload" | "tileabort"
    • fn: TileEventHandlerFn
    • Optionalcontext: any

    Returns this

  • 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').

    Parameters

    Returns this

  • 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').

    Parameters

    Returns this

  • Adds a set of type/listener pairs, e.g. {click: onClick, mousemove: onMouseMove}

    Parameters

    • eventMap: LeafletEventHandlerFnMap

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • type:
          | "drag"
          | "dragstart"
          | "error"
          | "load"
          | "unload"
          | "loading"
          | "update"
          | "zoomlevelschange"
          | "viewreset"
          | "zoomstart"
          | "movestart"
          | "zoom"
          | "move"
          | "zoomend"
          | "moveend"
          | "autopanstart"
          | "add"
          | "remove"
          | "down"
          | "predrag"
    • fn: LeafletEventHandlerFn
    • Optionalcontext: any

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • type:
          | "click"
          | "contextmenu"
          | "dblclick"
          | "mousedown"
          | "mousemove"
          | "mouseout"
          | "mouseover"
          | "mouseup"
          | "preclick"
    • fn: LeafletMouseEventHandlerFn
    • Optionalcontext: any

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • type: "tileunload" | "tileloadstart" | "tileload" | "tileabort"
    • fn: TileEventHandlerFn
    • Optionalcontext: any

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    Returns this

  • Behaves as on(...), except the listener will only get fired once and then removed.

    Parameters

    • eventMap: LeafletEventHandlerFnMap

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Returns this

  • Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    • type:
          | "drag"
          | "dragstart"
          | "error"
          | "load"
          | "unload"
          | "loading"
          | "update"
          | "zoomlevelschange"
          | "viewreset"
          | "zoomstart"
          | "movestart"
          | "zoom"
          | "move"
          | "zoomend"
          | "moveend"
          | "autopanstart"
          | "add"
          | "remove"
          | "down"
          | "predrag"
    • Optionalfn: LeafletEventHandlerFn
    • Optionalcontext: any

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    • type:
          | "click"
          | "contextmenu"
          | "dblclick"
          | "mousedown"
          | "mousemove"
          | "mouseout"
          | "mouseover"
          | "mouseup"
          | "preclick"
    • Optionalfn: LeafletMouseEventHandlerFn
    • Optionalcontext: any

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    • type: "tileunload" | "tileloadstart" | "tileload" | "tileabort"
    • Optionalfn: TileEventHandlerFn
    • Optionalcontext: any

    Returns this

  • 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.

    Parameters

    Returns this

  • 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.

    Parameters

    Returns this

  • Alias for off(...)

    Removes a set of type/listener pairs.

    Parameters

    • eventMap: LeafletEventHandlerFnMap

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Removes an event parent, so it will stop receiving propagated events

    Parameters

    • obj: Evented

    Returns this

  • Parameters

    Returns this

  • Parameters

    • zoom: number

    Returns this

  • Parameters

    • zoom: number

    Returns this

  • Parameters

    Returns this

  • Returns this

  • Returns this

  • Parameters

    • fn: () => void
    • Optionalcontext: any

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    • initHookFn: () => void

    Returns any

  • Parameters

    • methodName: string
    • ...args: any[]

    Returns any

  • Returns void

  • Parameters

    • props: any

    Returns new (...args: any[]) => any & typeof Class

  • Parameters

    • props: any

    Returns any

  • Parameters

    • props: any

    Returns any