Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
max-zoom when fitting to data depends on geographic resolution
To avoid setting the bounds too small (e.g. if restricted to one country then we don't want to be at maximum zoom) we use hardcoded zoom levels which depend on the geo resolution. In the future these may be settable via the dataset JSON. Note that this does not change the max zoom level available when interacting with the map. See https://leafletjs.com/examples/zoom-levels/ for what a zoom level represents.
- Loading branch information