Support » Plugin: Basic Google Maps Placemarks » [Plugin: Basic Google Maps Placemarks] Filter Placemarks

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ian Dunn

    (@iandunn)

    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.

    Love to see an update to permit filtering of markers 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Basic Google Maps Placemarks] Filter Placemarks’ is closed to new replies.