For the life of me I cannot get OL + popup with clustering to work. When clustering is off I get the popup, I can close it, select another point and get the popup again.

With clustering I was hoping it would show the cluster nodes in one popup, with a pager. I noticed there is a pager that never seems to render, but I am getting no popup at all, and the title as undefined. The second I turn clustering off, it works perfectly. Nevertheless, I would love to have this working with clustering , like the Managing News Module.

I am building my map with views, using the latest release of Openlayers 2 and Openlayers Plus.

Any help would be greatly appeciated.

Comments

batje’s picture

Category: bug » feature
Status: Active » Needs work

OL clustering and the openlayers_plus popup currently don't work together. patches as welcome.

davidserene’s picture

Category: feature » support
Status: Needs work » Needs review

A patch was posted at https://drupal.org/node/1540044#comment-6004714 to fix the clustering and popups not working.

Exploratus’s picture

I'll definitely check it out! This would be fantastic!

batje’s picture

Status: Needs review » Fixed

committed to dev

Exploratus’s picture

Hi batje.

The patch you referenced on #2 seemed to be for the 1.x branch. Is the patch you committed for the 2.x branch?

Thanks!

batje’s picture

All our current code is in the 7.x-2.x branch, we are working hard to get that to a release state. It should work in 7.x-2.x-dev

Exploratus’s picture

Then Ill try to apply the commit and report back. I tried to look at the code you referenced in #2, but it was for the 1.x branch.

Exploratus’s picture

Hi Batje.

Thanks for all your efforts! :) I was able to try out the latest dev, and unfortunately, clustering with open popup still does not work. It looks like its closer to working, but unfortunately, it seems its still a no go.

Basically, now I am getting a pager which I wasn't before, nevertheless, the pager doesn't work / switch between the different elements. It is also now pulling the title from the view, but not the "description content" from views, so for the body i am getting a undefined. It seems it only pulls the title from the first listing in the cluster, and then something happens and doesn't get the rest. It also affects the functionality of the non clustered icons.

As soon as I disable clustering, everything works perfectly with OL Popup.

Would love to hear from someone to see if it perhaps somebody has it working, perhaps its something I am doing wrong???

Status: Fixed » Closed (fixed)

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

Exploratus’s picture

Status: Closed (fixed) » Needs work

I am reopening, i dont believe this is addressed.

davidserene’s picture

Version: 7.x-2.0 » 7.x-3.0-beta1
Assigned: Unassigned » davidserene
Category: support » bug
Status: Needs work » Needs review

Hi exploratus, I have included a check for the popup body so the description should display now; also the titles for clustered items now changes as you use the pagers; these updates have been pushed to 7.x-3.x.

Exploratus’s picture

Awesome. :)

I'll give it a try and report back to confirm functionality.

Thanks David.

Exploratus’s picture

Issue summary: View changes

Works great!

The only thing I noticed is that when I have an entity that is not a node in the mapping , the title is undefined in the popup. For nodes it works perfectly. I have Drealty Listings (drealty module) that are showing title as undefined no matter what i do, everything else works great!