• Resolved Toutha

    (@toutha)


    Hi,
    I wish to hide or display markers. the images of the markers were created with geo_mashup_locations_json_object function, but I can not retrieve the information to show or hide some markers that are created by METABOX with radio button. I can not find which functions to use.
    I tried using ‘markerVisibilityOptions’ but it does not work
    Thanks

    https://wordpress.org/plugins/geo-mashup/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Toutha

    (@toutha)

    Is it possible to have the same thing as this example?
    example

    function toggleGroup(type) {
      for (var i = 0; i < markerGroups[type].length; i++) {
        var marker = markerGroups[type][i];
        if (!marker.getVisible()) {
          marker.setVisible(true);
        } else {
          marker.setVisible(false);
        }
      }
    }

    I can find any maps created by geo mashup with metabox to hide or show the marker 🙁

    Thanks

    Plugin Author Dylan Kuhn

    (@cyberhobo)

    objectVisibilityOptions is the action called for each object on the map to test whether it should be visible or not. To trigger it, call GeoMashup.updateMarkerVisibilities().

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hide/Show marker’ is closed to new replies.