Class: EventHelper service:ngeoEventHelper

ngeo.misc.EventHelper

new EventHelper()

Provides methods to manage the listening/unlistening of OpenLayers events

Members

(static, non-null) module: angular.Module

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.