Skip to content

getExtentFromGeojson() ​

getExtentFromGeojson(geojson): Extent

This assumes the geometry is in EPSG:4326 TODO: support other CRSs

Parameters ​

ParameterTypeDescription
geojsonGeometry | FeatureCollection<Geometry | null, GeoJsonProperties> | Feature<Geometry | null, GeoJsonProperties>-

Returns ​

Extent