Turn clustering on and off

1,435 views
Skip to first unread message

gdp

unread,
Oct 27, 2011, 12:13:00 AM10/27/11
to Google Maps JavaScript API v3
Hi

I am creating clusters on the map like this:

markerCluster = new MarkerClusterer(map, markers, mcOptions);

Without 'refreshing' the map markers, is it possible to temporarily
turn off clustering and then turn it back on again?

Thanks

gdp

geoco...@gmail.com

unread,
Oct 27, 2011, 1:26:02 AM10/27/11
to Google Maps JavaScript API v3
I'm not sure what you mean by "'refreshing' the map markers", is this
what you are looking for:

http://www.geocodezip.com/v3_GoogleEx_markerclusterer_unclusterB.html

from this thread:
http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/83253468332b614a/8e2b8bd8fb6ae963?lnk=gst&q=uncluster#8e2b8bd8fb6ae963

-- Larry

>
> Thanks
>
> gdp

gdp

unread,
Oct 27, 2011, 3:29:26 AM10/27/11
to Google Maps JavaScript API v3
That looks perfect Larry - thank you. I am at work currently but have
looked at the source and it looks perfect, I will try and use it this
evening. Thanks again



On Oct 27, 6:26 am, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
> On Oct 26, 9:13 pm, gdp <tidy...@googlemail.com> wrote:
>
> > Hi
>
> > I am creating clusters on the map like this:
>
> > markerCluster = new MarkerClusterer(map, markers, mcOptions);
>
> > Without 'refreshing' the map markers, is it possible to temporarily
> > turn off clustering and then turn it back on again?
>
> I'm not sure what you mean by "'refreshing' the map markers", is this
> what you are looking for:
>
> http://www.geocodezip.com/v3_GoogleEx_markerclusterer_unclusterB.html
>
> from this thread:http://groups.google.com/group/google-maps-js-api-v3/browse_frm/threa...
>
>   -- Larry
>
>
>
>
>
>
>
>
>
> > Thanks
>
> > gdp
Reply all
Reply to author
Forward
0 new messages