Zooming was usually done via the centroid as it was the property that would always be present.
This PR now conditionally zooms via a fitBounds call so that polygons are fit within the screen when clicked instead of zoomed into their center. This is done via the new rendering class with the addition of a universal bounds() fn on all cots
Context
Zooming was usually done via the centroid as it was the property that would always be present.
This PR now conditionally zooms via a fitBounds call so that polygons are fit within the screen when clicked instead of zoomed into their center. This is done via the new rendering class with the addition of a universal
bounds()
fn on all cots