new OverviewMap(viewer, div, options)
鹰眼图
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
viewer |
Viewer | 三维场景对象 |
||||||||||||||||||
div |
HTMLElement | 承载鹰眼图的容器 |
||||||||||||||||||
options |
Object | 带有以下属性的对象: Properties
|
Methods
checkCameraPosIsInRect() → {Boolean}
检测当前相机位置是否在鹰眼图对应的包围盒范围内
Returns:
检测结果
- Type
- Boolean
destroy()
销毁鹰眼图
setPopup(text)
设置当前位置文本信息 若文本为空则关闭信息框
Parameters:
Name | Type | Description |
---|---|---|
text |
String | 显示的文本 |
zoom(bZoomInopt)
场景缩放
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
bZoomIn |
Boolean |
<optional> |
false
|
场景是否拉近 为true时场景拉近 false时场景拉远 |