WordPress.org

Ready to get started?Download WordPress

Forums

Basic Google Maps Placemarks
Filter Placemarks (3 posts)

  1. aby87
    Member
    Posted 2 years ago #

    Is there any way to have a filter which will meet a set of terms.

    For example, If I have a map which shows parks and restaurants. Some of these parks have play grounds and some dont. Some restaurants have gluten free options and some dont.

    When the map initially loads it shows all parks with and without playgrounds and all restaurants with and without gluten free options.

    Is it possible to have a filter which allows a user to select parks and and also select playgrounds. Then the map will only show the parks with playgrounds and ignore all other placemarks.

    Thank you for your help in advance/.

    http://wordpress.org/extend/plugins/basic-google-maps-placemarks/

  2. Ian Dunn
    Member
    Plugin Author

    Posted 2 years ago #

    The plugin doesn't support that by default, but if you're comfortable with PHP it wouldn't be hard to extend it.

    1. Create a custom tag taxonomy. See the createCategoryTaxonomy() function in core.php for an example, but set the hierarchical parameter to false.
    2. Tag the Placemarks with "gluten free", etc
    3. Create a callback function for the bgmp_get-map-placemarks-query filter to add a tax_query parameter for the new taxonomy. See getMapPlacemarks() in core.php for an example.
  3. mathewmackenzie
    Member
    Posted 2 years ago #

    Love to see an update to permit filtering of markers :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic