我正在使用谷歌地图快速.我想知道是否有一种方法可以用来隐藏信息窗口,每当我使用委托时will move
func mapView(mapView: GMSMapView, willMove gesture: Bool) {
if gesture {
// Hide info window here
}
}
Run Code Online (Sandbox Code Playgroud)
活动信息窗口存储在GMSMapView的selectedMarker中.将其设置为nil,信息窗口将消失.
func mapView(mapView: GMSMapView, willMove gesture: Bool)
{
if mapView.selectedMarker != nil
{
mapView.selectedMarker = nil
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1379 次 |
| 最近记录: |