- 搜索蓝牙 wx.startBluetoothDevicesDiscovery调用进入失败?
报错提示 :startBluetoothDevicesDiscovery:fail:internal error 错误码-4 手机型号 三星S23 ultra
2023-08-14 - 微信小程序的map-polyline中的segmentTexts,在设置后未看到效果?
Page({ data: { latitude: 23.099994, longitude: 113.324520, markers: [{ id: 1, latitude: 23.099994, longitude: 113.324520, name: 'T.I.T 创意园' }], polyline: [{ points: [{ latitude: 23.099994, longitude: 113.344520, }, { latitude: 23.199994, longitude: 113.324520, }, { latitude: 23.199984, longitude: 113.304520, }, ], segmentTexts: [{ startIndex: 0, endIndex: 1, name: 'setmengtext1' },{ startIndex: 1, endIndex: 2, name: 'setmengtext2' }], textStyle: { textColor:'#ff0000', strokeColor:'#ff0000', fontSize: 14 }, color: "#fff", width: 15, arrowLine: true, borderWidth: 1 //线的边框宽度,还有很多参数,请看文档 }], covers: [{ latitude: 23.099994, longitude: 113.344520, iconPath: '/image/location.png' }, { latitude: 23.099994, longitude: 113.304520, iconPath: '/image/location.png' }] }, onReady: function (e) { this.mapCtx = wx.createMapContext('myMap') }, getCenterLocation: function () { this.mapCtx.getCenterLocation({ success: function (res) { console.log(res.longitude) console.log(res.latitude) } }) }, moveToLocation: function () { this.mapCtx.moveToLocation() }, translateMarker: function () { this.mapCtx.translateMarker({ markerId: 1, autoRotate: true, duration: 1000, destination: { latitude: 23.10229, longitude: 113.3345211, }, animationEnd() { console.log('animation end') } }) }, includePoints: function () { this.mapCtx.includePoints({ padding: [10], points: [{ latitude: 23.099994, longitude: 113.344520, }, { latitude: 23.199994, longitude: 113.324520, }, { latitude: 23.199984, longitude: 113.304520, }, ] }) } })
2022-03-14 - map的markers的iconPath可以设置圆角或圆形吗
- 需求的场景描述(希望解决的问题) 地图上根据标记点连线,标记点上是圆形的用户头像 - 希望提供的能力 希望地图的标记点上的图片可以设置圆角或者标记点上支持圆形图片, 标记点的样式也希望可以自定义
2019-01-23