const line = turf.lineString([[-122.3321, 47.6062], [-122.3321, 47.8062]], { name: 'Seattle Line' }); const newLayers = window.L.geoJSON(line).addTo(theMap); theMap.fitBounds(newLayers.getBounds());