OverviewMap

OverviewMap

new OverviewMap(viewer, div, options)

鹰眼图

Parameters:
Name Type Description
viewer Viewer

三维场景对象

div HTMLElement

承载鹰眼图的容器

options Object

带有以下属性的对象:

Properties
Name Type Description
imageURL String

鹰眼图路径

iconURL String

所处位置图标路径

boundingBox Object

鹰眼图对应的包围盒 {xMin:XXX,yMin:XXX,xMax:XXX,yMax:XXX}

zprj Object

三维图层对应的zprj {x:XXX,y:XXX,longitudeDegree:XXX,latitudeDegree:XXX,height:XXX}

modelMatrix Array

三维图层从投影坐标放置到地球上用的偏移矩阵 作用和zprj相同 优先级更高

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时场景拉远