使用uniapp开发时,在小程序中,可以查看到标记点,但是app真机调试里,使用了高德地图,标记点markers就没在地图上展示出来了,请问下怎么解决?
<map :markers="markers" :include-points="includePoints" show-compass joinCluster show-location @markertap="markerTap">
const markers = [], includePoints = []
this.dataSource.forEach((item,index) => {
markers.push({
id: index,
latitude: item.latitude,
longitude: item.longitude,
title: item.stationName,
iconPath: '/static/icon/poi-marker-default.png',
width: 28,
height: 36
})
includePoints.push({
latitude: item.latitude,
longitude: item.longitude
})
})
this.markers = [...markers]
this.includePoints = [...includePoints]
小程序效果图
APP真机调试效果图