我知道在Java版的Google Maps中很容易,但我不知道如何在Objective C版本的SDK中关闭信息窗口。
我正在使用这个方法:
-(void) mapView:(GMSMapView *)mapView
didTapInfoWindowOfMarker:(id<GMSMarker>)marker {
sharedGlobal.shouldShowPlayer = YES;
/* adds the path to the map by decoding google's encoded string */
[self addPath: sharedGlobal.encodedPathString];
}
我想要添加一行代码来关闭与标记相关联的信息窗口。