I updated my application to use the Google Maps iOS SDK 1.3. Everything seems to work, except for GMSMarkers. They either do not appear, or appear with the wrong image. They still respond to touch and can be moved, but are otherwise invisible or damaged.
Here is the code to add GMSMarkers:
playerAnnotation = [[CustomPlayerAnnotation markerWithPosition:coord] retain]; [playerAnnotation setType:ANNOTATION_PLAYER]; [playerAnnotation setIcon:[UIImage imageNamed:@"Icon-72.png"]]; [playerAnnotation setGroundAnchor:ccp(.5f, .5f)]; [playerAnnotation setAnimated:NO]; [playerAnnotation setTappable:YES]; [playerAnnotation setTitle:@"Player"]; [playerAnnotation setMap:gameMapView]; GMSMarker* test = [[GMSMarker markerWithPosition:gameMapView.myLocation.coordinate] retain]; [test setIcon:[UIImage imageNamed:@"Icon-72.png"]]; [test setGroundAnchor:ccp(.5f, .5f)]; [test setAnimated:NO]; [test setTappable:YES]; [test setTitle:@"Player"]; [test setMap:gameMapView];
And CustomPlayerAnnotation is just a GMSMarker with some additional variables:
@interface CustomPlayerAnnotation : GMSMarker { AnnotationType type; int tag; struct CoordinatePair coordinatePair; }
Map with CustomPlayerAnnotation and GMSMarker test:

I have a large number of ground overlays, and the removal of overlays made by the marker reappears, but some still have odd images that do not display properly. It works fine in 1.2.2, but not 1.3.
Does anyone have a way around markers? Does anyone else see this behavior in GMSMarkers?
Other information: the application uses cocos2d 2.0, the director stops before loading the map, and GMSMapView is added as follows:
UIWindow* window = [(ProjectFusionAppDelegate*)[[UIApplication sharedApplication] delegate] window]; [[[window subviews] objectAtIndex:0] addSubview:gameMapView];
source share