Hierarchy

  • Target
    • MapBrowserEventHandler

Constructors

  • Parameters

    • map: external.ol.Map

      The map with the viewport to listen to events on.

    • Optional moveTolerance: number

      The minimal distance the pointer must travel to trigger a move.

    Returns MapBrowserEventHandler

Properties

disposed: boolean

The object has already been disposed.

element_: HTMLElement
emulateClicks_: boolean

Emulate dblclick and singleclick. Will be true when only one pointer is active.

Methods

  • Parameters

    • type: string

      Type.

    • listener: Listener

      Listener.

    Returns void

  • Dispatches an event and calls all listeners listening for events of this type. The event parameter can either be a string or an Object with a type property.

    Parameters

    • event: string | BaseEvent

      Event object.

    Returns undefined | boolean

    false if anyone called preventDefault on the event object or if any of the listeners returned false.

    Api

  • Clean up.

    Returns void

  • Protected

    Extension point for disposable objects.

    Returns void

  • Get the listeners for a specified event type. Listeners are returned in the order that they will be called in.

    Parameters

    • type: string

      Type.

    Returns undefined | Listener[]

    Listeners.

  • Parameters

    • Optional type: string

      Type. If not provided, true will be returned if this event target has any listeners.

    Returns boolean

    Has listeners.

  • Parameters

    • type: string

      Type.

    • listener: Listener

      Listener.

    Returns void