title: Change Google Maps' Selected Marker or change marker's color? [iOS]
body: <p>I am wondering if there is a way to change the color or image of the selected marker and then change it back when it is not selected anymore. I see that Yelp, which uses Apple Maps, changes the color/image of the selected marker and then back to the original once that one is no longer selected and was wondering if the Google Map iOS SDK had something similar or if someone has come across this problem and found a solution. </p>
  
  <p>What I have tried:</p>
  
  <p>I have looked through Google's Documentation on Markers (<a href="https://developers.google.com/maps/documentation/ios/marker" rel="noreferrer">found here</a>) and see that they have <code>marker.opacity</code> which changes the opacity and <code>marker.icon = [GMSMarker markerImageWithColor:[UIColor blackColor]];</code> which changes the marker's color. </p>
  
  <p>I have tried to manually change it in <code>-(UIView *)mapView:(GMSMapView *)mapView markerInfoWindow:(GMSMarker *)marker;</code> by adding this line <code>marker.icon = [GMSMarker markerImageWithColor: [UIColor differentColor]];</code> or this line <code>marker.icon = [UIImage imageNamed:@"differentColorImage"];</code> but when you tap out of the marker/info-window, the image/color remains the same. </p>
  
  <p>Anyone have any thoughts? Anything helps. Thanks in advance!</p>