Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LeafletMixinEvents

Hierarchy

Implemented by

Index

Methods

addEventListener

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

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

    Parameters

    • eventMap: any
    • Optional context: any

    Returns LeafletMixinEvents

addOneTimeEventListener

clearAllEventListeners

fire

fireEvent

  • Fires an event of the specified type. You can optionally provide an data object — the first argument of the listener function will contain its properties.

    Parameters

    • type: string
    • Optional data: any

    Returns LeafletMixinEvents

hasEventListeners

  • hasEventListeners(type: string): boolean
  • Returns true if a particular event type has some listeners attached to it.

    Parameters

    • type: string

    Returns boolean

off

  • Alias to removeEventListener.

    Parameters

    • type: string
    • Optional fn: function
    • Optional context: any

    Returns LeafletMixinEvents

  • Alias to removeEventListener.

    Parameters

    • Optional eventMap: any
    • Optional context: any

    Returns LeafletMixinEvents

on

once

removeEventListener

  • Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object.

    Parameters

    • type: string
    • Optional fn: function
    • Optional context: any

    Returns LeafletMixinEvents

  • Removes a set of type/listener pairs.

    Parameters

    • Optional eventMap: any
    • Optional context: any

    Returns LeafletMixinEvents