Forums Forums Search & Filter Pro Google map not rendering after applying a filter

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #207450

    Hi,

    I have search and filter page where I show a map from ACF. Everything works fine until, after applying a taxonomy filter(ajax) then the map is not rendered.

    Anonymous
    #207454
    This reply has been marked as private.
    Trevor
    #207490
    This reply has been marked as private.
    Trevor
    #207492

    If the map is visible when the posts loads, but disappears when an Ajax refresh of the page is made, and if you disable Ajax, and then after filtering it does show, then you need to to trigger the maps to reload after our Ajax filter is run, like this:

    <script>(function ( $ ) {
      "use strict";
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
    // so load your maps here again
      });
    }(jQuery));</script>
Viewing 4 posts - 1 through 4 (of 4 total)