跳到主要内容

添加Marker

在场景中添加Marker标记。

代码示例
mapmostUE.addMarker("marker1", {
"type": "classic",
"name": "预警点位",
"location": [120.677742, 31.319174, 20],
"iconImage": "http://xxx.xxx.xx.xxx/XiXi/icon/monitor.png",
"imageUrl": "http://xxx.xxx.xx.xxx/XiXi/icon/monitor.png",
"bgColor": "#668866",
"enableAutoFlyTo": false
})

mapmostUE.addMarker("marker2", {
"type": "window",
"location": [120.678139, 31.32337, 10.635809],
"windowWidth": 400,
"windowHeight": 200,
"url": "http://www.dpark.com.cn/home",
"enableAutoFlyTo": false
})
效果
show