Handler

open external class Handler(map: LeafletMap) : Class

Abstract class for map interaction handlers

https://leafletjs.com/reference.html#handler

Constructors

Link copied to clipboard
constructor(map: LeafletMap)

Properties

Link copied to clipboard
open val addHooks: () -> Unit?

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

Link copied to clipboard
open val removeHooks: () -> Unit?

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

Functions

Link copied to clipboard
open fun disable(): Handler

Disables the handler

Link copied to clipboard
open fun enable(): Handler

Enables the handler

Link copied to clipboard
open fun enabled(): Boolean

Returns true if the handler is enabled