Reputation: 49
I tried this
GMSMarker *marker = [[GMSMarker alloc]init];
marker.icon = [UIImage imageNamed:@"pin2.png"];
marker.position = CLLocationCoordinate2DMake(lati, longi);
marker.groundAnchor = CGPointMake(0.5, 0.5);
marker.draggable = YES;
marker.map = mapView;
but I did not get the image.
Upvotes: 1
Views: 3300
Reputation: 11
I think you are missing this line:
[mapView setSelectedMarker:marker];
Upvotes: 1