1***@qq.com
1***@qq.com
  • 发布:2024-06-29 12:26
  • 更新:2024-07-30 14:33
  • 阅读:192

app真机调试 markers无效

分类:uni-app

使用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真机调试效果图

2024-06-29 12:26 负责人:无 分享
已邀请:
2***@qq.com

2***@qq.com

+822835636

Analog

Analog - Analog

同问

  • 1***@qq.com (作者)

    把文件名改成nvue就会生效

    2024-12-24 11:41

要回复问题请先登录注册