title: How to show Tooltip when zoom to some level?
body: <p>I wan to show tooltip when map zoom to 16 and close tooltip when zoom to 15,i use the code below but nothing happend.How to do this?Thanks</p>
  <pre><code>function onEachFeature(feature, layer) 
  {
      if (feature &amp;&amp; feature.properties) 
      {
          layer.bindTooltip(&quot;name：&quot; + feature.properties.NAME, 
                  {
                      direction: 'top'
                  });
              }
          }
  
  var marketLayer = L.geoJSON(marketData, 
          {
              pointToLayer: function (feature, latlng) 
              {
                  return L.marker(latlng, {icon: icon});
                  
              },
              onEachFeature: onEachFeature
          }).addTo(map);
  
  map.on('zoomend', function(e)
          {
              let level = map.getZoom();
              
              if(level &gt;= 16)
              {
                  marketLayer.openTooltip();
              }
              else
              {
                  marketLayer.closeTooltip();
              }
          });
  </code></pre>