cyberhobo / wordpress-geo-mashup

Official repository for Geo Mashup, the plugin that makes WordPress into a GeoCMS. Documentation:
https://github.com/cyberhobo/wordpress-geo-mashup/wiki/Getting-Started
63 stars 15 forks source link

Ajax live filter for map #788

Closed opwolken closed 7 years ago

opwolken commented 7 years ago

Hi I was wondering if you know if it is possible to add a live filter to the map? I am clueless on how to approach this.

I would like to filter on taxonomies after I have searched for a location, my project can be seen on dev6.opwolken.com so after you enter your location (for example "utrecht") I would like to have the option to filter on categories etc.

I this possible?

cyberhobo commented 7 years ago

I've actually never tried it, but maybe you could customize the search results template and add a term legend tag. If you try this I'd love to know if it works.

opwolken commented 7 years ago

Yes thank you. This is what I have done now, so I have a term legend tag included on my page (important to use "for_map="search_result_map"") and it is working :)

My next assignment is to get 2 different filters in, so not only categories but also a different tag. If you know how, please let met know!

dev6.opwolken.com and search for "tilburg"

cyberhobo commented 7 years ago

Very nice! Try adding a second term legend tag with taxonomy="post_tag", and make sure Settings / Geo Mashup / Overall / Collect Location For / Tags is checked.