Hi Barry, Thanks for the reply/ I have tried the things you have mentioned but the problem is i could find only a below code to retrieve the co-ordinates of the markers under that cluster but not other information of the markers. Is there any other feature to retrieve the remaining information of the markers of the very cluster?
*google.maps.event.addListener(mc, "click", function (c) {* * console.log("click: ");* * console.log("—Center of cluster: " + c.getCenter());* * console.log("—Number of managed markers in cluster: " + c.getSize());* * var m = c.getMarkers();* * var p = [];* * for (var i = 0; i < m.length; i++ ){* * (getData( c.getCenter()));* * p.push(m[i].getPosition());// titles += markers[i].getTitle() + "\n";* * } * * console.log("—Locations of managed markers: " + p.join(", "));* * });* On Friday, November 4, 2016 at 4:39:55 PM UTC+5:45, barryhunter wrote: > > There isnt a default implementation. > > But you should be able to set the zoomOnClick option to false, to disable > the auto zoom. > > Then make a handler for the clusterclick event on the 'map' object, the > library triggers this event upon clicks on a cluster. From this event > handler can then open a info window. I beleive the cluster object you get > as a paramater, includes a getMarkers method so can find the contained > markers. > > At least that can deduce from reading the source :) > > https://github.com/googlemaps/js-marker-clusterer/blob/gh-pages/src/markerclusterer.js > > > On 4 November 2016 at 10:11, Bipin Karmacharya <bip...@gmail.com > <javascript:>> wrote: > >> >> >> On Friday, November 4, 2016 at 4:14:37 AM UTC+5:45, Bipin Karmacharya >> wrote: >>> >>> Hello, >>> >>> How can we display information of all the markers of a single >>> markerclusterer in a single infowindow. What I need is when the user click >>> a master clusterer of 10 markers should display the information of all 10 >>> markers in a infowindow, For instance please click a number in >>> https://www.realtor.ca/Residential/map.aspx#CultureId=1&ApplicationId=1&RecordsPerPage=9&MaximumResults=9&PropertySearchTypeId=1&TransactionTypeId=2&StoreyRange=0-0&BedRange=0-0&BathRange=0-0&LongitudeMin=-131.7041015625&LongitudeMax=-41.2646484375&LatitudeMin=44.55916236865097&LatitudeMax=68.54431450347485&SortOrder=A&SortBy=1&viewState=m&PropertyTypeGroupID=1 >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "Google Maps JavaScript API v3" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to google-maps-js-api-v3+unsubscr...@googlegroups.com <javascript:> >> . >> To post to this group, send email to google-map...@googlegroups.com >> <javascript:>. >> Visit this group at https://groups.google.com/group/google-maps-js-api-v3 >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-js-api-v3+unsubscr...@googlegroups.com. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. Visit this group at https://groups.google.com/group/google-maps-js-api-v3. For more options, visit https://groups.google.com/d/optout.