Forums › Forums › Search & Filter Pro › Search Filter Pro Ajax call and Google Maps
- This topic has 7 replies, 2 voices, and was last updated 6 years, 6 months ago by
Trevor.
-
Anonymous(Private) October 15, 2018 at 7:33 pm #191023
Hi,
I’ve been using Advanced Custom Fields map feature (https://www.advancedcustomfields.com/resources/google-map/) to load all locations into a map. When the page loads the map will render. I’ve used the .js file in the link above. It works great, and your plugin will load the results on first try.
However when adding a filter the page wil refresh using ajax, but the map won’t render with the new locations. How can I call maps.js again after the ajax call from Search Filter Pro?
Thansk!
Anonymous(Private) October 16, 2018 at 1:45 pm #191083Thanks Trevor.
I have added the code to my main.js, but even with debugging using console.log() to detect if even ajax has started nothing happens.$(document).on(“sf:ajaxstart”, “.searchandfilter”, function(){
console.log(“ajax start”);
});Does the class selector .searchandfilter have to there?
-
AuthorPosts