dfpc-coe / CloudTAK

Full Featured in-browser TAK Client powered by AWS
GNU Affero General Public License v3.0
13 stars 1 forks source link

Feat Bounds #269

Closed ingalls closed 2 months ago

ingalls commented 2 months ago

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