Skip to main content

Interface: IViewer

viewer.IViewer

Implemented by#

Properties#

dataProvider#

• Readonly dataProvider: IDataProvider

Defined in#

viewer/interfaces/IViewer.ts:20


isNavigable#

• Readonly isNavigable: boolean

Defined in#

viewer/interfaces/IViewer.ts:21

Methods#

activateCombinedPanning#

â–¸ activateCombinedPanning(): void

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:22


activateComponent#

â–¸ activateComponent(name): void

Parameters#

NameType
namestring

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:23


activateCover#

â–¸ activateCover(): void

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:24


addCustomRenderer#

â–¸ addCustomRenderer(renderer): void

Parameters#

NameType
rendererICustomRenderer

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:25


attachCustomCameraControls#

â–¸ attachCustomCameraControls(controls): void

Parameters#

NameType
controlsICustomCameraControls

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:26


deactivateCombinedPanning#

â–¸ deactivateCombinedPanning(): void

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:27


deactivateComponent#

â–¸ deactivateComponent(name): void

Parameters#

NameType
namestring

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:28


deactivateCover#

â–¸ deactivateCover(): void

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:29


detachCustomCameraControls#

â–¸ detachCustomCameraControls(): Promise<ICustomCameraControls>

Returns#

Promise<ICustomCameraControls>

Defined in#

viewer/interfaces/IViewer.ts:30


fire#

â–¸ fire<T>(type, event): void

Type parameters#

Name
T

Parameters#

NameType
typeViewerEventType
eventT

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:31


getBearing#

â–¸ getBearing(): Promise<number>

Returns#

Promise<number>

Defined in#

viewer/interfaces/IViewer.ts:34


getCameraControls#

â–¸ getCameraControls(): Promise<CameraControls>

Returns#

Promise<CameraControls>

Defined in#

viewer/interfaces/IViewer.ts:35


getCanvas#

â–¸ getCanvas(): HTMLCanvasElement

Returns#

HTMLCanvasElement

Defined in#

viewer/interfaces/IViewer.ts:36


getCanvasContainer#

â–¸ getCanvasContainer(): HTMLDivElement

Returns#

HTMLDivElement

Defined in#

viewer/interfaces/IViewer.ts:37


getCenter#

â–¸ getCenter(): Promise<number[]>

Returns#

Promise<number[]>

Defined in#

viewer/interfaces/IViewer.ts:38


getComponent#

â–¸ getComponent<TComponent>(name): TComponent

Type parameters#

NameType
TComponentextends Component<ComponentConfiguration, TComponent>

Parameters#

NameType
namestring

Returns#

TComponent

Defined in#

viewer/interfaces/IViewer.ts:39


getContainer#

â–¸ getContainer(): HTMLElement

Returns#

HTMLElement

Defined in#

viewer/interfaces/IViewer.ts:41


getFieldOfView#

â–¸ getFieldOfView(): Promise<number>

Returns#

Promise<number>

Defined in#

viewer/interfaces/IViewer.ts:42


getImage#

â–¸ getImage(): Promise<Image>

Returns#

Promise<Image>

Defined in#

viewer/interfaces/IViewer.ts:43


getPointOfView#

â–¸ getPointOfView(): Promise<PointOfView>

Returns#

Promise<PointOfView>

Defined in#

viewer/interfaces/IViewer.ts:44


getPosition#

â–¸ getPosition(): Promise<LngLat>

Returns#

Promise<LngLat>

Defined in#

viewer/interfaces/IViewer.ts:45


getReference#

â–¸ getReference(): Promise<LngLatAlt>

Returns#

Promise<LngLatAlt>

Defined in#

viewer/interfaces/IViewer.ts:46


getZoom#

â–¸ getZoom(): Promise<number>

Returns#

Promise<number>

Defined in#

viewer/interfaces/IViewer.ts:47


hasCustomCameraControls#

â–¸ hasCustomCameraControls(controls): boolean

Parameters#

NameType
controlsICustomCameraControls

Returns#

boolean

Defined in#

viewer/interfaces/IViewer.ts:48


hasCustomRenderer#

â–¸ hasCustomRenderer(rendererId): boolean

Parameters#

NameType
rendererIdstring

Returns#

boolean

Defined in#

viewer/interfaces/IViewer.ts:49


moveDir#

â–¸ moveDir(direction): Promise<Image>

Parameters#

NameType
directionNavigationDirection

Returns#

Promise<Image>

Defined in#

viewer/interfaces/IViewer.ts:50


moveTo#

â–¸ moveTo(imageId): Promise<Image>

Parameters#

NameType
imageIdstring

Returns#

Promise<Image>

Defined in#

viewer/interfaces/IViewer.ts:51


off#

â–¸ off<T>(type, handler): void

Type parameters#

Name
T

Parameters#

NameType
typeViewerEventType
handler(event: T) => void

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:52


on#

â–¸ on<T>(type, handler): void

Type parameters#

Name
T

Parameters#

NameType
typeViewerEventType
handler(event: T) => void

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:55


project#

â–¸ project(lngLat): Promise<number[]>

Parameters#

NameType
lngLatLngLat

Returns#

Promise<number[]>

Defined in#

viewer/interfaces/IViewer.ts:58


projectFromBasic#

â–¸ projectFromBasic(basicPoint): Promise<number[]>

Parameters#

NameType
basicPointnumber[]

Returns#

Promise<number[]>

Defined in#

viewer/interfaces/IViewer.ts:59


remove#

â–¸ remove(): void

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:60


removeCustomRenderer#

â–¸ removeCustomRenderer(rendererId): void

Parameters#

NameType
rendererIdstring

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:61


resize#

â–¸ resize(): void

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:62


setAccessToken#

â–¸ setAccessToken(accessToken?): Promise<void>

Parameters#

NameType
accessToken?string

Returns#

Promise<void>

Defined in#

viewer/interfaces/IViewer.ts:69


setCameraControls#

â–¸ setCameraControls(controls): void

Parameters#

NameType
controlsCameraControls

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:63


setCenter#

â–¸ setCenter(center): void

Parameters#

NameType
centernumber[]

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:64


setFieldOfView#

â–¸ setFieldOfView(fov): void

Parameters#

NameType
fovnumber

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:65


setFilter#

â–¸ setFilter(filter?): Promise<void>

Parameters#

NameType
filter?FilterExpression

Returns#

Promise<void>

Defined in#

viewer/interfaces/IViewer.ts:66


setRenderMode#

â–¸ setRenderMode(renderMode): void

Parameters#

NameType
renderModeRenderMode

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:67


setTransitionMode#

â–¸ setTransitionMode(transitionMode): void

Parameters#

NameType
transitionModeTransitionMode

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:68


setZoom#

â–¸ setZoom(zoom): void

Parameters#

NameType
zoomnumber

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:70


triggerRerender#

â–¸ triggerRerender(): void

Returns#

void

Defined in#

viewer/interfaces/IViewer.ts:71


unproject#

â–¸ unproject(pixelPoint): Promise<LngLat>

Parameters#

NameType
pixelPointnumber[]

Returns#

Promise<LngLat>

Defined in#

viewer/interfaces/IViewer.ts:72


unprojectToBasic#

â–¸ unprojectToBasic(pixelPoint): Promise<number[]>

Parameters#

NameType
pixelPointnumber[]

Returns#

Promise<number[]>

Defined in#

viewer/interfaces/IViewer.ts:73