Appearance
模型型号事件
目录
- 1. 覆盖物单选事件
- 2. 连接服务成功
- 3. 断开服务成功
- 4. 开始模型型号地标图对象聚焦
- 5. 结束模型型号地标图对象聚焦
- 6. 开始模型型号地标图全部对象聚焦
- 7. 结束模型型号地标图全部对象聚焦
- 8. 开始模型型号地标图子对象聚焦
- 9. 结束模型型号地标图子对象聚焦
- 10. 鼠标悬停模型型号地标图对象
- 11. 鼠标离开模型型号地标图对象
- 12. 左键点击模型型号地标图对象
- 13. 开始模型型号轨迹图对象聚焦
- 14. 结束模型型号轨迹图对象聚焦
- 15. 开始模型型号轨迹图全部对象聚焦
- 16. 结束模型型号轨迹图全部对象聚焦
- 17. 开始模型型号轨迹图子对象聚焦
- 18. 结束模型型号轨迹图子对象聚焦
- 19. 开始模型型号轨迹图图例聚焦
- 20. 结束模型型号轨迹图图例聚焦
- 21. 鼠标悬停模型型号轨迹图对象
- 22. 鼠标离开模型型号轨迹图对象
- 23. 左键点击模型型号轨迹图对象
1. 覆盖物单选事件
引入版本:3.0 起支持
功能描述
开始覆盖物单选事件
调用方法
JavaScript
appInstance.uniCall(
'pickOverlay',
{
overlayType: 'iconModelLandmarkLayer',
idLayer: '0',
type: 'click',
isShowDecorator: true,
},
(result) => {
console.log(result);
}
);参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| overlayType | String | 图层类别 目前支持的 overlayType 是:landmark,path,area,model,modelTrailLayer,modelLandmarkLayer,iconModelTrailLayer,iconModelLandmarkLayer |
| idLayer | String | 填写图层对象 id,如不限制,可不填 |
| type | String | 单选模式,click:点击选中;hover:悬停选中 |
| isShowDecorator | Boolean | 表示是否显示选中的高亮装饰符,true:显示,false:不显示,默认:true |
回调数据
JSON
{
"result": 1,
"message": "成功。"
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| result | Number | 1:代表成功;0:代表失败 |
| message | String | 成功或者失败原因 |
2. 连接服务成功
引入版本:3.1 起支持
功能描述
连接服务成功
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onAssetServerConnected',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{}3. 断开服务成功
引入版本:3.1 起支持
功能描述
断开服务成功
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onAssetServerDisconnected',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{}4. 开始模型型号地标图对象聚焦
引入版本:3.1 起支持
功能描述
开始模型型号地标图对象聚焦
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onFocusIconModelLandmarkLayerStart',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idLayer": "layerId"
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idLayer | String | 模型型号地标图 id |
5. 结束模型型号地标图对象聚焦
引入版本:3.1 起支持
功能描述
结束模型型号地标图对象聚焦
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onFocusIconModelLandmarkLayerEnd',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idLayer": "layerId"
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idLayer | String | 模型型号地标图 id |
6. 开始模型型号地标图全部对象聚焦
引入版本:3.1 起支持
功能描述
开始模型型号地标图全部对象聚焦
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onFocusAllIconModelLandmarkLayerStart',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);7. 结束模型型号地标图全部对象聚焦
引入版本:3.1 起支持
功能描述
结束模型型号地标图全部对象聚焦
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onFocusAllIconModelLandmarkLayerEnd',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);8. 开始模型型号地标图子对象聚焦
引入版本:3.1 起支持
功能描述
开始模型型号地标图子对象聚焦
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onFocusIconModelLandmarkLayerObjStart',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idObj": "objId",
"idLayer": "layerId"
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idObj | String | 模型型号地标图子对象 id |
| idLayer | String | 模型型号地标图 id |
9. 结束模型型号地标图子对象聚焦
引入版本:3.1 起支持
功能描述
结束模型型号地标图子对象聚焦
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onFocusIconModelLandmarkLayerObjEnd',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idObj": "objId",
"idLayer": "layerId"
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idObj | String | 模型型号地标图子对象 id |
| idLayer | String | 模型型号地标图 id |
10. 鼠标悬停模型型号地标图对象
引入版本:3.1 起支持
功能描述
鼠标悬停模型型号地标图对象
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onIconModelLandmarkLayerHover',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idObj": "objId",
"idLayer": "layerId"
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idObj | String | 模型型号地标图对象 id |
| idLayer | String | 模型型号地标图 id |
11. 鼠标离开模型型号地标图对象
引入版本:3.1 起支持
功能描述
鼠标离开模型型号地标图对象
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onIconModelLandmarkLayerUnhover',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idObj": "objId",
"idLayer": "layerId"
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idObj | String | 模型型号地标图对象 id |
| idLayer | String | 模型型号地标图 id |
12. 左键点击模型型号地标图对象
引入版本:3.1 起支持
功能描述
左键点击模型型号地标图对象
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onIconModelLandmarkLayerClick',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idObj": "objId",
"idLayer":"layerId",
"selected": false,
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idObj | String | 模型型号地标图 id |
| idLayer | String | 模型型号地标图 id |
| selected | Boolean | 选中状态 |
13. 开始模型型号轨迹图对象聚焦
引入版本:3.1 起支持
功能描述
开始模型型号轨迹图对象聚焦
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onFocusIconModelTrailLayerStart',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idLayer": "layerId"
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idLayer | String | 模型型号轨迹图 id |
14. 结束模型型号轨迹图对象聚焦
引入版本:3.1 起支持
功能描述
结束模型型号轨迹图对象聚焦
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onFocusIconModelTrailLayerEnd',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idLayer": "layerId"
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idLayer | String | 模型型号轨迹图 id |
15. 开始模型型号轨迹图全部对象聚焦
引入版本:3.1 起支持
功能描述
开始模型型号轨迹图全部对象聚焦
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onFocusAllIconModelTrailLayerStart',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);16. 结束模型型号轨迹图全部对象聚焦
引入版本:3.1 起支持
功能描述
结束模型型号轨迹图全部对象聚焦
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onFocusAllIconModelTrailLayerEnd',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);17. 开始模型型号轨迹图子对象聚焦
引入版本:3.1 起支持
功能描述
开始模型型号轨迹图子对象聚焦
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onFocusIconModelTrailLayerObjStart',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idObj": "objId",
"idLayer": "layerId"
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idObj | String | 模型型号轨迹图子对象 id |
| idLayer | String | 模型型号轨迹图 id |
18. 结束模型型号轨迹图子对象聚焦
引入版本:3.1 起支持
功能描述
结束模型型号轨迹图子对象聚焦
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onFocusIconModelTrailLayerObjEnd',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idObj": "objId",
"idLayer": "layerId"
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idObj | String | 模型型号轨迹图子对象 id |
| idLayer | String | 模型型号轨迹图 id |
19. 开始模型型号轨迹图图例聚焦
引入版本:3.1 起支持
功能描述
开始模型型号轨迹图图例聚焦
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onFocusIconModelTrailLayerLegendStart',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idObj": "objId",
"idLayer": "layerId"
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idObj | String | 模型型号轨迹图子对象 id |
| idLayer | String | 模型型号轨迹图 id |
20. 结束模型型号轨迹图图例聚焦
引入版本:3.1 起支持
功能描述
结束模型型号轨迹图图例聚焦
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onFocusIconModelTrailLayerLegendEnd',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idObj": "objId",
"idLayer": "layerId"
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idObj | String | 模型型号轨迹图子对象 id |
| idLayer | String | 模型型号轨迹图 id |
21. 鼠标悬停模型型号轨迹图对象
引入版本:3.1 起支持
功能描述
鼠标悬停模型型号轨迹图对象
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onIconModelTrailLayerHover',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idObj": "objId",
"idLayer": "layerId"
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idObj | String | 模型型号轨迹图对象 id |
| idLayer | String | 模型型号轨迹图 id |
22. 鼠标离开模型型号轨迹图对象
引入版本:3.1 起支持
功能描述
鼠标离开模型型号轨迹图对象
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onIconModelTrailLayerUnhover',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idObj": "objId",
"idLayer": "layerId"
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idObj | String | 模型型号轨迹图对象 id |
| idLayer | String | 模型型号轨迹图 id |
23. 左键点击模型型号轨迹图对象
引入版本:3.1 起支持
功能描述
左键点击模型型号轨迹图对象
调用方法
JavaScript
appInstance.uniCall(
'addEventListener',
{
eventName: 'onIconModelTrailLayerClick',
callback: function(event) {
console.log(event);
},
},
(result) => {
console.log(result);
}
);回调数据
JSON
{
"idObj": "objId",
"idLayer":"layerId",
"selected": false,
}回调数据参数描述
| 属性 | 类型 | 说明 |
|---|---|---|
| idObj | String | 模型型号轨迹图 id |
| idLayer | String | 模型型号轨迹图 id |
| selected | Boolean | 选中状态 |