Skip to main content

flywave-mapview.cameramovementdetector._constructor_

Home > @flywave/flywave-mapview > CameraMovementDetector > (constructor)

CameraMovementDetector.(constructor)

Initializes the detector with timeout value and callbacks. MapView also provides events for client code to be notified when these cues occur.

Signature:

constructor(m_throttlingTimeout: number | undefined, m_movementStartedFunc: (() => void) | undefined, m_movementFinishedFunc: (() => void) | undefined);

Parameters

Parameter

Type

Description

m_throttlingTimeout

number | undefined

The delay, in milliseconds, between the last user interaction detected and the call to m_movementFinishedFunc; the default is 300.

m_movementStartedFunc

(() => void) | undefined

Callback function, called when the user starts interacting.

m_movementFinishedFunc

(() => void) | undefined

Callback function, called when the user stops interacting.