flywave-mapview.cameramovementdetector
Home > @flywave/flywave-mapview > CameraMovementDetector
CameraMovementDetector class
The CameraMovementDetector class checks for changes in camera position and orientation, to detect continuous movements without the animation mode activated in MapView. If the interaction is not continuous enough, you can use a throttling timer to reduce the number of callbacks.
Signature:
export declare class CameraMovementDetector
Constructors
Constructor | Modifiers | Description |
|---|---|---|
(constructor)(m_throttlingTimeout, m_movementStartedFunc, m_movementFinishedFunc) | Initializes the detector with timeout value and callbacks. MapView also provides events for client code to be notified when these cues occur. |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| boolean | Returns | |
| boolean | Returns |
Methods
Method | Modifiers | Description |
|---|---|---|
Checks if the camera has moved since the last time it was checked. The | ||
Reset the saved camera position. Next time checkCameraMoved is called, it will return | ||
Disposes resources and kills the throttling timer. | ||
Force change of camera position. Next time checkCameraMoved is called, it will return |