# 新增 POI 批量

Dandelion.RtAPI("addPoiBatch", params, (res) => {
  console.log(res);
});

# 功能描述

在 3D 世界中批量添加多个 POI

# 请求示例:

let params = [
  {
    bindID: "",
    flyToModel: true,
    iconBackColor: "",
    iconBackPulseColor: "",
    iconBorderColor: "",
    iconBorderPulseColor: "",
    iconCenterColor: "",
    iconCenterPulseColor: "",
    isStipple: true,
    isTemplateNormal: true,
    isTemplatePulse: true,
    lineColor: "",
    lineLen: "",
    linePulseColor: "",
    name: "",
    position: {
      height: 0,
      latitude: 0,
      longitude: 0,
    },
    pulse: true,
    pulseTime: 0,
    resourceId: "",
    tags: [],
    textBackColor: "",
    textBackPulseColor: "",
    textBorderColor: "",
    textBorderPulseColor: "",
    textColor: "",
    textContent: "",
    textPulseColor: "",
    viewMaxRange: 0,
    viewMinRange: 0,
    visible: true,
  },
];

# 请求参数:

参数名称 参数说明 是否必须 数据类型 效果展示
  bindID 通用属性:绑定的对象 id(如果对象已被绑定会被解绑) false String
  flyToModel 是否自动跳转参数:默认 false 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 设置建筑显隐
  name 通用属性:名称 false String
  position 通用属性:位置坐标 false object
    height 高度 false Number
    latitude 纬度 false Number
    longitude 经度 false Number
  pulse 通用属性:闪烁开关 false Boolean
  pulseTime 通用属性:闪烁间隔时间 false Number 设置建筑显隐
  resourceId 通用属性:模板 id true String
  tags 通用属性:Tag 列表 false Array
  textBackColor 文字类&混合类属性:文字背景默认颜色 false String 设置建筑显隐
  textBackPulseColor 文字类&混合类属性:文字背景闪烁颜色 false String 设置建筑显隐
  textBorderColor 文字类&混合类属性:文字边框默认颜色 false String 设置建筑显隐
  textBorderPulseColor 文字类&混合类属性:文字边框闪烁颜色 false String 设置建筑显隐
  textColor 文字类&混合类属性:文字默认颜色 false String 设置建筑显隐
  textContent 文字类&混合类属性:文字内容 false String 设置建筑显隐
  textPulseColor 文字类&混合类属性:文字闪烁颜色 false String 设置建筑显隐
  viewMaxRange 通用属性:最大可视距离 false Number 设置建筑显隐
  viewMinRange 通用属性:最小可视距离 false Number 设置建筑显隐
  visible 通用属性:显隐状态 false Boolean 设置建筑显隐

# 响应示例:

[
  {
    bindID: "",
    bindType: "",
    floorIndex: "",
    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 所在楼层 String
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