收藏
回答

ios和android,map组件中一样的scale级别,缩放比例不一致

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug map 客户端 6.7.2 2.1.0

ios和android,map组件中一样的scale级别,同为8,缩放比例不一致,android为200km,ios为150km



<view class="page-body">
  <view class="page-section page-section-gap">
    <map
      id="myMap"
      style="width: 100%; height: 300px;"
      latitude="{{latitude}}"
      longitude="{{longitude}}"
      markers="{{markers}}"
      covers="{{covers}}"
      scale="{{showLevel}}"
      circles="{{circles}}"
      show-location
    ></map>
  </view>
</view>


Page({
  data: {
    latitude: 31.194255518,
    longitude: 121.32063992,
    markers: [{
      id: 1,
      latitude: 23.099994,
      longitude: 113.324520,
      name: 'T.I.T 创意园',
      iconPath: '/image/location.png',
      label:{
        content:'测试',
        color: "#ff00ff",
        fontSize:12,
        x:-30,
        y:-30
 
      }
    }],
    covers: [{
      latitude: 23.099994,
      longitude: 113.344520,
      iconPath: '/image/location.png'
    }, {
      latitude: 23.099994,
      longitude: 113.304520,
      iconPath: '/image/location.png'
    }],
    circles: [{
      longitude: 121.455222,
      latitude: 31.24868,
      fillColor: "#ffffff",
      radius: 10000000
    }],
    showLevel:8,
  }
   
})


回答关注问题邀请回答
收藏
登录 后发表内容