title: Google Maps API v3 Turn Markers On Below a certain Zoom Level
body: <p>I am super green and need some help for a project. With my limited knowledge of html and javascript, I was able to make a google map with a number of locations. Here is my code (forgive me if it is bad, but it worked):</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt; 
  &lt;head&gt; 
  &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8" /&gt; 
  &lt;title&gt;Google Maps Multiple Markers&lt;/title&gt; 
  &lt;script src="http://maps.google.com/maps/api/js?sensor=false" 
        type="text/javascript"
    src="https://maps.googleapis.com/maps/api/js?libraries=visualization&amp;key="my key"&amp;sensor=false"&gt;
  &lt;/script&gt;
     &lt;style type="text/css"&gt;
       html { height: 100% }
       body { height: 100%; margin: 0px; padding: 0px }
       #map { height: 100% }
  &lt;/style&gt;
  &lt;/head&gt; 
  &lt;body&gt; 
  &lt;div id="map"&gt;&lt;/div&gt; 
  
  &lt;script type="text/javascript"&gt;
  
  var locations = [
  [47.003088, -96.929448],
  [46.817268, -96.810024],
  [46.842064, -96.796163],
  [46.644816, -96.408616],
  [46.860142, -96.751281],
  [46.789894, -96.807715],
  [46.844050, -96.856140],
  [46.921464, -96.780208],
  [46.585881, -96.843754],
  [46.860947, -96.913269],
  [46.844127, -96.813441],
  [46.852872, -96.891369],
  [46.828628, -96.775868]
  ];
  
  var map = new google.maps.Map(document.getElementById('map'), {
    zoom: 8,
    center: new google.maps.LatLng(46.827, -96.846),
    mapTypeId: google.maps.MapTypeId.ROADMAP
  });
  
  var marker, i;
  
  for (i = 0; i &lt; locations.length; i++) {  
    marker = new google.maps.Marker({
      position: new google.maps.LatLng(locations[i][0], locations[i][1]),
      map: map
    });
   }
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What I really want to do is to have the markers come on at only a closer zoom level. I don't need them on when zoomed far out. If they came on when I was close in that would be perfect.</p>