deck.gl
deck.gl copied to clipboard
calculate zoom level based on available data.
Is there any way in deck gl or luma gl to calculate zoom level as per the available data? EX. I'm fetching data from API and it looks like
and I want to calculate and set zoom level so it should look like

You should be able to calculate the bounding box from your data and then use fitBounds.
Thanks. that's what I was looking.