Skip to content

m-gis核心库 v0.4.4


m-gis核心库 / LocationBar

类: LocationBar ​

定义于: widget/LocationBar.ts:18

给三维上添加位置栏,显示相机的位置、偏航角、俯仰角、翻滚角、帧率

const locationBar = new LocationBar() viewer.addWidget(locationBar)

继承 ​

  • default

构造函数 ​

构造函数 ​

new LocationBar(): LocationBar

定义于: widget/LocationBar.ts:31

返回 ​

LocationBar

重写了 ​

Widget.constructor

属性 ​

_cameraEl ​

_cameraEl: HTMLElement | undefined

定义于: widget/LocationBar.ts:21


_distence ​

_distence: number

定义于: widget/Widget.ts:15

继承自 ​

Widget._distence


_enable ​

_enable: any

定义于: widget/Widget.ts:14

继承自 ​

Widget._enable


_fpsEl ​

_fpsEl: HTMLElement | undefined

定义于: widget/LocationBar.ts:22


_fpsFrameCount ​

_fpsFrameCount: number

定义于: widget/LocationBar.ts:28


_id ​

_id: any

定义于: widget/Widget.ts:9

继承自 ​

Widget._id


_lastCameraSampleTime ​

_lastCameraSampleTime: number

定义于: widget/LocationBar.ts:25


_lastFpsSampleTime ​

_lastFpsSampleTime: number

定义于: widget/LocationBar.ts:26


_lastMouseSampleTime ​

_lastMouseSampleTime: number

定义于: widget/LocationBar.ts:24


_lastMsSampleTime ​

_lastMsSampleTime: number

定义于: widget/LocationBar.ts:27


_mouseEl ​

_mouseEl: HTMLElement | undefined

定义于: widget/LocationBar.ts:20


_msEl ​

_msEl: HTMLElement | undefined

定义于: widget/LocationBar.ts:23


_msFrameCount ​

_msFrameCount: number

定义于: widget/LocationBar.ts:29


_position ​

_position: any

定义于: widget/Widget.ts:11

继承自 ​

Widget._position


_positionChangeAble ​

_positionChangeAble: boolean

定义于: widget/Widget.ts:13

继承自 ​

Widget._positionChangeAble


_ready ​

_ready: boolean

定义于: widget/LocationBar.ts:30


_viewer ​

_viewer: any

定义于: widget/Widget.ts:10

继承自 ​

Widget._viewer


_wrapper ​

_wrapper: any

定义于: widget/LocationBar.ts:19

重写了 ​

Widget._wrapper


type ​

type: any

定义于: widget/Widget.ts:16

继承自 ​

Widget.type

访问器 ​

distence ​

Getter 签名 ​

get distence(): number

定义于: widget/Widget.ts:61

返回 ​

number

继承自 ​

Widget.distence


enable ​

Getter 签名 ​

get enable(): any

定义于: widget/Widget.ts:45

返回 ​

any

Setter 签名 ​

set enable(enable): void

定义于: widget/Widget.ts:41

部件是否可用

参数 ​
enable ​

any

部件是否可用

返回 ​

void

继承自 ​

Widget.enable


id ​

Getter 签名 ​

get id(): string

定义于: widget/Widget.ts:28

返回 ​

string

Setter 签名 ​

set id(val): void

定义于: widget/Widget.ts:32

参数 ​
val ​

string

返回 ​

void

继承自 ​

Widget.id


show ​

Getter 签名 ​

get show(): boolean

定义于: widget/Widget.ts:57

返回 ​

boolean

Setter 签名 ​

set show(visible): void

定义于: widget/Widget.ts:53

参数 ​
visible ​

boolean

返回 ​

void

继承自 ​

Widget.show


wrapper ​

Getter 签名 ​

get wrapper(): any

定义于: widget/Widget.ts:49

返回 ​

any

继承自 ​

Widget.wrapper

方法 ​

_bindEvent() ​

_bindEvent(): void

定义于: widget/LocationBar.ts:57

返回 ​

void


_init() ​

_init(): void

定义于: widget/LocationBar.ts:48

返回 ​

void

重写了 ​

Widget._init


_mountContent() ​

_mountContent(): void

定义于: widget/LocationBar.ts:69

返回 ​

void


_onCameraChanged() ​

_onCameraChanged(): void

定义于: widget/LocationBar.ts:96

返回 ​

void


_onMove() ​

_onMove(e): void

定义于: widget/LocationBar.ts:77

参数 ​

e ​

any

返回 ​

void


_onPostUpdate() ​

_onPostUpdate(): void

定义于: widget/LocationBar.ts:113

返回 ​

void


_unbindEvent() ​

_unbindEvent(): void

定义于: widget/LocationBar.ts:63

返回 ​

void

重写了 ​

Widget._unbindEvent


_updateWindowCoord() ​

_updateWindowCoord(_windowCoord): void

定义于: widget/Widget.ts:110

参数 ​

_windowCoord ​

any

返回 ​

void

继承自 ​

Widget._updateWindowCoord


addToViewer() ​

addToViewer(viewer, fromView?): LocationBar

定义于: widget/Widget.ts:65

参数 ​

viewer ​

Viewer

fromView? ​

boolean = false

返回 ​

LocationBar

继承自 ​

Widget.addToViewer


dispose() ​

dispose(): void

定义于: widget/Widget.ts:153

返回 ​

void

继承自 ​

Widget.dispose


hide() ​

hide(): void

定义于: widget/Widget.ts:146

返回 ​

void

继承自 ​

Widget.hide


install() ​

install(): void

定义于: widget/Widget.ts:80

部件安装

返回 ​

void

继承自 ​

Widget.install


remove() ​

remove(): void

定义于: widget/Widget.ts:159

返回 ​

void

继承自 ​

Widget.remove


setContent() ​

setContent(content): LocationBar

定义于: widget/Widget.ts:136

设置内容

参数 ​

content ​

string | Element

内容

返回 ​

LocationBar

继承自 ​

Widget.setContent


setPosition() ​

setPosition(position): LocationBar

定义于: widget/Widget.ts:119

设置部件位置

参数 ​

position ​

Position

部件位置

返回 ​

LocationBar

继承自 ​

Widget.setPosition


getOverlayType() ​

static getOverlayType(type): string | number | undefined

定义于: widget/Widget.ts:180

获取 Widget 类型

参数 ​

type ​

string

返回 ​

string | number | undefined

继承自 ​

Widget.getOverlayType


registerType() ​

static registerType(type): void

定义于: widget/Widget.ts:168

Widget 类型注册

参数 ​

type ​

string

返回 ​

void

继承自 ​

Widget.registerType

MGis 地理三维库