Custom annotation view in Google Maps SDK

I don’t know about y’all, but I find Google’s rendered UIView info windows to be a bit restricting. Using SMCalloutView and Ryan Maxwell’s example project, it’s possible to present more interactive views. This works on Google Maps SDK v1.8.1, as of 2014-June-10. First, do some set up: #import <SMCalloutView/SMCalloutView.h> static const CGFloat CalloutYOffset = 10.0f; … Read more

Custom Info Window for Google Maps

You will want to use the markerInfoWindow delegate method along with setting the infoWindowAnchor. When you create your marker, set the anchor: GMSMarker *marker = [[GMSMarker alloc] init]; marker.position = MARKER_POSITION; marker.infoWindowAnchor = CGPointMake(0.44f, 0.45f); marker.icon = [UIImage imageNamed:@”CustomMarkerImageName”]; then create the delegate method: – (UIView *)mapView:(GMSMapView *)mapView markerInfoWindow:(GMSMarker *)marker { InfoWindow *view = [[[NSBundle … Read more