title: Bing Maps v8 JS API
body: <p>I have a very simple Bing maps program where I want to allow the user to draw one shape on the map, I've got the drawing tools and everything set up however Bing's events don't seem to fire in the correct way - </p>
  
  <p>Drawing started - fires when I change my drawing tool to either a line or a polygon</p>
  
  <p>Drawing Changed - fires when I change my drawing tool to either a line or a polygon</p>
  
  <p>I simply want to clear the existing polygons from the map when I begin to draw a new polygon - however making a call to the getPrimitives function on the drawing manager clears the drawing mode, So then I thought about caching the drawing mode, reading the primitives to delete them and then resetting the drawing mode but then the setDrawingMode method on the drawing Manager calls the drawing started again which triggers the whole process again.</p>
  
  <p>Does anyone know how to overcome this. </p>