Hi there, using gmap for a while since we came over the problem with the same lon/lat http://drupal.org/node/530328 this week. There is a pretty cool cluster handler around called markerclusterer http://gmaps-utility-library-dev.googlecode.com/svn/tags/markerclusterer... .. which shows the count of locations at a place and gets more detailed once zooming in. I'm wondering if this is a feature that makes sens as the gmap tools module already using it.

Comments

trevorsheridan’s picture

I would like to see this in GMap as well.

Trevor

swentel’s picture

I'm also in favor of that clusterer. I'm willing to write a patch for it, I'll try to investigate and see how extra managers can be added to the system - tips are also welcome! :)

NigelC’s picture

subscribe

NigelC’s picture

Wait, isn't this the Gmaps Utility Library MarkerManager which is in the dev release?

nchase’s picture

@NigelC, no it isn't. MarkerClusterer is something different. It is used in the GMap Tools and thats why I'm now switching over to Gmap Tools.

stella’s picture

+1 for this, @swentel did you ever figure out a patch for it? I plan on having a look too

bdragon’s picture

Status: Active » Fixed

Implemented on a whim.
Haven't figured out how I want to do the support for custom styles, but the basics seem to work on my test site.
http://drupal.org/cvs?commit=377386
http://drupal.org/cvs?commit=377388
http://drupal.org/cvs?commit=377390

webavant’s picture

It works great, except the count is not correct. The count displays "2" no matter what.

rooby’s picture

It's working for me, including the count.

Anyone else having count issues?

Are you getting any javascript errors on the page or anything?

webavant’s picture

No errors, and here's the thing, it shows "2" for each node, but when I simply zoom out/in one step it updates to the correct values and doesn't have any further problems.

zwoelfgrad’s picture

Hello, my first post here.

same problem like webavant. With a blank installation it works fine, but with the same configuration (Gmaps and Location) and existing data there is no way for me to get the clusters working correctly. I have about 500 nodes with Geo content, in the current Drupal there are outputted with taxonomy markers, the bubble includes title, node teaser, date. Author name and company are integrated via views relationsship.

You see, I have to start making thoughts about the amount of data and also the composition of the markers. The clusters would be an excellent solution for the second problem. For the first problem I will only output the node title but it is conceivable that someday the problem will return. I am still looking for an solution... any Ideas welcome

zwoelfgrad’s picture

Got it working… you have to enable "autozoom" an the GMap settings. No idea why, but it works.

rooby’s picture

If you are finding odd things like having to enable autozoom to get markerclusterer to work I suggest opening a new issue for that so it can be investigated.

Now that support for marker clusterer has been added it would be good to keep any new issues with it in their own issues.
It's easier to track that way. And easier for people to find if they have the same problem.

webavant’s picture

Thanks, I went ahead and created a new issue.

marcushenningsen’s picture

@zwoelfgrad: I have autozoom enabled and still have the problem. Have do your settings look like besides the autozoom, if I may ask?

Freakachoo’s picture

For me it works when i delete from macros zoom=4| (preinstalled zoom for map). (and ofcourse enable autozoom).
Maybe it helps you.

rooby’s picture

@Freakachoo:

That issue is now at #837092: Markercluster incorrect count

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.