• Hi all.
    So I am using the plugin to its potential to narrow down stores by location. The result could be that I get 10 results. Using the custom template for the locations page I have checkboxes in which the user could further narrow down the shown results (ie… “Open 24 hrs”)
    Where can I access the map objects returned with the search results so that I can tap into that and filter further? I’d likely like to hide these values of the checkboxes in hidden divs within the results pull and show/hide items based on if I find them in the divs.
    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    If I understand correctly then you want to be able to show / hide groups of markers on the map based on a checkbox selection, without making a new search?

    This is a bit complicated to do without modifying the core code, unless they are using different markers, then you might be able to target them with CSS.

    In the wpsl-gmap.js the markersArray holds the list of markers that are placed on the map with their ID’s, coordinates etc. But you can’t access that from outside the file.

    What you can do is make a new search when the value from a checkbox changes?

Viewing 1 replies (of 1 total)
  • The topic ‘Further filter map results’ is closed to new replies.