Constructor
new Popup(}, optionsopt)
单击弹出框类构造函数
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
} |
* | viewer 场景viewer |
|||||||||||||
options |
Object |
<optional> |
带有以下属性的对象: Properties
|
Classes
Members
depthTest :Boolean
是否打开深度判断(true时判断是否在球背面)
Type:
- Boolean
enable :Boolean
是否禁用
Type:
- Boolean
isOnly :Boolean
显示单个模式
Type:
- Boolean
Methods
bind2scene()
绑定到场景
close(eleId, removFea)
关闭弹出页面
Parameters:
Name | Type | Description |
---|---|---|
eleId |
String | 页面元素ID |
removFea |
Object | 绑定的实体元素 |
destroy()
销毁
getPopupId(}) → {String}
根据实体获取弹出实体的页面ID
Parameters:
Name | Type | Description |
---|---|---|
} |
Object | entity |
Returns:
eleId 页面元素ID
- Type
- String
mousePickingClick(event)
鼠标点击事件
Parameters:
Name | Type | Description |
---|---|---|
event |
* | 鼠标事件 |
Returns:
none
pickFeatures(feature, viewerPoint, cfg)
获取图层信息
Parameters:
Name | Type | Description |
---|---|---|
feature |
Object | |
viewerPoint |
Cesium.Cartesian2 | 位置信息 |
cfg |
* | feature的配置 |
Returns:
none
pickImageryLayerFeatures(position, failedCbFunc)
根据位置信息获取瓦片图层上的矢量对象
Parameters:
Name | Type | Description |
---|---|---|
position |
Cesium.Cartesian2 | 位置信息 |
failedCbFunc |
function | 没有pick到有效影像图层时执行的回调 |
Returns:
none
removeFeatureFor3dtiles()
单击3dtiles单体化,高亮显示构件处理
removeFeatureForImageryLayer()
单击Tile瓦片时同步,高亮显示要素处理
Returns:
none
show(entity, cartesian, viewPoint)
弹出信息展示
Parameters:
Name | Type | Description |
---|---|---|
entity |
* | 实体 |
cartesian |
* | 坐标信息 |
viewPoint |
* | 视口位置信息(屏幕坐标) |
Returns:
None
showFeatureFor3dtiles(item, style)
显示要素(针对3dtiles)
Parameters:
Name | Type | Description |
---|---|---|
item |
* | 要显示的要素Feature |
style |
* | 要显示的要素Feature的样式 |
Returns:
none
showFeatureForImageryLayer(item, style)
显示要素(针对ImageryLayer)
Parameters:
Name | Type | Description |
---|---|---|
item |
* | 要显示的要素Feature |
style |
* | 要显示的要素Feature的样式 |
Returns:
none