Needs review
Project:
OpenLayers Plus
Version:
7.x-3.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 May 2013 at 12:38 UTC
Updated:
4 Apr 2014 at 16:20 UTC
Jump to comment: Most recent
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
Comment #1
batje commentedOL clustering and the openlayers_plus popup currently don't work together. patches as welcome.
Comment #2
davidserene commentedA patch was posted at https://drupal.org/node/1540044#comment-6004714 to fix the clustering and popups not working.
Comment #3
Exploratus commentedI'll definitely check it out! This would be fantastic!
Comment #4
batje commentedcommitted to dev
Comment #5
Exploratus commentedHi 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!
Comment #6
batje commentedAll 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
Comment #7
Exploratus commentedThen 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.
Comment #8
Exploratus commentedHi 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???
Comment #10
Exploratus commentedI am reopening, i dont believe this is addressed.
Comment #11
davidserene commentedHi 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.
Comment #12
Exploratus commentedAwesome. :)
I'll give it a try and report back to confirm functionality.
Thanks David.
Comment #13
Exploratus commentedWorks 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!