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.
When a popup is clicked, it appears as it should, but after the first time it becomes inactive. Only when the zoom level changes and the map is redrawn the popup works again. This is specific to 7.x-2.0-beta3 with API 2.12. The dev version is not affected, but doesn't seem stable enough for production sites.
Comments
Comment #1
manojsaini CreditAttribution: manojsaini commentedSame thing happening for me as well
Comment #2
Georgique CreditAttribution: Georgique commentedConfirmed, though for me even changing zoom doesn't help.
Comment #3
Rob C CreditAttribution: Rob C commentedAre you both running a lot of other contrib modules? I'm thinking some other javascript may be messing things up. (non drupal core / non openlayers). You could also try to update to 2.x-dev to see if that solves the issue, but make a backup of your site before attempting this (obviously).
Comment #4
camhowardThis sounds like a duplicate of Popup only works once. Have you tried applying the patch posted in that issue? It solved this problem for me.
Comment #5
Rob C CreditAttribution: Rob C commented@camhoward that patch you point to is already committed, so try 2.x-dev, it already contains that patch.
Comment #6
Georgique CreditAttribution: Georgique commentedI will try (patch) today evening
Comment #7
jhoodI can confirm the patch found by following the link in #4 fixed the issue for me. I'm currently using 7.x-2.0-beta3 of openlayers.
Comment #8
BParticle CreditAttribution: BParticle commentedYes, it works! This is indeed the working patch against openlayers version 7.x-2.0-beta3: http://drupal.org/node/1876702#comment-6978956
I didn't find that issue, so I'm sorry for the duplicate. The description of this problem was a little generic, that's why. I'll mark this fixed.
Comment #9
Rob C CreditAttribution: Rob C commentedThen let's close it up as a dupe of #1876702: Popup only works once (so other people don't need to read everything).