You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[GeoJSON Map Fit Mercator](https://tristandavey.com/geojson-map-fit-mercator/) finds the optimal bearing, zoom and
8
+
[GeoJSON Map Fit Mercator](https://tjdavey.github.io/geojson-map-fit-mercator/) finds the optimal bearing, zoom and
9
9
center point for fitting a set of [GeoJSON](https://geojson.org/) features in a
10
10
[Mapbox GL](https://docs.mapbox.com/mapbox-gl-js/guides) or [MapLibre GL](https://maplibre.org/) viewport. The optimal
11
11
viewport is calculated by determining the optimal bearing and zoom level to present a
12
12
[minimum bounding rectangle (MBR)](https://en.wikipedia.org/wiki/Minimum_bounding_rectangle) all the given GeoJSON
13
13
features. This can allow you to render more detailed, better fitting maps than the default [bounding box](https://docs.mapbox.com/help/glossary/bounding-box/)
14
14
behaviour which only describes a x/y aligned minimum bounding rectangle.
15
15
16
-
Checkout the [demo](https://tristandavey.com/geojson-map-fit-mercator#preview) to see the library in action.
16
+
Checkout the [demo](https://tjdavey.github.io/geojson-map-fit-mercator/#preview) to see the library in action.
0 commit comments