Search code examples
iosobjective-cgoogle-mapsgoogle-maps-markersgoogle-maps-sdk-ios

Google Maps iOS Select All Markers


Is it possible to select all markers at a time to show all info windows? This is what I tried but it just selects the last object in the array..

If not possible, what is the alternative?

for (GMSMarker *marker in markersArr) 
        [self.mapView setSelectedMarker:marker];

PS: I am using Google Maps SDK for iOS version: 1.7.2.7908

Thanks in advance


Solution

  • I think you can only display one info window at a time.

    An alternative might be to use custom markers, which contain both the marker and the info window (which you'd need to render yourself into the marker image).