收藏
回答

map中marker的属性rotate在安卓系统中无效怎么办?

map markers

回答关注问题邀请回答
收藏

1 个回答

  • 社区技术运营专员-Jahozheng
    社区技术运营专员-Jahozheng
    2021-02-03

    你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

    2021-02-03
    有用
    回复 2
    • Kylerico
      Kylerico
      2021-02-03
      安卓系统基本都有这个问题,微信版本号8.0.2.系统版本号安卓10代码片段:
             if (wx.getStorageSync('iphone')){
                    markers.push(
                      {
                        id:index,
                        latitude:res.result.pois[b].location.lat,
                        longitude:res.result.pois[b].location.lng,
                        iconPath: '../images/img_car.png',
                        rotate:180,
                        width:40,
                        height:41,
                      }
                     )
                  }else{
                    markers.push(
                      {
                        id:index,
                        latitude:res.result.pois[b].location.lat,
                        longitude:res.result.pois[b].location.lng,
                        iconPath: '../images/img_car.png',
                        width:40,
                        height:41,
                        rotate:360,
                      }
                    )
                  }
      这里判断机型成功了,但是设置就只有rotate属性无效
      2021-02-03
      回复
    • 社区技术运营专员-Jahozheng
      社区技术运营专员-Jahozheng
      2021-02-03回复Kylerico
      ,麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
      2021-02-03
      回复
登录 后发表内容
问题标签