收藏
回答

地图max-scale动态赋值,在andoird微信版上某一机型出bug,自动缩放自最小,且无法放大

框架类型 问题类型 终端类型 微信版本 基础库版本
小程序 Bug 微信安卓客户端 8.0.47 3.3.4
机型: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
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容