Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If cluster is enabled with popup behavior, the popup is impossible to close after zooming in or out.
The popup should close by itself when zooming to avoid this. Best-case the content of the popup is updated but I don't thinks that's trivial to do.
Comment | File | Size | Author |
---|---|---|---|
#22 | patch_zoom_remove_popup.patch | 180 bytes | Darkflash |
Comments
Comment #1
gsquirrelI am trying to get tooltips to work and realise that part of my problem is having clustering switched on, if i switch off clustering my tooltips start to work. I guess I am having the same issue. Are there any alternative clustering methods anyone knows of that might work better?
Comment #2
nod_Not that I know of, you can try tooltip behavior until i or someone else get this fixed :)
Comment #3
zzolo CreditAttribution: zzolo commentedHey @nod_. Did you get any JS errors?
Note that this only happens when you use the pan zoom control buttons. If you pan and zoom with the mouse or mouse wheel it seems to be ok.
Comment #4
FiNeX CreditAttribution: FiNeX commented@zzolo: I've reproduced this bug zooming with the mouse wheel.
Comment #5
FiNeX CreditAttribution: FiNeX commentedMoreover I've got the following JS error clicking on the close button inside the popup after zooming in or out:
Comment #6
acbramley CreditAttribution: acbramley commented+1 can reproduce this error:
1) Click point to get popup
2) Zoom with mouse
3) Click close button on popup
4) Get the JS error OpenLayers.js:1439 Uncaught TypeError: Cannot read property 'style' of null
Comment #7
Mujtaba Ahmed CreditAttribution: Mujtaba Ahmed commentedSame issue
Comment #8
mgiffordHas this been tested on the latest Dev version?
Comment #9
xtr4xtr3m3 CreditAttribution: xtr4xtr3m3 commentedI have this issue too using 7.x-2.0-beta1+84-dev.
And tooltips don't work at all if I enable clustering. If I disable clustering, the tooltip works, but since i have 2 markes at the exact same location it glitches and flickers if i move my mouse over it :( any ideas?
Comment #10
brylie CreditAttribution: brylie commentedI have this same issue, when scrolling the mouse and with the pan/zoom control.
OL 7.x-2.0-beta1
Drupal 7.17
PHP 5.4.8
jQuery Update:
jQuery 1.5.2 and jQuery UI 1.8.11
http://olyville.net
1) click any point (cluster or single)
2) zoom (mouse or zoom button)
3) click the X to close the pop-up
Comment #11
PolCould you try with Openlayers 7.x-2.x with Openlayers 2.12 ?
Comment #12
ifrikThe issue as described in #10 is still there, with the dev version from 28 december.
Comment #13
PolFixed, needs feedback.
Comment #14
PolThe bug is still there.
See: https://github.com/jorix/OL-FeaturePopups/issues/7 it looks like they have the same problem too.
I have contacted them and see if we can have some help from there.
Comment #15
PolTo people having problems with popups, could you try this: http://drupal.org/sandbox/Pol/1877914
It's a module adding a new behavior to OL with a new popup handling using an external library.
I'll need feedback on this.
Comment #16
PolComment #17
Dave Cohen CreditAttribution: Dave Cohen commentedthis is still a problem in 7.x-2.x.
did you mean to mark it closed won't fix because of the other module?
Comment #18
PolI'll look again into it tonight.
Comment #19
PolThis should be fixed now in 7.x-2.x and 7.x-3.x.
Comment #20
Darkflash CreditAttribution: Darkflash commentedHi,
Even if it's fixed in drupal 7, could i propose a patch for this drupal version (6) ?
Comment #21
PolOf course !
Comment #22
Darkflash CreditAttribution: Darkflash commentedHere is my 2 cents...
That should do the trick !
This patch is for js/openlayers/lib/OpenLayers/Map.js
I tested at home, can someone confirm it works ?
Best regards,
Dark
Comment #23
PolHo it looks like it's for the OpenLayers JS library, then you should open an issue here: https://github.com/openlayers/openlayers/issues
We only use the JS Library, we don't alter it.
Comment #24
Darkflash CreditAttribution: Darkflash commentedOk i will do another patch. Where is the file where you generate the js code that use the openlayers lib ?
Comment #25
PolCool !
Comment #28
ken-g CreditAttribution: ken-g as a volunteer and commented