{"_id":"@bmap-turf/center","_rev":"3-9106338ccdb73f6cfb7b336db5b4b252","name":"@bmap-turf/center","dist-tags":{"latest":"6.4.2"},"versions":{"6.4.0":{"name":"@bmap-turf/center","version":"6.4.0","description":"turf center module","author":{"name":"Turf Authors"},"license":"MIT","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"homepage":"https://github.com/Turfjs/turf","repository":{"type":"git","url":"git://github.com/Turfjs/turf.git"},"publishConfig":{"access":"public"},"keywords":["centroid","geojson","gis","geospatial","geo","turf"],"main":"dist/js/index.js","module":"dist/es/index.js","exports":{"./package.json":"./package.json",".":{"import":"./dist/es/index.js","require":"./dist/js/index.js"}},"types":"dist/js/index.d.ts","sideEffects":false,"scripts":{"bench":"ts-node bench.js","build":"npm-run-all build:*","build:es":"tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json","build:js":"tsc","docs":"node ../../scripts/generate-readmes","test":"npm-run-all test:*","test:tape":"ts-node -r esm test.js","test:types":"tsc --esModuleInterop --noEmit types.ts"},"devDependencies":{"@turf/bbox-polygon":"^6.4.0","@turf/meta":"^6.4.0","@types/tape":"*","benchmark":"*","glob":"*","load-json-file":"*","npm-run-all":"*","tape":"*","ts-node":"*","tslint":"*","typescript":"*","write-json-file":"*"},"dependencies":{"@turf/bbox":"^6.4.0","@turf/helpers":"^6.4.0"},"_id":"@bmap-turf/center@6.4.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-LrkAXgvxxkf5dSlk6J/fMGvQ0uPBz1O8FGOdJtr8O+8ACuPZpD7TiBs9YpZNUn/Nly3Uu69YlmEHJbTyWE/q7w==","shasum":"6e2315d466abceb92dbbc38899b78d7ca12e2a86","tarball":"https://registry.npmjs.org/@bmap-turf/center/-/center-6.4.0.tgz","fileCount":3,"unpackedSize":4793,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0EVuCRA9TVsSAnZWagAAr+IP/1q3ykAI9/TqBb4dVET8\nRTBmtZuJlOOcwTBjxjC9UmN53W+2/yAROeftB7WPdSD+NDAm6GCJIkMQNnRs\n2f6NrqaaoOQYcXUtvAUNy+8ygtdfMlUA+Zen5bySzdYlsmFbWYGt+wWeV6Sl\nQjjylFwwp6eDeeqHNXH7oxjGJYfO61H5cPBsXaeWxerBlyHAMXehmYPfyPX+\nyIFSHb+MUsHQMW255XYLFs16N/CAFL4gmOFFGE9G9SZ1UfOC/oOxdF1XCxM8\n0UuBqvM3myUnaZwzR4iVEcLcvm8bG9SpNqxmf2Qp8RRI/p7hODoM8DbSK9Xo\n/XXFWj3RwMx+Gv20EmS2L1NXiIeCpGyv16kCpKev4kTbsE2lLtoPgZFKYmSX\ncjKGIfPM63ZmgIoSP3mHsTaL8NGfx/DYS12L13KuM1qb5BNCyyGw3UicNp/W\nfkL05NFVF+et/qBB4PpRVkG8v8mHPkxeQ6rFT+G3U9+Hs1UfdNnOqiZaH7Y7\nM+h0hyZpQ9dd6PU9EGtSGM+mlXuS4P2dgMl6xgG19JmHnig3+zCE9QpprDvJ\nz7KH6QCk82D0K2iaa/Yw5/KYgpZh//lABpEFUw0haoolRfmTc851mj5MnLXr\n5LFwsgv4da6RC3yuadSRXeLvewwJuxN0KLTOqr4esRWuQxDpoKADnCdf5BKn\n/5/O\r\n=Vt4/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCS7NsjI9nNkXNqQUwkOGo9HC5WtM9uag14zaRLavIeLwIhAN5N9LwnhMqLfVuGlVPr8vWhxgnjERrFtVwJza0w8/2R"}]},"_npmUser":{"name":"hedongran","email":"hdr01@126.com"},"directories":{},"maintainers":[{"name":"hedongran","email":"hdr01@126.com"},{"name":"ligaofeng0901","email":"983681735@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/center_6.4.0_1624261998118_0.9413163806504332"},"_hasShrinkwrap":false},"6.4.1":{"name":"@bmap-turf/center","version":"6.4.1","description":"turf center module","author":{"name":"Turf Authors"},"license":"MIT","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"homepage":"https://github.com/Turfjs/turf","repository":{"type":"git","url":"git://github.com/Turfjs/turf.git"},"publishConfig":{"access":"public"},"keywords":["centroid","geojson","gis","geospatial","geo","turf"],"main":"dist/js/index.js","module":"dist/es/index.js","exports":{"./package.json":"./package.json",".":{"import":"./dist/es/index.js","require":"./dist/js/index.js"}},"types":"dist/js/index.d.ts","sideEffects":false,"scripts":{"bench":"ts-node bench.js","build":"npm-run-all build:*","build:es":"tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json","build:js":"tsc","docs":"node ../../scripts/generate-readmes","test":"npm-run-all test:*","test:tape":"ts-node -r esm test.js","test:types":"tsc --esModuleInterop --noEmit types.ts"},"devDependencies":{"@turf/bbox-polygon":"^6.4.0","@turf/meta":"^6.4.0","@types/tape":"*","benchmark":"*","glob":"*","load-json-file":"*","npm-run-all":"*","tape":"*","ts-node":"*","tslint":"*","typescript":"*","write-json-file":"*"},"dependencies":{"@bmap-turf/bbox":"^6.4.1","@turf/helpers":"^6.4.0"},"_id":"@bmap-turf/center@6.4.1","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-g3OcA60GxEo3tiw74b7TqxqOpBz3MHrDhR/E/SbR0uC33MEuV4gzKwm6DYbgXkaF9si1u039i18bNpJY/Jg4KA==","shasum":"305777664939fdddf5a50e5cefb2cbb6e497de27","tarball":"https://registry.npmjs.org/@bmap-turf/center/-/center-6.4.1.tgz","fileCount":7,"unpackedSize":8720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0FAaCRA9TVsSAnZWagAATR0P/10dBjrpKLu6yL5TuXAr\neBsb378ask1yT7Ch+wa21T4BgLoqbuMPkKbwaJnrOLn/9seKtS2w2am2uABA\nQ+vF6HNO3kAmvP3hlEKMDAwXQPTLX1OQ8ewMubBiKoxltUqOYiY+RHJ86pKW\n9rlBvjJ1CMODYuK2YfcOcbVqp+XozLkX0CVKzYD/ltNf0eso9wEleWUKxjAC\nODIsWqHl3r6dLr+z2dtOhcg0dmWzGBbNcKiFolNmxZSq2bQrKTA3qIHP6Xug\nStXtCzVIFOsoFeX1F82PTm8wcmX+G1VYRLYTaiSTjPHd4lys7MvNgt7l+si3\ng2L0isfU2DKbXkBpy7WWy//VRCkyEi1kdQhd8QKfAh+cSEh/TEjL7PjwpFTM\nG00vVr1ls+bwe8dO43jeJKwtokslNBfb87trZL40lf69yMnnYEclNdCWqCcM\nnnH8BaHiYcNAUgjH9RoDTM/5670jcAcW5TIaNwx2OqmAbXS03zZJKzf2SnCr\nyxXG+qtxv6KT2BR8R84kMqjmhGEZV8uHKh7CRdVHvHrCK84EVA4X1qr8uAg1\nQ38pYqCgMCpBhW8ye0fR5zUuogLaYaEFLfJOs4VlcGrgiN/qW29tPe46RkMq\nVgm6XF+B4tMJM5jVcftfS97FBAtC+SI+8mWFTguIjNozG+iHM9zI2o1Agzoa\nVGaV\r\n=UaSO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB/a9nOqWFgqUl+oJgVknujNq+840mzsW+Vn/gCnUxiXAiBcApReot2OtSiOdyvZkFfSfUZ555Om/4PE2huBv/0i4A=="}]},"_npmUser":{"name":"hedongran","email":"hdr01@126.com"},"directories":{},"maintainers":[{"name":"hedongran","email":"hdr01@126.com"},{"name":"ligaofeng0901","email":"983681735@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/center_6.4.1_1624264730368_0.12050848571881856"},"_hasShrinkwrap":false},"6.4.2":{"name":"@bmap-turf/center","version":"6.4.2","description":"turf center module","author":{"name":"Turf Authors"},"license":"MIT","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"homepage":"https://github.com/Turfjs/turf","repository":{"type":"git","url":"git://github.com/Turfjs/turf.git"},"publishConfig":{"access":"public"},"keywords":["centroid","geojson","gis","geospatial","geo","turf"],"main":"dist/js/index.js","module":"dist/es/index.js","exports":{"./package.json":"./package.json",".":{"import":"./dist/es/index.js","require":"./dist/js/index.js"}},"types":"dist/js/index.d.ts","sideEffects":false,"scripts":{"bench":"ts-node bench.js","build":"npm-run-all build:*","build:es":"tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json","build:js":"tsc","docs":"node ../../scripts/generate-readmes","test":"npm-run-all test:*","test:tape":"ts-node -r esm test.js","test:types":"tsc --esModuleInterop --noEmit types.ts"},"devDependencies":{"@turf/bbox-polygon":"^6.4.0","@turf/meta":"^6.4.0","@types/tape":"*","benchmark":"*","glob":"*","load-json-file":"*","npm-run-all":"*","tape":"*","ts-node":"*","tslint":"*","typescript":"*","write-json-file":"*"},"dependencies":{"@bmap-turf/bbox":"^6.4.2","@turf/helpers":"^6.4.0"},"_id":"@bmap-turf/center@6.4.2","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-eTb0PPzpk7HjdJTzwldU79kwclsX6nLDnZM6gkD85Iz/r2MJCIE+u7nCUOqa+RAC93pg0h1oYYRhultEBOOZBQ==","shasum":"0093de70d84ca948634b5f7eae19611902c2fe61","tarball":"https://registry.npmjs.org/@bmap-turf/center/-/center-6.4.2.tgz","fileCount":7,"unpackedSize":8720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0GK/CRA9TVsSAnZWagAAWnsQAIhcK8P0qJDfJ7vR/EFm\nzXxhjGzHIZVJdka52EU1/qIhFPcK0+rKAog/9i5OfvBtvy3L5r0tbIBUNVfP\ncPqksi2AAXF1Y7PUXyBD7IObEU8F2MVJmMtA2cdGOE/wfQdvrDVSNk9aquv1\nmCpo62ShiIfXf7yV/se6Gy2hERccOPW1vBzPochANBrks5SWD5jZw43pGPBU\n9hxjCnnQvlm6Qd9VyLm3tbsqSoMegbfr9R7JIqWitT/QzcNN5bYEbXHvzPEk\nmbU5q09+vlCJnHtAtTOeUPui14BGndPE7UByrIvbsrFbwdhsf4j9t3xokfWP\nGByIgI9MoANIQ0ufZV0y/LsmK+LsCZO3VTOK+EvEZ7D7VSD7jPJbGaOLDt/P\nQw8d+/a7ERqufjOeQX6/LvuZOjcuhTJr2jeDlBKNX2vuRMvmcHNidVkPrn0Y\nZN1h1rlbeLY/1T/HTHcDu/72kA657ynp76IfonTP9AEiUrkPkXg6kuAqVQfx\n+CXFb4dlGEeKHwlnzKV46UxJT88kG/GNlD92GcegzW0UQYjr+W7rCXEODdaX\nfhJCG7UBKgMXK5I7pCpkiNLtLoxRAxeewTXJ2OMSHc5sdRLlFX7x7XBqcpit\npEnrH2bQ5BNTheCxwEA6I34OCfw1l6zvSRuVUNPBi5cKqupwqyjQK1E/x2cO\nX3ZU\r\n=HPz5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3aAfC9rUgHsfJ1bE434ML1uwFGmrqVAUQN1BKdP/5bgIgYFscVStVulSnAYHPbmhPPz9e6Lcwa5TkFRhdznwvXHw="}]},"_npmUser":{"name":"hedongran","email":"hdr01@126.com"},"directories":{},"maintainers":[{"name":"hedongran","email":"hdr01@126.com"},{"name":"ligaofeng0901","email":"983681735@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/center_6.4.2_1624269502906_0.7667464459843285"},"_hasShrinkwrap":false}},"time":{"created":"2021-06-21T07:53:17.768Z","6.4.0":"2021-06-21T07:53:18.236Z","modified":"2022-04-04T19:51:40.913Z","6.4.1":"2021-06-21T08:38:50.550Z","6.4.2":"2021-06-21T09:58:23.036Z"},"maintainers":[{"name":"hedongran","email":"hdr01@126.com"},{"name":"ligaofeng0901","email":"983681735@qq.com"}],"description":"turf center module","homepage":"https://github.com/Turfjs/turf","keywords":["centroid","geojson","gis","geospatial","geo","turf"],"repository":{"type":"git","url":"git://github.com/Turfjs/turf.git"},"author":{"name":"Turf Authors"},"bugs":{"url":"https://github.com/Turfjs/turf/issues"},"license":"MIT","readme":"# @turf/center\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## center\n\nTakes a [Feature][1] or [FeatureCollection][2] and returns the absolute center point of all features.\n\n**Parameters**\n\n-   `geojson` **[GeoJSON][3]** GeoJSON to be centered\n-   `options` **[Object][4]** Optional parameters (optional, default `{}`)\n    -   `options.properties` **[Object][4]** Translate GeoJSON Properties to Point (optional, default `{}`)\n    -   `options.bbox` **[Object][4]** Translate GeoJSON BBox to Point (optional, default `{}`)\n    -   `options.id` **[Object][4]** Translate GeoJSON Id to Point (optional, default `{}`)\n\n**Examples**\n\n```javascript\nvar features = turf.points([\n  [-97.522259, 35.4691],\n  [-97.502754, 35.463455],\n  [-97.508269, 35.463245]\n]);\n\nvar center = turf.center(features);\n\n//addToMap\nvar addToMap = [features, center]\ncenter.properties['marker-size'] = 'large';\ncenter.properties['marker-color'] = '#000';\n```\n\nReturns **[Feature][5]&lt;[Point][6]>** a Point feature at the absolute center point of all input features\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.3\n\n[3]: https://tools.ietf.org/html/rfc7946#section-3\n\n[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[5]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[6]: https://tools.ietf.org/html/rfc7946#section-3.1.2\n\n<!-- This file is automatically generated. Please don't edit it directly:\nif you find an error, edit the source file (likely index.js), and re-run\n./scripts/generate-readmes in the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](http://turfjs.org/), an open source\nmodule collection dedicated to geographic algorithms. It is maintained in the\n[Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create\nPRs and issues.\n\n### Installation\n\nInstall this module individually:\n\n```sh\n$ npm install @turf/center\n```\n\nOr install the Turf module that includes it as a function:\n\n```sh\n$ npm install @turf/turf\n```\n","readmeFilename":"README.md"}