Options
All
  • Public
  • Public/Protected
  • All
Menu

This converts the OpenLayers mouse events to Observables, making them easily accessible/mappable in a Reactive style.

Hierarchy

  • MouseEvents

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly clicks

clicks: Observable<MapBrowserEvent<MouseEvent>> = ...

An Observable of MapBrowserEvent representing clicks.

Readonly moves

moves: Observable<undefined | MapBrowserEvent<MouseEvent>> = ...

An Observable of MapBrowserEvent representing mouse moves, emitting undefined when the cursor passes outside the map.

Methods

setMap

  • Registers a given map to provide the events. Registering a new map will automatically de-register the previous.

    Parameters

    • map: Map

    Returns MouseEvents