<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
  html { height: 100% }
  body { height: 100%; margin: 0px; padding: 0px }
  #map_canvas { height: 100% }
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?v=3.4&sensor=false"></script>
<script type="text/javascript">
var map;
var circle;

function initialize() {
  var latlng = new google.maps.LatLng(37, -97);
  var myOptions = {
	zoom: 5,
	center: latlng,
	mapTypeId: google.maps.MapTypeId.ROADMAP
  };
	  
  map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
	
  $('input#start').click(function(){
	circle = new google.maps.Circle({
	  center: new google.maps.LatLng(37,-97),
	  radius: 100000,
	  fillColor: '#8899EE',
	  fillOpacity: 0.15,
	  strokeColor: '#FF0000',
	  strokeOpacity: 0.4,
	  strokeWeight: 3
	  });
	circle.setMap(map);
	circle.setMap(null);
	circle = null;  
	});
}
</script>
</head>
<body onload="initialize()">
  <div id='controls'><input type='button' id='start' value='Test'>[Using API version 3.4] Open the JS console. The second time the Test button is clicked, the API should generate an error.
   </div>
  <div id="map_canvas" style="width:100%; height:100%"></div>
</body>
</html>