node-red-contrib-tak-registration
Version:
A Node-RED node to register to TAK and to help wrap files as datapackages to send to TAK
15 lines • 403 B
JavaScript
// index.ts
import { bbox } from "@turf/bbox";
import { point } from "@turf/helpers";
function center(geojson, options = {}) {
const ext = bbox(geojson);
const x = (ext[0] + ext[2]) / 2;
const y = (ext[1] + ext[3]) / 2;
return point([x, y], options.properties, options);
}
var turf_center_default = center;
export {
center,
turf_center_default as default
};
//# sourceMappingURL=index.js.map