title: Remove directions from google map api v3
body: <p>I have a google map using API v3 which gets directions from one location to another.  The app works great but the window which gets the directions is an overlay on the map.  I'd like it so when this window is closed directions are removed from the map but other markers remain.</p>
  
  <p>I have tried the following:</p>
  
  <pre><code>$('#content .close').live('click', function() {
  $('#content').hide();
  directionDisplay = new google.maps.DirectionsRenderer();
  directionDisplay.suppressMarkers = true;
  directionDisplay.setMap(map);
  return false;
  });
  </code></pre>
  
  <p>This seems to hide the window as expected but doesn't do anything regards with removing directions from the map.</p>
  
  <p>Any help is much appreciated.</p>
  
  <p>Dave.</p>