Appearance
倾斜摄影事件
覆盖物单选事件
功能描述:
开始覆盖物单选事件
调用方法:
JavaScript
appInstance.uniCall(
'pickOverlay',
{
overlayType: '3DTile',
idLayer: '0',
type: 'click',
isShowDecorator: true,
},
(result) => {
console.log(result);
}
);参数描述:
| 属性 | 类型 | 说明 |
|---|---|---|
| overlayType | String | 可选中图层对象类别 |
| idLayer | String | 填写图层对象 id,如不限制,可不填 |
| type | String | 单选模式,click:点击选中;hover:悬停选中 |
| isShowDecorator | Boolean | 表示是否显示选中的高亮装饰符,true:显示,false:不显示,默认:true |
回调数据:
JSON
{
"result": 1,
"message": "成功。"
}回调数据参数描述:
| 属性 | 类型 | 说明 |
|---|---|---|
| result | Number | 1:代表成功;0:代表失败 |
| message | String | 成功或者失败原因 |