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

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 负责人:无 分享
已邀请:

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

  • 标题 / 粗斜体
  • 代码片段
  • 超链接 / 图片 / 视频
  • 列表 / 引用

文章内容较多时,可以用标题分段 :

## 大标题 
### 小标题

斜体 / 粗体 :

**粗体** 
*斜体*
***粗斜体***

代码片段 :

``` javascript
代码片段
```

超链接 :

[链接文字](链接地址) 例: [百度](http://www.baidu.com)

图片 :

![图片说明](图片地址) 例: ![百度logo](http://www.baidu.com/img/bdlogo.gif)

视频 :

!![视频说明](视频地址) 例: !![优酷视频](http://youku.com)

有序列表 :

1. 123
2. 123
3. 123

无序列表 :

- 123
- 123
- 123

引用 : ( 双回车后结束引用 )

> 引用内容
引用内容
引用内容