ui.Map.DrawingTools.unlisten

Deletes callbacks.

UsageReturns
DrawingTools.unlisten(idOrType)
ArgumentTypeDetails
this: ui.map.drawingtoolsui.Map.DrawingTools

The ui.Map.DrawingTools instance.

idOrTypeString, optional

Either an ID returned by an onEventType() function during callback registration, an event type, or nothing. If an ID is passed, the corresponding callback is deleted. If an event type is passed, all callbacks for that type are deleted. If nothing is passed, all callbacks are deleted.