title: How to position a label in the center of a leaflet tile?
body: <p>I have statistical data by leaflet tile. I try to put a label in the center of a tile so that it roughly looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/Oh4RA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Oh4RA.png" alt="enter image description here"></a></p>
  
  <p>So far I have code like this:</p>
  
  <pre><code>&lt;div id="map" style="height: 512px; width: 512px;border: solid;"&gt;
  &lt;/div&gt;
  
  ...
  var textLatLng = [?, ?]; // This is my question, how to calculate this?
  
  var myTextLabel = L.marker(textLatLng, {
      icon: L.divIcon({
          className: 'text-labels',   
          html: '173'
      }),
      zIndexOffset: 1000     
  });
  myTextLabel.addTo(map);
  </code></pre>
  
  <p>Got this code from <a href="https://stackoverflow.com/a/22500570/382009">here</a></p>