跳到主要内容

flywave-mapview.eventdispatcher.removeeventlistener

Home > @flywave/flywave-mapview > EventDispatcher > removeEventListener

EventDispatcher.removeEventListener() method

Remove the listener from the event type.

Signature:

removeEventListener(type: string, listener?: any): void;

Parameters

Parameter

Type

Description

type

string

The type of event to listen to.

listener

any

(Optional) The function that gets called when the event is fired. If the value is undefined, all listeners will be removed.

Returns:



void