| 123456789101112131415161718192021222324 |
- import { Feature, Polygon } from 'geojson';
- import { AllGeoJSON } from '@turf/helpers';
- /**
- * Takes any number of features and returns a rectangular {@link Polygon} that encompasses all vertices.
- *
- * @function
- * @param {GeoJSON} geojson input features
- * @returns {Feature<Polygon>} a rectangular Polygon feature that encompasses all vertices
- * @example
- * var features = turf.featureCollection([
- * turf.point([-75.343, 39.984], {"name": "Location A"}),
- * turf.point([-75.833, 39.284], {"name": "Location B"}),
- * turf.point([-75.534, 39.123], {"name": "Location C"})
- * ]);
- *
- * var enveloped = turf.envelope(features);
- *
- * //addToMap
- * var addToMap = [features, enveloped];
- */
- declare function envelope(geojson: AllGeoJSON): Feature<Polygon>;
- export { envelope as default, envelope };
|