Mapbox-gl-js: `fitBounds` should be compatible with GeoJSON bbox

Created on 7 Dec 2015  路  1Comment  路  Source: mapbox/mapbox-gl-js

fitBounds (and by extension, LngLatBounds.convert) should be compatible with GeoJSON bbox, turf.extent, etc. I.e., it should accept a single four-element array in [w, s, e, n] order.

feature

Most helpful comment

Possibly fitBounds should also accept any GeoJSON and calculate the bounding box internally.

>All comments

Possibly fitBounds should also accept any GeoJSON and calculate the bounding box internally.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stevage picture stevage  路  3Comments

foundryspatial-duncan picture foundryspatial-duncan  路  3Comments

BernhardRode picture BernhardRode  路  3Comments

aendrew picture aendrew  路  3Comments

aaronlidman picture aaronlidman  路  3Comments