title: Show label based on zoom level
body: <p>Depending on the zoomlevel I want to show or hide the label of a marker, I've had a look on here for the answers and while I've got a better idea of what I'm meant to be doing I haven't had any luck being able to implement it into my google map. the label should only show when zoom level is >7.</p>
  
  <pre><code>function initMap() {
      var map = new google.maps.Map(document.getElementById('map'), {
        zoom: 3,
        center: {lat: 52.024, lng: 2.887}        
      });
  
      setMarkers(map);
    }
  
       var tasks = [
  ['Marker 1', 32.89, 12.25, 78],
  ['Marker 2', 60.29, -4.29, 83],
  ['Marker 3', 57.39, 1.5, 85],
  ['Marker 4', 52.50, 4, 94]
    ];
  
    function setMarkers(map) {
      for (var i = 0; i &lt; tasks.length; i++) {
        var task = tasks[i];
        var marker = new google.maps.Marker({
          position: {lat: task[1], lng: task[2]},
          map: map,
          title: task[0],
          label: task[0],
          url: "somesite?ID=" + task[3]
        });
  
        marker.addListener('click', function() {
        window.location.href = this.url;
      });
  
    }
    }
  </code></pre>