Title: Further filter map results
Last modified: August 16, 2017

---

# Further filter map results

 *  [jeynon](https://wordpress.org/support/users/jeynon/)
 * (@jeynon)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/further-filter-map-results/)
 * 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](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/further-filter-map-results/#post-9414281)
 * 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](https://plugins.trac.wordpress.org/browser/wp-store-locator/tags/2.2.9/js/wpsl-gmap.js#L1582)
   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.

 * ![](https://ps.w.org/wp-store-locator/assets/icon-256x256.jpg?rev=1007784)
 * [WP Store Locator](https://wordpress.org/plugins/wp-store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-store-locator/reviews/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [Google API](https://wordpress.org/support/topic-tag/google-api/)
 * [Markers](https://wordpress.org/support/topic-tag/markers/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/further-filter-map-results/#post-9414281)
 * Status: not resolved