【问题标题】:How to customize Google Map markers in Flutter?如何在 Flutter 中自定义谷歌地图标记?
【发布时间】:2019-05-27 14:36:33
【问题描述】:
markerList.forEach((marker) { 
     mapController.addMarker(marker); 
     mapController.onInfoWindowTapped.add((marker) {
          print(marker.id.toString());
     });
});

如何在点击信息窗口时调用上述回调?

【问题讨论】:

    标签: dart flutter google-maps-markers


    【解决方案1】:

    想通了...需要添加一个 void 回调:D

    【讨论】:

      猜你喜欢
      • 2019-10-29
      • 1970-01-01
      • 2013-08-21
      • 2019-06-03
      • 1970-01-01
      • 2014-05-27
      • 2020-06-26
      相关资源
      最近更新 更多