Skip to main content

flywave-map-controls.basemapcontrols

Home > @flywave/flywave-map-controls > BaseMapControls

BaseMapControls class​

Signature:

export declare abstract class BaseMapControls extends EventDispatcher<EventMap> 

Extends: EventDispatcher<EventMap>

Constructors​

Constructor

Modifiers

Description

(constructor)(mapView, options)

Constructs a new instance of the BaseMapControls class

Properties​

Property

Modifiers

Type

Description

cameraTransform

protected

abstract

readonly

CameraTransform<Projection>

canvasHeight

protected

readonly

number

canvasWidth

protected

readonly

number

enabled

boolean

eventHandler

readonly

WindowEventHandler

mapView

MapView

maxTiltAngle

number

maxZoomLevel

number

smoothPan

boolean

tiltEnabled

boolean

windowEventHandler

protected

WindowEventHandler

zoomEnabled

boolean

Methods​

Method

Modifiers

Description

animateHeading(v)

animatePan(x, y)

animateTilt(v)

animateZoom(v)

destroy()

disableHeading()

disableTilt()

getAltitude(lon, lat, defaultHeight)

getDistanceAndNormal(result, position)

getDistanceToGlobe(position, normal)

isPanning()

rayCastWorld(result, origin, target)

protected

abstract

setHeading(v)

setTilt(v)

startAnimation()

protected

update()

protected