# 根据 Tag 更新 POI
Dandelion.RtAPI("updatePoiByTag", params, (res) => {
console.log(res);
});
# 功能描述
根据 Tag 值,更新 POI 的参数
# 请求示例:
let params = {
backToInitialView: true,
bindID: "",
condition: "==",
firstView: true,
home: true,
iconBackColor: "",
iconBackPulseColor: "",
iconBorderColor: "",
iconBorderPulseColor: "",
iconCenterColor: "",
iconCenterPulseColor: "",
isStipple: true,
isTemplateNormal: true,
isTemplatePulse: true,
lineColor: "",
lineLen: "",
linePulseColor: "",
loopMove: true,
movePathId: "",
moveSpeed: 0,
moveState: 0,
name: "",
position: {
height: 0,
latitude: 0,
longitude: 0,
},
pulse: true,
pulseTime: 0,
resourceId: "",
tags: [],
textBackColor: "",
textBackPulseColor: "",
textBorderColor: "",
textBorderPulseColor: "",
textColor: "",
textContent: "",
textPulseColor: "",
thetherState: true,
viewMaxRange: 0,
viewMinRange: 0,
viewpointIndex: "",
viewpointType: 0,
visible: true,
};
# 请求参数:
参数名称 | 参数说明 | 是否必须 | 数据类型 | 效果展示 |
---|---|---|---|---|
backToInitialView | 回到初始视角 | false | Boolean | |
bindID | 通用属性:绑定的对象 id(如果对象已被绑定会被解绑) | false | String | |
condition | 条件:==相等(默认)、{}包含 | false | String | |
firstView | 第一视角 | false | Boolean | |
home | 是否设置为默认 | false | Boolean | |
iconBackColor | 图标类&混合类属性:图标背景正常颜色 | false | String | |
iconBackPulseColor | 图标类&混合类属性:图标背景闪烁颜色 | false | String | ![]() |
iconBorderColor | 图标类&混合类属性:图标边框正常颜色 | false | String | |
iconBorderPulseColor | 图标类&混合类属性:图标边框闪烁颜色 | false | String | |
iconCenterColor | 图标类&混合类属性:图标中心图标正常颜色 | false | String | |
iconCenterPulseColor | 图标类&混合类属性:图标中心图标闪烁颜色 | false | String | |
isStipple | 图标类&混合类属性:连接线样式(true 虚线、false 实线) | false | Boolean | |
isTemplateNormal | 通用属性:是否使用模板得正常颜色 | false | Boolean | |
isTemplatePulse | 通用属性:是否使用模板得闪烁颜色 | false | Boolean | |
lineColor | 图标类&混合类属性:连接线正常颜色 | false | String | |
lineLen | 图标类&混合类属性:连接线线长 | false | String | |
linePulseColor | 图标类&混合类属性:连接线闪烁颜色 | false | String | |
loopMove | 路径循环方式 | false | Boolean | |
movePathId | 路径 id | false | String | |
moveSpeed | 速度 | false | Number | |
moveState | 播放:0 暂停:1 停止:2 恢复 | false | Number | |
name | 通用属性:名称 | false | String | |
position | 通用属性:位置坐标 | false | ||
height | 高度 | false | Number | |
latitude | 纬度 | false | Number | |
longitude | 经度 | false | Number | |
pulse | 通用属性:闪烁开关 | false | Boolean | |
pulseTime | 通用属性:闪烁时间(单位秒) | false | Number | |
resourceId | 通用属性:模板 id | false | String | |
tags | 通用属性:tag 列表 | true | Array | String |
textBackColor | 文字类&混合类属性:文字背景正常颜色 | false | String | |
textBackPulseColor | 文字类&混合类属性:文字背景闪烁颜色 | false | String | |
textBorderColor | 文字类&混合类属性:文字边框正常颜色 | false | String | |
textBorderPulseColor | 文字类&混合类属性:文字边框闪烁颜色 | false | String | ![]() |
textColor | 文字类&混合类属性:文字正常颜色 | false | String | |
textContent | 文字类&混合类属性:文字内容 | false | String | |
textPulseColor | 文字类&混合类属性:文字闪烁颜色 | false | String | |
thetherState | 视点是否跟随 | false | Boolean | |
viewMaxRange | 通用属性:最大可视距离 | false | Number | ![]() |
viewMinRange | 通用属性:最小可视距离 | false | Number | ![]() |
viewpointIndex | 自定义视角 guid | false | String | |
viewpointType | 0 观察视角 1 驾驶视角 2 自定义视角 | false | Number | |
visible | 通用属性:显隐状态 | false | Boolean |
# 响应示例:
{
"backToInitialView": true,
"bindID": "",
"bindType": "",
"firstView": true,
"floorIndex": 0,
"foreignKey": [],
"home": true,
"iconBack": "",
"iconBackColor": "",
"iconBackPulseColor": "",
"iconBorder": "",
"iconBorderColor": "",
"iconBorderPulseColor": "",
"iconCenter": "",
"iconCenterColor": "",
"iconCenterPulseColor": "",
"id": "",
"isStipple": true,
"isTemplateNormal": true,
"isTemplatePulse": true,
"lineColor": "",
"lineLen": "",
"linePulseColor": "",
"loopMove": true,
"movePathId": "",
"moveSpeed": 0,
"moveState": 0,
"name": "",
"parentBuildingID": "",
"poiType": 0,
"position": {
"height": 0,
"latitude": 0,
"longitude": 0
},
"pulse": true,
"pulseTime": 0,
"resourceId": "",
"tags": [],
"textArrow": "",
"textBack": "",
"textBackColor": "",
"textBackPulseColor": "",
"textBorder": "",
"textBorderColor": "",
"textBorderPulseColor": "",
"textColor": "",
"textContent": "",
"textPulseColor": "",
"thetherState": true,
"viewMaxRange": 0,
"viewMinRange": 0,
"viewPointList": [
{
"heading": 0,
"height": 0,
"home": true,
"id": "",
"latitude": 0,
"longitude": 0,
"loopMove": true,
"movePathId": "",
"moveSpeed": 0,
"moveState": 0,
"name": "",
"pitch": 0,
"range": 0,
"throughtime": 0
}
],
"viewpointIndex": "",
"viewpointType": 0,
"visible": true
}
# 响应参数:
参数名称 | 参数说明 | 类型 |
---|---|---|
backToInitialView | 回到初始视角 | Boolean |
bindID | 通用属性:绑定的对象 id(如果对象已被绑定会被解绑) | String |
bindType | 绑定的对象类型 | String |
firstView | 第一视角 | Boolean |
floorIndex | 所在楼层 | Number |
foreignKey | 外部 ID | Array |
home | 是否设置为默认 | Boolean |
iconBack | 图标类&混合类属性:图标背景 url | String |
iconBackColor | 图标类&混合类属性:图标背景正常颜色 | String |
iconBackPulseColor | 图标类&混合类属性:图标背景闪烁颜色 | String |
iconBorder | 图标类&混合类属性:图标边框 url | String |
iconBorderColor | 图标类&混合类属性:图标边框正常颜色 | String |
iconBorderPulseColor | 图标类&混合类属性:图标边框闪烁颜色 | String |
iconCenter | 图标类&混合类属性:图标中心图标 url | String |
iconCenterColor | 图标类&混合类属性:图标中心图标正常颜色 | String |
iconCenterPulseColor | 图标类&混合类属性:图标中心图标闪烁颜色 | String |
id | 通用属性:Poiid | String |
isStipple | 图标类&混合类属性:连接线样式(true 虚线、false 实线) | Boolean |
isTemplateNormal | 通用属性:是否使用模板得正常颜色 | Boolean |
isTemplatePulse | 通用属性:是否使用模板得闪烁颜色 | Boolean |
lineColor | 图标类&混合类属性:连接线正常颜色 | String |
lineLen | 图标类&混合类属性:连接线线长 | String |
linePulseColor | 图标类&混合类属性:连接线闪烁颜色 | String |
loopMove | 路径循环方式 | Boolean |
movePathId | 路径 id | String |
moveSpeed | 速度 | Number |
moveState | 播放:0 暂停:1 停止:2 恢复 | Number |
name | 通用属性:名称 | String |
parentBuildingID | 通用属性:父建筑 id | String |
poiType | 通用属性:poi 类型(0 文字、1 图标、2 混合) | Number |
position | 通用属性:位置坐标 | |
height | 高度 | Number |
latitude | 纬度 | Number |
longitude | 经度 | Number |
pulse | 通用属性:闪烁开关 | Boolean |
pulseTime | 通用属性:闪烁时间(单位秒) | Number |
resourceId | 通用属性:模板 id | String |
tags | 通用属性:tag 列表 | Array |
textArrow | 文字类&混合类属性:文字边框箭头 url | String |
textBack | 文字类&混合类属性:文字背景 url | String |
textBackColor | 文字类&混合类属性:文字背景正常颜色 | String |
textBackPulseColor | 文字类&混合类属性:文字背景闪烁颜色 | String |
textBorder | 文字类&混合类属性:文字边框 url | String |
textBorderColor | 文字类&混合类属性:文字边框正常颜色 | String |
textBorderPulseColor | 文字类&混合类属性:文字边框闪烁颜色 | String |
textColor | 文字类&混合类属性:文字正常颜色 | String |
textContent | 文字类&混合类属性:文字内容 | String |
textPulseColor | 文字类&混合类属性:文字闪烁颜色 | String |
thetherState | 视点是否跟随 | Boolean |
viewMaxRange | 通用属性:最大可视距离 | Number |
viewMinRange | 通用属性:最小可视距离 | Number |
viewPointList | 视点列表 | Array |
heading | 偏航角 | Number |
height | 高度 | Number |
home | true 主视点、false 当前视点 | Boolean |
id | 视点 ID | String |
latitude | 纬度 | Number |
longitude | 经度 | Number |
loopMove | 是否循环移动 | Boolean |
movePathId | 沿着路径移动得路径 id | String |
moveSpeed | 移动速度 | Number |
moveState | 移动状态(0 播放、1 暂停、2 停止) | Number |
name | 视点名称 | String |
pitch | 俯仰角 | Number |
range | 视点距离 | Number |
throughtime | 飞跃时间 | Number |
viewpointIndex | 自定义视角 guid | String |
viewpointType | 0 观察视角 1 驾驶视角 2 自定义视角 | Number |
visible | 通用属性:显隐状态 | Boolean |