Zoom into bounds limiting maximum level
This example displays circles on the map, which denote cities' population. By clicking on each circle you can zoom into it, but with different maximum zoom levels, depending on the circle size.
We are using the getBoundingBox
to retrieve object's bounds and then set it to the H.map.ViewModel
to achieve the best zoom level and map centre, and then perform a custom processing on it to limit maximum zoom level.