How to use @turf/square - 1 common examples

To help you get started, we’ve selected a few @turf/square examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Turfjs / turf / packages / turf-line-split / index.js View on Github external
results.forEach(function (feature) {
                if (!feature.bbox) feature.bbox = square(bbox(feature));
            });
            tree.load(featureCollection(results));

@turf/square

Takes a bounding box and calculates the minimum square bounding box that would contain the input.

MIT
Latest version published 11 days ago

Package Health Score

87 / 100
Full package analysis

Popular @turf/square functions