Class: EventHelper service:ngeoEventHelper

ngeo.EventHelper

new EventHelper()

Provides methods to manage the listening/unlistening of OpenLayers events

Methods

addListenerKey(uid, key)

Utility method to add a listener key bound to a unique id. The key has to come from ol.events.

Parameters:
Name Type Description
uid number|string

Unique id.

key ol.EventsKey

Key.

clearListenerKey(uid)

Clear all listener keys from the given unique id.

Parameters:
Name Type Description
uid number|string

Unique id.