我正在使用谷歌地图迅速。我想知道是否有一种方法可以在我使用委托时隐藏信息窗口will move
will move
func mapView(mapView: GMSMapView, willMove gesture: Bool) { if gesture { // Hide info window here } }
地图
活动信息窗口存储在GMSMapView的selectedMarker中。将其设置为nil,信息窗口将消失。
func mapView(mapView: GMSMapView, willMove gesture: Bool) { if mapView.selectedMarker != nil { mapView.selectedMarker = nil } }
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
点击生成二维码
我来说两句