代码如下:
let markers = []
let curmark = {
id: '',
latitude: _self.latitude,
longitude: _self.longitude,
iconPath: '/static/img/serviceSite/map_icon_add.png',
width: '30',
height: '30',
anchor: {x: .5, y: .5}
}
markers.push(curmark)
for(var item of siteLists){
let marker = {
id: item.numId,
latitude: item.latitude,
longitude: item.longitude,
iconPath: '/static/img/serviceSite/map_icon_location_blue.png',
width: 30,
height: 30,
callout: {
content: item.name,
color: '#fff',
fontSize: 12,
borderRadius: 5,
bgColor: '#DB312D',
padding: 5,
display: 'ALWAYS'
}
}
markers.push(marker)
}
_self.markers = markers
林大大1号
我也是遇到了,请问你解决了吗
2021-05-26 10:05