wrld.js

Handler

Abstract class for map interaction handlers

Methods

Method Returns Description
enable() this

Enables the handler

disable() this

Disables the handler

enabled() Boolean

Returns true if the handler is enabled

Extension methods

Classes inheriting from Handler must implement the two following methods:
Method Returns Description
addHooks()

Called when the handler is enabled, should add event hooks.

removeHooks()

Called when the handler is disabled, should remove the event hooks added previously.

v0.1.1452