a***@qq.com
a***@qq.com
  • 发布:2019-09-02 15:06
  • 更新:2019-09-02 15:06
  • 阅读:614

nui-app 地图markes 动态渲染怎么渲染

分类:HBuilderX
<view> <!-- @markertap="openPopup" --> <map data-id="markers.id" latitude="latitude" longitude="longitude" markers="markers" @markertap="openPopup"></map>
</view>

data() {
return {
title: 'map',
latitude: 36.650484,
longitude: 117.97333,
scale:5,
markers: [{
latitude: 36.650484,
longitude: 117.97333,
iconPath: '../../static/icos/Dq.png'
}, {
latitude: 39.90,
longitude: 116.39,
iconPath: '../../static/icos/Dq.png'
}]
}

2019-09-02 15:06 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复