主要代码如下
var includePointsTemp=[]
// #ifdef H5
if(this.latitude && this.longitude){
//var myLocationIcon = this.isIos?'https://h5.youcaiyouzhi.com/static/images/chooseShop/myLocation.png':'https://h5.youcaiyouzhi.com/static/images/chooseShop/63068424595685.png'
markersTemp.push({
id:-1,
latitude:this.latitude,
longitude:this.longitude,
iconPath: 'https://h5.youcaiyouzhi.com/static/images/chooseShop/myLocation.png',
width:10,
height:10
})
includePointsTemp.push({latitude:this.latitude,longitude:this.longitude})
}
// #endif
for(var i =0;i<newVal.length;i++){
let val = newVal[i]
var temp={
id:val.storeId,
latitude:val.latitude,
longitude:val.longitude,
callout:{
content:val.StoreName,
display:'ALWAYS',
borderRadius:8,
// bgColor:'rgba(255,255,255,.8)'
},
iconPath:'https://my-good.oss-cn-hangzhou.aliyuncs.com/static/images/myPages/myLocation.png',
width:40,
height:40
}
var inTemp={latitude:val.latitude,longitude:val.longitude}
markersTemp.push(temp)
includePointsTemp.push(inTemp)
}
this.markers=markersTemp
setTimeout(()=>{
this.includePoints=includePointsTemp
},1000)
2 个回复
5***@qq.com (作者) - 95It
这个问题是个BUG还是代码问题呀... 官方帮忙给个答复呗
前端小白0
同问,官方,给点力吧,还有@controltap事件现在也不生效,天天更新都更新出啥了