code: function(ev) {
      if (ev) {
        ev.preventDefault();
        ev.stopPropagation();
      }
      if (this.model.get("visibility")) {
         this.model.set("visibility", false);
         this.trigger('close');
      }
    }
docs: Close infowindow