收藏
回答

在ios上fromScreenLocation的原点是已屏幕坐标为原点

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug fromScreenLocation 微信iOS客户端 8.0.54 3.7.2
mapContext.fromScreenLocation({
  x:0,
  y:0,
  success: (res)=>{
                this.setDate({
                markers: [{
                    latitude: res.latitude,
                    longitude: res.longitude,
                    id: 2,
                    iconPath: '/static/img/map-wd.png',
                    width: 24,
                    height: 24
                }]
            })
  }
}}
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容