收藏
回答

map组件 controls 大小乱了

框架类型 API/组件名称 终端类型 操作系统 微信版本 基础库版本
小程序 map 客户端 iOS 6.6.5 1.9.8



正常大小  40*40


ios 11.11



代码

controls: [{
           id: 1,
           iconPath: '/assets/images/location.png',
           position: {
               left: 10,
               top: wx.getSystemInfoSync().windowHeight - 70,
               width: 40,
               height: 40
           },
           clickable: true
       }, {
           id: 3,
           iconPath: '/assets/images/engineer.png',
           position: {
               left: 10,
               top: wx.getSystemInfoSync().windowHeight - 120,
               width: 40,
               heigth: 40,
           },
           clickable: true
       }, {
           id: 2,
           iconPath: '/assets/images/my.png',
           position: {
               left: wx.getSystemInfoSync().windowWidth - 50,
               top: wx.getSystemInfoSync().windowHeight - 120,
               width: 40,
               heigth: 40,
           },
           clickable: true
       }, {
           id: 4,
           iconPath: '/assets/images/custom.png',
           position: {
               left: wx.getSystemInfoSync().windowWidth - 50,
               top: wx.getSystemInfoSync().windowHeight - 70,
               width: 40,
               heigth: 40,
           },
           clickable: true
       }]

最后一次编辑于  2018-02-27
回答关注问题邀请回答
收藏

4 个回答

  • 黄思程
    黄思程
    2018-02-28

    能否给下完整的代码包试试。 另外也请考虑使用cover-view来替代

    2018-02-28
    有用
    回复 1
    • 2018-08-17

      6.6.7   2.2.2    安卓   仍然出现该问题

      2018-08-17
      回复
  • 黄思程
    黄思程
    2018-02-26

    微信版本6.5.2比较老了,麻烦更新一下看看

    2018-02-26
    有用
    回复
  • 阿喀琉斯
    阿喀琉斯
    2018-03-28

    这api也是醉了只有left,top没有bottom,right。大腾讯技术就是牛叉。

    2018-03-28
    有用
    回复
  • 3
    3
    2018-02-27

    已更新6.6.5,问题依旧

    2018-02-27
    有用
    回复
登录 后发表内容