title: leaflet failed focus on map to marker coordinates
body: <p>I have coordinates table.</p>
  <p>I want to this scenario.</p>
  <blockquote>
  <p>1 if I clicked td(2nd-child) (When I click on the coordinates row)</p>
  <p>2 alert!</p>
  <p>3 I would like the map's focus to be moved to the marker with that coordinate.</p>
  </blockquote>
  <pre><code>var southWest = L.latLng(l, r);
  var northEast = L.latLng(l+0.062, r+0.102);
  
  console.log(&quot;southWest : &quot;, southWest);
  console.log(&quot;northEast : &quot;, northEast);
  var bounds = L.latLngBounds(southWest, northEast);
  
  map.setView(bounds, 11, { animation: true });
  </code></pre>
  <p>this is not working. maps turns out grey.</p>
  <pre><code>function centerLeafletMapOnMarker(map, latLngs) {
          console.log(&quot;좌표: &quot;, latLngs);
          console.log(&quot;좌표 길이 : &quot;, latLngs.length);
  
          if (latLngs.length == 1) {
              // 폴리곤의 좌표
          } else if (latLngs.length == 2) {
              // 마커의 좌표
              console.log(&quot;마커의 좌표 : &quot;, latLngs);
              // map.setView(latLngs, 2); bounds로 해야하나보네 ㅠ
              var  [l, r] = latLngs;
              console.log(&quot;left : &quot;, l);
              console.log(&quot;right: &quot;, r);
              var southWest = L.latLng(l, r);
              var northEast = L.latLng(l+0.062, r+0.102);
              console.log(&quot;southWest : &quot;, southWest);
              console.log(&quot;northEast : &quot;, northEast);
              var bounds = L.latLngBounds(southWest, northEast);
  
              // map.setView(bounds, 11, { animation: true });
  
              map.flyTo([l, r], 13);
  
              // map.fitBounds(bounds);
              // map.fitBounds([
              //     [l, r],
              //     [l+0.062, r-0.102]
              // ]);
              // https://leafletjs.com/reference-1.0.0.html#latlngbounds
          } else {
  
          }
          // var corner1 = L.latLng(40.712, -74.227),
          //     corner2 = L.latLng(40.774, -74.125),
          //     bounds = L.latLngBounds(corner1, corner2);
          // map.fitBounds(bounds);
      }
  </code></pre>
  <p>here is live code</p>
  <blockquote>
  <p>output &gt; <a href="https://output.jsbin.com/bojituv" rel="nofollow noreferrer">https://output.jsbin.com/bojituv</a></p>
  <p>code &gt; <a href="https://jsbin.com/bojituv/edit?html,output" rel="nofollow noreferrer">https://jsbin.com/bojituv/edit?html,output</a></p>
  </blockquote>
  <p>The map doesn't focus where I want it.</p>
  <p>I only see the gray screen and the sea.</p>