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.
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.
Thank you.
Did this with no success :
Centrer
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.
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.
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.
Thank you for the follow up !
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.
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.
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.
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?
I've just deactivated the cache plugin and have no change.
Thank you.
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.
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?