Skip Navigation

[Resolved] Force open map marker popup

This support ticket is created 5 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 14 replies, has 2 voices.

Last updated by romanB-3 4 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#1226156

I am trying to: Force the opening of the markers popup when clicking on the "center on map" button.

I have add the special class "js-toolset-maps-open-infowindow-map-carte-des-incidents-marker-marker-[wpv-post-id]" but it doesn't seem to work.

Link to a page where the issue can be seen: hidden link

Thank you.

#1226158

Delete the extra "marker-" from the classname, like this:

js-toolset-maps-open-infowindow-map-carte-des-incidents-marker-[wpv-post-id]

Also the link should have the attributes below:

data-map="your-map-id" data-marker="your-marker-id"

Then test again.

#1226159

Thank you.
Did this with no success :

Centrer

#1226167

Hmmm, okay I see now that the problem happens when the spiderfy option is enabled for the map. I'm able to reproduce this on my local environment. Let me ask my 2nd tier support team if this is a known issue, or if the interaction is not supported with spiderfy. I'll let you know what I find out.

#1226803

It turns out this is not the expected behavior. Our team has produced an erratum post about the issue, which you can see here: https://toolset.com/errata/spiderfy-breaks-focus-on-marker-interaction-to-force-open-a-marker-pop-up-dialog/

For now, it appears the only way to force open the marker popup with the "Focus on marker" link is to disable spiderfy. Our developers will work on the issue as soon as possible and I'll let you know how things progress.

#1536031

Hello, our developers have informed me that this issue will be resolved in the next release of Toolset Maps. The focus on marker functionality should be working correctly with the spiderfy option active. I'll let you know when the next version of Maps is ready to download, and you can verify everything is working as expected. Thanks for your patience while we worked to resolve this one.

#1536035

Thank you for the follow up !

#1553861

Hi, just a quick update to let you know our developers released a patch for this issue since the next release is taking a bit longer than usual. You can find the patch file and instructions for installation here: https://toolset.com/errata/spiderfy-breaks-focus-on-marker-interaction-to-force-open-a-marker-pop-up-dialog/

Please install the patch and let me know if the issue is not completely resolved.

#1614277

Hi, I have another quick update: the latest version of Toolset Maps includes the fix for this issue. After updating to the newest version of Toolset plugins, the patch should no longer be required. Please update to the latest versions of all Toolset plugins and confirm the spiderfy and focus-on-marker features are working together as expected. If not, please let me know so I can report this to our developers for further investigation.

#1614349

Hello and thank you for the update.
I've just updated to lasted version of maps but it doesn't seem to work, even without the spiderfier installed : hidden link
Please click a marker on the right side list of markers, then click "VOIR SUR LA CARTE" ; it goes down to the map but doesn't open the infowindow.
Thank you.

#1614385

Okay thank you for the feedback. After taking a closer look, I can see that your JavaScript is minified and concatenated somehow. Here's the compiled JS file I'm referring to, containing Toolset Maps code:
hidden link

Can you confirm that you have cleared this cache and rebuilt the compiled JavaScript cache since updating the Maps plugin?

#1614441

I've just deactivated the cache plugin and have no change.
Thank you.

#1614471

Okay thank you. Is it possible for me to log into this site? I have older login credentials from a different domain "veil...." but none for the wend... domain. I would like to see the details of these maps and links configurations. Please provide login credentials in the private reply fields here.

#1614473
#1615573

Okay I see the problem and I have made a minor change to solve it. Here is the View containing the "focus on marker" link:
hidden link

Here is the original code of a "focus on marker" link before making any changes:

<a href="#" title="Centrer sur la carte" class="js-wpv-addon-maps-focus-map js-toolset-maps-open-infowindow-map-toutes-representations-representation-[wpv-post-id]" data-map="toutes-representations" data-marker="representation-[wpv-post-id]">Voir sur la carte</a>

The "focus on marker" link requires a specific CSS classname format to trigger the popup. The correct syntax includes "marker-" before the marker ID "representation-[wpv-post-id]":

<a href="#" title="Centrer sur la carte" class="js-wpv-addon-maps-focus-map js-toolset-maps-open-infowindow-map-toutes-representations-marker-representation-[wpv-post-id]" data-map="toutes-representations" data-marker="representation-[wpv-post-id]">Voir sur la carte</a>

While you had 2 "marker-" indicators before ( https://toolset.com/forums/topic/force-open-map-marker-popup/#post-1226158 ), now there are none. To fix that, I have added "marker-" to each of the 3 links you had in conditionals here, and now the popup windows appear as expected when I click on "VOIR SUR LA CARTE". Can you confirm this is working as expected now?