this.markerList = []
res.forEach((item, index) => {
if (item.pointStatus == 1) {
yx.push(item)
}
if (item.keypointtype == 0) {
arr1.push(item)
let icon = ''
let typeSign=''
if (item.pointStatus == 0) {
if (item.linepointtype == 0) {
icon = '../../static/allImage/1.png'
} else if (item.linepointtype == 1) {
icon = '../../static/allImage/startImg.png'
} else if (item.linepointtype == 2) {
icon = '../../static/allImage/endImg.png'
}
} else if (item.pointStatus == 1) {
if (item.signinType == 0&&item.linepointtype == 0) {
icon = '../../static/allImage/2.png'
} else if (item.signinType == 1&& item.linepointtype == 0) {
icon = '../../static/allImage/3.png'
} else if (item.linepointtype == 1) {
icon = '../../static/allImage/n3.png'
if(item.signinType == 1){
typeSign=1
}else {
typeSign=0
}
} else if (item.linepointtype == 2) {
icon = '../../static/allImage/n2.png'
if(item.signinType == 1){
typeSign=1
}else {
typeSign=0
}
}
}
// if(this.mapName=='百度'){
// //将百度坐标转高德
// let mark=bd_decrypt(item.longitude,item.latitude)
// item.latitude=mark.lat
// item.longitude=mark.lng
// }
covers.push({
latitude: item.latitude,
longitude: item.longitude,
width: '100',
height: '100',
iconPath: icon,
id: item.id,
isClick: false,
bigMark: false,
typeSign:typeSign
})
if (item.linepointtype == 1) {
this.haveStartPoint = true
this.startpointlaction = {
latitude: item.latitude,
longitude: item.longitude
}
}
if (item.linepointtype == 2) {
this.haveEndPoint = true
this.endpointlaction = {
latitude: item.latitude,
longitude: item.longitude
}
}
} else {
arr2.push(item)
}
})
this.covers = [...covers]
this.markerList = [...covers]