Skip Navigation

Map markers lost after applying search filters on custom archive

Open

Topic Tags: Toolset Maps

Symptoms

A map block is added to a custom archive and the markers are sourced from the archive results. The archive includes search filters.

Everything displays correctly on the initial page load, and also displays correctly after applying some search filters, if the results update via page refresh.

If the results update via ajax, all of the markers are lost and the map centres on 0,0.

Workaround

The fix will be included in Toolset Maps 2.1.5.

A pre-release version including the fix can be downloaded from here.

11 thought on Map markers lost after applying search filters on custom archive

    • We are just gathering together updates for several plugins and plan to release them—including the fix for this issue—next Monday.

    • Unfortunately there were some last minute problems with the Maps update which means it missed the deadline for this week’s releases. Maps will go out at a later date.

      But in the meantime I have updated the description above to include a link to a patched version of Maps which includes a fix for this problem, if you could please try that.

  • Also this vesion isnot working at all using ajax.
    Both option dont work
    AJAX refresh when clicking submit
    AJAX refresh when changing any filter

    • OK, sorry about that.

      In which case, can you please open a support forum ticket to report the problem, as we will need a copy of your site to be able to investigate why it doesn’t work in your case.

  • I have a very similar problem, as discussed and illustrated in my open ticket here:

    https://toolset.com/forums/topic/map-issues-cant-filter-a-list-of-related-posts-and-cant-generate-hover-text/#post-2806766

    My full Toolset debug info is there, too, with all plugins activated. Though I get the same issue with all plugins deactivated.

    Has the fix in the patch linked above been rolled into the main release, e.g., Maps 2.2.0 I’m running now?

    Today I tried implementing some “map focus on marker” links on the same map that’s given me trouble on search. These are also sending me to 0,0 coordinates, but in different way (details in ticket).

    Thanks for any updates!

    • I checked that the changes introduced to fix this issue did make it into the latest plugin updates (Maps 2.2.0 and also Blocks 1.6.19, both are required).

      The changes are to JS files, and although these should be enqueued in such a way as to bust the browser cache of previous files, if the fix doesn’t appear to be working for you then you might want to clear the browser cache generally and do a hard reload of the page to ensure the new JS files are being loaded.

      If you still have problems please pursue with your supporter in the existing forum thread you created.

  • Thank you for the update 🙂 I’m working on a recent install so I’m afraid caching isn’t my issue. Fingers crossed we can get it sorted…

Leave
a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>