title: Unable to hide marker from GMap v3
body: <p>I can have a bunch of locations with different categories to show on the map. Eventually I'd like to apply a filter on them. Probably the scenario is very familiar as I found many of them on the web while I was trying to solve my issue. I put the markers on my map and I can find no way to hide them. Here is how I try it:</p>
  
  <pre><code>function addLocations($content, id, map){
  var $mapdiv = $content.find('div.map_div');
  catValues = [map.catPrimary, map.catWhite, map.catGreen, map.catYellow, map.catRed, map.catBrown, map.catPurple, map.catGray, map.catOrange];
  db.locations.all(function(obj){
      $.each(obj, function(index, location){
          if(location.value.nodeID == id){
              var latitude = location.value.latitude;
              var longitude = location.value.longitude;
              var description = location.value.description;
              var category = location.value.category;
              var position = new google.maps.LatLng(latitude, longitude);
              if(category == "0"){
                  homeLocation = position;
                  $mapdiv.gmap('get','map').setOptions({'center':position});
              }       
              var marker = new google.maps.Marker({
                  position: position, 
                  icon: "assets/img/marker_" + category + ".png", 
                  category: category,
                  shadow: iconShadow,
              });
              marker.setMap( $mapdiv.gmap('get','map') );
              $mapdiv.gmap('addMarker', marker).click(function() {
                  $mapdiv.gmap('openInfoWindow', { 'content': description + "&lt;br/&gt; (" + catValues[category] + ")"}, this);
              });
          }       
      });
      markers = $mapdiv.gmap('get', 'markers');
      for(var i = 0; i&lt;markers.length; i++){
          if(markers[i].category != "0"){
              //"not primary, hiding  
              markers[i].setVisibile(false);
          }
      }
  });
  </code></pre>
  
  <p>All the markers are shown and the ones that are supposed to be hidden are not. I also tried adding the markers to an array before I add them to the map and work with them, but no success. When I include the markers[i].setVisible(false) around a try and catch it says "Object #  has no method 'setVisible'. Surprisingly if I test markers[i].getVisible() I get the value true. 
  I appreciate your help in advance.</p>