# 设置 PoiTag 批量
Dandelion.RtAPI("setPoiTagBatch", params, (res) => {
console.log(res);
});
# 功能描述
设置 PoiTag 批量
let params = [
{
id: "",
tags: [],
type: 0,
},
];
# 请求参数:
参数名称 | 参数说明 | 是否必须 | 数据类型 |
---|---|---|---|
id | id | true | String |
tags | tag 列表 | true | Array |
type | 1 添加、2 删除、0 覆盖 | true | Number |
# 响应示例:
[
{
bindID: "",
bindType: "",
floorIndex: 0,
iconBack: "",
iconBackColor: "",
iconBackPulseColor: "",
iconBorder: "",
iconBorderColor: "",
iconBorderPulseColor: "",
iconCenter: "",
iconCenterColor: "",
iconCenterPulseColor: "",
id: "",
isStipple: true,
isTemplateNormal: true,
isTemplatePulse: true,
lineColor: "",
lineLen: "",
linePulseColor: "",
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: "",
viewMaxRange: 0,
viewMinRange: 0,
visible: true,
},
];
响应参数:
参数名称 | 参数说明 | 类型 |
---|---|---|
bindID | 通用属性:绑定的对象 id(如果对象已被绑定会被解绑) | String |
bindType | 绑定的对象类型 | String |
floorIndex | 所在楼层 | Number |
iconBack | 图标类&混合类属性:图标背景 url | String |
iconBackColor | 图标类&混合类属性:图标背景正常颜色 | String |
iconBackPulseColor | 图标类&混合类属性:图标背景闪烁颜色 | String |
iconBorder | 图标类&混合类属性:图标边框 url | String |
iconBorderColor | 图标类&混合类属性:图标边框正常颜色 | String |
iconBorderPulseColor | 图标类&混合类属性:图标边框闪烁颜色 | String |
iconCenter | 图标类&混合类属性:图标中心图标 url | String |
iconCenterColor | 图标类&混合类属性:图标中心图标正常颜色 | String |
iconCenterPulseColor | 图标类&混合类属性:图标中心图标闪烁颜色 | String |
id | 通用属性:id | String |
isStipple | 图标类&混合类属性:连接线样式(true 虚线、false 实线) | Boolean |
isTemplateNormal | 通用属性:是否使用模板得正常颜色 | Boolean |
isTemplatePulse | 通用属性:是否使用模板得闪烁颜色 | Boolean |
lineColor | 图标类&混合类属性:连接线正常颜色 | String |
lineLen | 图标类&混合类属性:连接线线长 | String |
linePulseColor | 图标类&混合类属性:连接线闪烁颜色 | String |
name | 通用属性:名称 | String |
parentBuildingID | 通用属性:父建筑 id | String |
poiType | 通用属性:poi 类型(0 文字、1 图标、2 混合) | Number |
position | 通用属性:位置坐标 | Object |
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 |
viewMaxRange | 通用属性:最大可视距离 | Number |
viewMinRange | 通用属性:最小可视距离 | Number |
visible | 通用属性:显隐状态 | Boolean |