更新POI图层
更新场景中的POI图层。
代码示例
mapmostUE.updatePOIs("layer1",
[{
id: "location1",
name: "金鸡湖玲珑岛",
location: [120.675362, 31.318881, 100.177277],
color: "#ff9900",
iconImage: "http://xxx.xxx.xx.xxx/SIPSD/icon/gouwu.png",
}, {
id: "location2",
name: "春晓别墅",
location: [120.673454, 31.31862, 13.930321],
color: "#ff9900",
labelWidth: 300,
tag: "拥挤",
tagColor: "#ff9900",
iconImage: "http://xxx.xxx.xx.xxx/SIPSD/icon/gouwu.png"
}]
)
效果
