dottedline boolean 否 是否虚线。 默认值: false。 iconwidth number 否 使用纹理时的宽度。 zindex number - 覆盖物的 z 轴坐标。 iconpath string - 项目目录下的图片路径,可以用相对路径写法,以'/'开头则表示相对小程序根目录, 如果有 iconpath,会忽略 color。 但是 iconpath 可以和 colorlist 联合使用,...
<script> // 引入SDK核心类,js文件根据自己业务,位置可自行放置 // var QQMapWX = require('../../js_sdk/wxmp-qqmap/qqmap-wx-jssdk.js'); import QQMapWX from '../../js_sdk/wxmp-qqmap/qqmap-wx-jssdk.js'; var qqmapsdk; export default { components: {}, data() { return { backfill...
arrowLine:true,arrowIconPath:'/Common/logo.png' }, { points:[{latitude:39.504112,longitude:116.686649,coordType:'gcj02'}, {latitude:39.206665,longitude:116.595047,coordType:'gcj02'}], color:'#EE7AE9',dotted:false,width:'15px', arrowLine:true }] } } </script> 示例代码效果图:绘制...
polyline:[{points:[// 3个对象表示一条折线上有三个这点{latitude:23.099994,longitude:113.324520},{latitude:23.100000,longitude:113.324530},{latitude:23.100006,longitude:113.324540}],color:"#FF0000",// 路径颜色width:6,// 路径宽度dottedLine:false// 是否为虚线}] 2.2polyline的常用属性 每条路径(即数组...
{ longitude: 113.324520, latitude: 23.21229 }], color:"#FF0000DD", width: 2, dottedLine: true }], controls: [{ id: 1, iconPath: '/resources/location.png', position: { left: 0, top: 300 - 50, width: 50, height: 50 }, clickable: true }] }, regionchange(e...
dottedLine: true }],...//省略代码 } <mapid="map"longitude="{{longitude}}"latitude="{{latitude}}"polyline="{{polyline}}"style="width: 100%; height: 350px;"> circles data: { // circles: [{ latitude:'40.007153', longitude:'116.491081', ...
dottedLine: true }], }, markertap(event) { wx: wx.openLocation({ latitude: '35.10229', longitude: '114.324520', }) }, }) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. ...
dottedLine Boolean 否 是否虚线。默认值: false iconWidth Number 否 使用纹理时的宽度。版本要求:基础库 1.11.0 及以上 zIndex Number - 覆盖物的 Z 轴坐标。版本要求:基础库 1.11.0 及以上 iconPath String - 项目目录下的图片路径,可以用相对路径写法,以 '/' 开头则表示相对小程序根目...
dottedLine: true }], }, markertap: function (event) { // 调用微信的内置地图 wx.openLocation({ latitude: 23.10229, longitude: 113.3245211, }) }, }) 运行效果: 点击地图的mark图标触发事件后会进入微信的内置地图: 注:map组件的一些功能在模拟器上不能完全显示出来,所以研究该组件的时候,最好使用真机...
Rich customization style: 28 kinds of theme shapes, 50+ kinds of fonts, 23 kinds of dotted line types, support for rich text and other customization features Abundant resources: 33 theme styles, multiple color schemes, various Mark icons, access to Pexels image resource Outline mode offers a ...