deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

calculate zoom level based on available data.

Open UttamRahane opened this issue 6 years ago • 2 comments

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 image and I want to calculate and set zoom level so it should look like image

UttamRahane avatar Apr 28 '20 10:04 UttamRahane

You should be able to calculate the bounding box from your data and then use fitBounds.

kylebarron avatar Apr 28 '20 15:04 kylebarron

Thanks. that's what I was looking.

UttamRahane avatar Apr 29 '20 08:04 UttamRahane