跳到主要内容

flywave-map-controls

Home > @flywave/flywave-map-controls

flywave-map-controls package

Camera controller which implements a common default set of camera functionality in a map context.

Remarks

Classes

Class

Description

CameraAnimationBuilder

(BETA) A Utility class for the creation of Camera Animations

CameraKeyTrackAnimation

(BETA) A [[CameraAnimation]] along of a set of [[ControlPoint]]s

CameraPanAnimation

Class to pan between the specified geo coordinates. Height can be specified to move the camera in and out.

CameraRotationAnimation

Create an animation around the Z-axis of the camera.

ControlPoint

(BETA) A ControlPoint used to defined the Track of the [[CameraKeyTrackAnimation]]

LongPressHandler

Class that can be used to track long presses on an HTML Element. A long press is a press that lasts a minimum duration (see the [[timeout]] member) while the pointer is not moved more than a certain threshold (see the [[moveThreshold]] member).

MapControls

MapControlsUI

Base class to handle UI overlay elements.

MapThumbnailGenerator

MouseCursorManager

鼠标指针样式管理器 为不同的地图操作提供明确且具有设计感的视觉反馈

Abstract Classes

Abstract Class

Description

BaseMapControls

CameraAnimation

Abstract class used as base to define camera animations.

Enumerations

Enumeration

Description

EasingFunction

Functions used for specifying animations' speed.

EventNames

InterpolationFunction

Functions used to generate intermediate animation values.

Functions

Function

Description

azimuthAltitudeToDirection(azimuth, altitude)

Returns the direction vector that is described by the given azimuth and altitude.

calculateNormalizedDeviceCoordinates(screenCoordinateX, screenCoordinateY, screenSizeX, screenSizeY)

Transforms the given point in screen space into NDC space by taking the given screen dimension into account.

getWidthAndHeightFromCanvas(canvas)

Extracts the CSS width and height of the given canvas if available, or width and height of the canvas otherwise.

safeParseDecimalInt(text, fallback)

Safely parses decimal value into number.

Safely falls back to default value for null, undefined, NaN, empty strings, and strings with characters other than digits.

Interfaces

Interface

Description

BaseMapControlsOptions

CameraKeyTrackAnimationOptions

(BETA) The options to create a CameraKeyTrackAnimation

CameraPanAnimationOptions

CameraRotationAnimationOptions

Options for a camera animation.

ControlPointOptions

(BETA) The Options used to create a ControlPoint

ScreenshotConfig

Screenshot configuration options

ThumbnailSize