收藏
回答

map组件bug polyline 遇到经度为负数连线bug

问题类型 API/组件名称 终端类型 微信版本 基础库版本
Bug Map 微信安卓客户端 8.0.68 3.13.0
 <map
      :polyline="polyline"
      :enable-scroll="enableScroll"
      :style="{ width: '100%', height: mapheight, borderRadius: '10rpx' }"
      :markers="markers"
      :latitude="latitude"
      :longitude="longitude"
      :scale="scale"
    ></map>


polyline的数据出现跨越边线的时候连线会绕一圈连线

polyline=[
          { latitude: '20.653377', longitude: '179.921375' },
          { latitude: '20.6', longitude: '-179.775' },
        ]

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

1 个回答

  • 智能回答 智能回答 本次回答由AI生成
    01-22
    有用
    回复 1
    • 喵哥
      喵哥
      01-22
      { latitude: 66, longitude: 170 }, // 途经:白令海峡(亚洲/北美洲分界)
                { latitude: 40, longitude: 180 }, // 途经180°经线
                { latitude: 40, longitude: -174.006 },    过不了180°会绕地球一圈
      01-22
      回复
登录 后发表内容