I'm returning a UIImageView in - (UIView *)mapView:(GMSMapView *)mapView markerInfoWindow:(GMSMarker *)marker;
This UIImageView
loads images dynamically through a URL using SDWebImage
.
As the documentation says about marker info windows:
Note: The info window is rendered as an image each time it is displayed on the map. This means that any changes to its properties while it is active will not be immediately visible. The contents of the info window will be refreshed the next time that it is displayed.
The point is that after downloading the image the info window doesn't refresh and keep showing the placeholder image until user hides then show it back again..
So I need to force refresh the contents of the markerInfoWindow
in the block of image downloaded..