【问题标题】:Google Maps Flutter disable center Marker after onTap()Google Maps Flutter 在 onTap() 后禁用中心标记
【发布时间】:2021-06-05 10:14:53
【问题描述】:

我使用 flutter_google_maps,点击标记后,标记会自动在地图上居中。 有没有办法禁用它?

谢谢 约尔格

【问题讨论】:

    标签: flutter google-maps camera center marker


    【解决方案1】:

    在创建标记时,请确保您将consumeTapEvents 传递给true,它会发挥作用。 按照下面的代码行:

    Marker marker = Marker(markerId: markerId, consumeTapEvents: true)
    

    【讨论】:

      猜你喜欢
      • 2015-11-04
      • 1970-01-01
      • 2022-12-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-06
      相关资源
      最近更新 更多