The zoomToFeature function just invokes L.Map.fitBounds, which "sets a map view that contains the given geographical bounds with the maximum zoom level possible"[1]. So based on their API docs, that wouldn't necessarily involve increasing zoom level if the region we're trying to show is large enough.
The
zoomToFeature
function just invokesL.Map.fitBounds
, which "sets a map view that contains the given geographical bounds with the maximum zoom level possible"[1]. So based on their API docs, that wouldn't necessarily involve increasing zoom level if the region we're trying to show is large enough.