- 地图max-scale动态赋值,在andoird微信版上某一机型出bug,自动缩放自最小,且无法放大
机型:HONOR Play4T Pro hormonyOS 版本:3.0.0 import { reactive, unref, onBeforeMount, onMounted } from 'vue' const ps = reactive({ maxScale: 20 }) const state = reactive({ id: 0, title: 'map', latitude: 29.646893, longitude: 106.571712, markers: [{ id: 1, latitude: 29.646893, longitude: 106.571712, iconPath: '/static/gdm-icon/point.png' }, { id: 2, latitude: 29.629583, longitude: 106.565392, iconPath: '/static/gdm-icon/point.png' }], polyline: { points: [{ id: 1, latitude: 29.646893, longitude: 106.571712, iconPath: '/static/gdm-icon/point.png' }, { id: 2, latitude: 29.629583, longitude: 106.565392, iconPath: '/static/gdm-icon/point.png' }], color: '#FE6550', width: 4, arrowLine: true }, polygons: { points: [ {latitude: 29.636637,longitude: 106.566919}, {latitude: 29.631137,longitude: 106.567435}, {latitude: 29.629553,longitude: 106.574862}, {latitude: 29.63571,longitude: 106.578026} ], fillColor: '#FFD7AB' } }) [图片]
03-01 - 微信模拟器地图无法正常显示,只有将调试基础库调整为最低版本才可以2.11.0,真机是没有问题的
只有将基础调试库调试到最低版本才能正常显示,但是这个版本太低了,一些方法无法使用[图片] 其他版本均无法显示 [图片] 发布到真机去也是没有问题的 代码如下 import { reactive, getCurrentInstance, ref, onMounted, unref } from 'vue' const state = reactive({ latitude: 39.909, longitude: 116.39742, covers: [{ id: 1, width: '50px', height: '50px', latitude: 39.909, longitude: 116.39742, iconPath: '/static/home/1.png' }, { id: 2, width: '50px', height: '50px', latitude: 39.90, longitude: 116.39, iconPath: '/static/home/1.png' }] }) const handleTap = (e:any) => { console.log(e,'点击了'); } https://developers.weixin.qq.com/s/mpAaJ7m67cPF
01-26