I want to change the width of the InfoWindow of google map iOS SDK. Is there anyway to do?
The reason I want to do it is to show the full address in the InfoWindow. Is there any other way to do so instead of customizing the InfoWindow?
Also, can I change the text size in the InfoWindow?
At least, I would like to achieve the effect like this map: http://www.google.com/about/company/facts/locations/ where hyperlink can be applied as well.
Set the map delegate
to the view controller, then implement the google maps delegate method
-(UIView *)mapView:(GMSMapView *) aMapView markerInfoWindow:(GMSMarker*) marker
{
UIView *view = [[UIView alloc]init];
//customize the UIView, for example, in your case, add a UILabel as the subview of the view
return view;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.