{"_id":"@20tab/react-leaflet-resetview","_rev":"4-3e1ae92fefdbb89b30ea97d460385d1b","name":"@20tab/react-leaflet-resetview","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0-beta":{"name":"@20tab/react-leaflet-resetview","version":"1.0.0-beta","description":"react-leaflet control for resetting the map view","main":"./dist/esm/ResetViewControl.js","types":"./dist/types/ResetViewControl.d.ts","scripts":{"test":"jest","build:esm":"tsc","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/20tab/react-leaflet-resetview.git"},"keywords":["react","leaflet","react-leaflet","react-leaflet-v3","react-leaflet-control","react-leaflet-resetview"],"author":{"name":"Valentino Gagliardi","email":"valentino@20tab.com","url":"https://www.20tab.com/en/"},"license":"MIT","bugs":{"url":"https://github.com/20tab/react-leaflet-resetview/issues"},"homepage":"https://github.com/20tab/react-leaflet-resetview#readme","devDependencies":{"@testing-library/dom":"^8.11.1","@testing-library/react":"^12.1.2","@testing-library/user-event":"^13.5.0","@types/jest":"^27.0.2","@types/leaflet":"^1.7.6","@types/react":"^17.0.35","husky":"^7.0.4","jest":"^27.3.1","leaflet":"^1.7.1","prettier":"^2.4.1","react":"^17.0.2","react-dom":"^17.0.2","react-leaflet":"^3.2.2","ts-jest":"^27.0.7","ts-node":"^10.4.0","typescript":"^4.5.2"},"peerDependencies":{"leaflet":"^1.7.1","react":"^17.0.2","react-dom":"^17.0.2","react-leaflet":"^3.2.2"},"gitHead":"c93caa41dbd7a8c4579083002a5e657328d47d49","_id":"@20tab/react-leaflet-resetview@1.0.0-beta","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-W/xUsflECC9ZmGiXA0cS6PErzuXCq69p9CVEGl3H05r72pWoOgYRYzMqZqGC7QzWUmE8TwmYYQXztoD93WnfAg==","shasum":"10d2dc53e9aff9873b64015ec193abd310f2fb72","tarball":"https://registry.npmjs.org/@20tab/react-leaflet-resetview/-/react-leaflet-resetview-1.0.0-beta.tgz","fileCount":5,"unpackedSize":5597,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlj0GCRA9TVsSAnZWagAAaykP/RWd2x/RDrB+f48NECGO\n0tkRtteoBFBwtoamdGlIQXz5SYvXSTmdEy4rZumzz64CXC1Vs4SpgRmKrFNA\nurVCSiNjgc8BVbWxBI0WtBmZprEQyFlsrgAGggx1GVi10ZVW4FzpCLRL+M/w\nCSMAwkYo3qOOVqsAXuN/pfDKThJPxub/q5xEOlmVnZY7MhE280ewrf4pZWaN\nJMBLQ1RGaDEohD7xi+BRFx2KGVwpXoqOGsRleV8brX0rBsccomxnA+1vPAST\nsT7xLt7Zk+nVlztHIYmQPu88w3HGRwoRKFlGbSM08dhWsNhSzB0soTR5L8O2\n70AmeaO/LB6AVV9KQbwbl9mHBrHLWQ5bju2Ug1uOHxTokoOpyetC+VG0uyQq\npEC+WTHh3KUY6QOtKn7iwNkWHaq5uyULThxMf9KWd2SCa6UMLZpkHaVILm9M\nxKBQ2qF/SsdxN+FEQBzmY9VQePshMc7njSNL7euAvZ9DkKdefTIJzXBGPoQu\nhMpY7aNwNcTa7X6O80rJnhwK8y3n7e5J1/8mLp625K/7akuGkxql1hy0wPnU\nRFdYf9AGxjxaMM5IbTvKKzkIux++gBY5g9+R4xnAHSXZQ9cOz5Q2hSVKsZ6f\na3QAkNcJ4BIyJO4u/jKfd7LMrtHKQUgaezmyq8YI4hhaMRAiTw8+shlMmUcS\nNF46\r\n=YkjY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGoJlsWB8sgnLcnacGHGCG0PfdiBhrIb24xAgJhEsKXqAiAeCb4t5U1mzHPO7CJ1PcCYKY7ypYDMyw0dFAufwnQCZw=="}]},"_npmUser":{"name":"valentinog","email":"valentino@valentinog.com"},"directories":{},"maintainers":[{"name":"daniele20tab","email":"daniele@20tab.com"},{"name":"pauloxnet","email":"paolo@melchiorre.org"},{"name":"moreno_20tab","email":"moreno@20tab.com"},{"name":"valentinog","email":"valentino@valentinog.com"},{"name":"gabbork","email":"gabriele@20tab.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-leaflet-resetview_1.0.0-beta_1637235974084_0.8375458022297191"},"_hasShrinkwrap":false},"1.0.0":{"name":"@20tab/react-leaflet-resetview","version":"1.0.0","description":"react-leaflet control for resetting the map view","main":"./dist/esm/ResetViewControl.js","types":"./dist/types/ResetViewControl.d.ts","scripts":{"test":"jest","build:esm":"tsc","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/20tab/react-leaflet-resetview.git"},"keywords":["react","leaflet","react-leaflet","react-leaflet-v3","react-leaflet-control","react-leaflet-resetview"],"author":{"name":"Valentino Gagliardi","email":"valentino@20tab.com","url":"https://www.20tab.com/en/"},"license":"MIT","bugs":{"url":"https://github.com/20tab/react-leaflet-resetview/issues"},"homepage":"https://github.com/20tab/react-leaflet-resetview#readme","devDependencies":{"@testing-library/dom":"^8.11.1","@testing-library/jest-dom":"^5.15.0","@testing-library/react":"^12.1.2","@testing-library/user-event":"^13.5.0","@types/jest":"^27.0.2","@types/leaflet":"^1.7.6","@types/react":"^17.0.35","husky":"^7.0.4","jest":"^27.3.1","leaflet":"^1.7.1","prettier":"^2.4.1","react":"^17.0.2","react-dom":"^17.0.2","react-leaflet":"^3.2.2","ts-jest":"^27.0.7","ts-node":"^10.4.0","typescript":"^4.5.2"},"peerDependencies":{"leaflet":"^1.7.1","react":"^17.0.2","react-dom":"^17.0.2","react-leaflet":"^3.2.2"},"jest":{"preset":"ts-jest","testEnvironment":"jsdom","collectCoverage":true,"collectCoverageFrom":["./src/**"],"coverageThreshold":{"global":{"lines":90}}},"gitHead":"861767cdeb883f080d5ae16abec7d431ef57a884","_id":"@20tab/react-leaflet-resetview@1.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-Zlzhk4hoUbXZYeDFn5IEeQTwDjQ4VQ4QYGFqiP/U0spHdFEnKuxEIpMekCuriPIcZa9pM92z7SEMTrsr5Ktu2Q==","shasum":"960bb3100cb65368bbee74dffc70d898d87ed135","tarball":"https://registry.npmjs.org/@20tab/react-leaflet-resetview/-/react-leaflet-resetview-1.0.0.tgz","fileCount":5,"unpackedSize":6593,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEHejydzgfowB5v4OkAzVuRsu6LyvgWxJsLAft4CH5FgIgY3aIFwYk5NSDGRf3Ub4aNjwLH3YHp9wt90Pd7GFFHzc="}]},"_npmUser":{"name":"valentinog","email":"valentino@valentinog.com"},"directories":{},"maintainers":[{"name":"daniele20tab","email":"daniele@20tab.com"},{"name":"pauloxnet","email":"paolo@melchiorre.org"},{"name":"moreno_20tab","email":"moreno@20tab.com"},{"name":"valentinog","email":"valentino@valentinog.com"},{"name":"gabbork","email":"gabriele@20tab.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-leaflet-resetview_1.0.0_1637243056015_0.9350493562867854"},"_hasShrinkwrap":false},"1.0.1":{"name":"@20tab/react-leaflet-resetview","version":"1.0.1","description":"react-leaflet control for resetting the map view","main":"./dist/esm/ResetViewControl.js","types":"./dist/types/ResetViewControl.d.ts","scripts":{"test":"jest","build:esm":"tsc","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/20tab/react-leaflet-resetview.git"},"keywords":["react","leaflet","react-leaflet","react-leaflet-v3","react-leaflet-control","react-leaflet-resetview"],"author":{"name":"Valentino Gagliardi","email":"valentino@20tab.com","url":"https://www.20tab.com/en/"},"license":"MIT","bugs":{"url":"https://github.com/20tab/react-leaflet-resetview/issues"},"homepage":"https://github.com/20tab/react-leaflet-resetview#readme","devDependencies":{"@testing-library/dom":"^8.11.1","@testing-library/jest-dom":"^5.15.0","@testing-library/react":"^12.1.2","@testing-library/user-event":"^13.5.0","@types/jest":"^27.0.2","@types/leaflet":"^1.7.6","@types/react":"^17.0.35","husky":"^7.0.4","jest":"^27.3.1","leaflet":"^1.7.1","prettier":"^2.4.1","react":"^17.0.2","react-dom":"^17.0.2","react-leaflet":"^3.2.2","ts-jest":"^27.0.7","ts-node":"^10.4.0","typescript":"^4.5.2"},"peerDependencies":{"leaflet":"^1.7.1","react":"^17.0.2","react-dom":"^17.0.2","react-leaflet":"^3.2.2"},"jest":{"preset":"ts-jest","testEnvironment":"jsdom","collectCoverage":true,"collectCoverageFrom":["./src/**"],"coverageThreshold":{"global":{"lines":90}}},"gitHead":"1e5d9705ce30af39e07fe333391d48617ef79dda","_id":"@20tab/react-leaflet-resetview@1.0.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-qPdoVMBCBjhrZ/w0aU9+4CuZkdapQvy3tctmk7mH372x236e5xsDMwALKIy9S3QwBpuQkzBSgHRggB1MDpILqA==","shasum":"4e5a0fdd0eb3de9c29f13b6d83041980cae4b5c2","tarball":"https://registry.npmjs.org/@20tab/react-leaflet-resetview/-/react-leaflet-resetview-1.0.1.tgz","fileCount":5,"unpackedSize":6817,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlnOOCRA9TVsSAnZWagAAcmkP/3nRYZq0GzvdxiHQMyCE\ncLOABxX9uPXebFL7RQQHlEzqrPvS+iy5XSn4hlo4E8IW5hpRFG9tCsRMUBgZ\nXOWEaNjHSvTSBx6rpvR2KiCJZqD5LHzZCU5AD0px/zaAAVBZhzApQElYa3ri\nYK+ZE2nOQB7+NBjftxfA/UTcDSQPY7RbBD0WHR2i+ip2gilqfWJ/QcShCDZp\nntnNS/ssy75YwXqaORnnAJqfz7jLmnoJN51GOA84O9iXyO2qgSbXE8zM8JYP\n6ZtaVh0uvu9q06UlWyL/98gZvn53HpBnkdNW+/oxa22bV3yqiS48P8cW/gL0\nhTxoZiV8J/19XA5nd2sErsHzl88VII3LjJd+W0BZhKqFqH+uTpJf5bpeol7p\nfs5SxiAkFBxCbxMkV3f/okj0wttqgL7YX/EKwalYwONBwr1BeL/YfDNYrVAe\nOxj5QS2eTrItloLsfx/I3Rqc7DMwORqI/rUBGQC+9UofJq7jgk5ceKdIutEE\nEqvoYwhxPSf31xJprfnnd+kVe4zjfle5SOrFmwo/AnYERq4RXUqfu7fu1WrJ\npP57HxRcH1KNpK5gMb4v/sqG+hsHYD2uWG9MYLBnmI7b8b0TXWOwZa95DJTL\ntm/v+nS7iHzdF+tTZAGvgxu207jF4seBCKkStsrjlkGSMQu557q6qYm01hWb\n6yvT\r\n=HwdL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICi1pWlPuNq24XZ/jBn99Jp/QQX7GepRUp5jFTmywKgYAiEAsZQ/gcsl9S34f6BNN7sqZsM1pQfnxbJNJ9MPWDOyXeE="}]},"_npmUser":{"name":"valentinog","email":"valentino@valentinog.com"},"directories":{},"maintainers":[{"name":"daniele20tab","email":"daniele@20tab.com"},{"name":"pauloxnet","email":"paolo@melchiorre.org"},{"name":"moreno_20tab","email":"moreno@20tab.com"},{"name":"valentinog","email":"valentino@valentinog.com"},{"name":"gabbork","email":"gabriele@20tab.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-leaflet-resetview_1.0.1_1637249934775_0.4944740979666291"},"_hasShrinkwrap":false},"1.1.0":{"name":"@20tab/react-leaflet-resetview","version":"1.1.0","description":"react-leaflet control for resetting the map view","main":"./dist/esm/ResetViewControl.js","types":"./dist/types/ResetViewControl.d.ts","scripts":{"test":"jest","build:esm":"tsc","prepare":"husky install","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/20tab/react-leaflet-resetview.git"},"keywords":["react","leaflet","react-leaflet","react-leaflet-v3","react-leaflet-v4","react-leaflet-control","react-leaflet-resetview"],"author":{"name":"Valentino Gagliardi","email":"valentino@20tab.com","url":"https://www.20tab.com/en/"},"license":"MIT","bugs":{"url":"https://github.com/20tab/react-leaflet-resetview/issues"},"homepage":"https://github.com/20tab/react-leaflet-resetview#readme","devDependencies":{"@babel/preset-env":"^7.16.11","@babel/preset-react":"^7.16.7","@babel/preset-typescript":"^7.16.7","@testing-library/dom":"^8.11.1","@testing-library/jest-dom":"^5.15.0","@testing-library/react":"^13.1.1","@testing-library/user-event":"^13.5.0","@types/jest":"^27.0.2","@types/leaflet":"^1.7.6","@types/react":"^17.0.35","@typescript-eslint/eslint-plugin":"^5.20.0","@typescript-eslint/parser":"^5.20.0","eslint":"^8.13.0","husky":"^7.0.4","jest":"^27.3.1","leaflet":"^1.8.0","prettier":"^2.4.1","react":"^18.0.0","react-dom":"^18.0.0","react-leaflet":"^4.0.0","typescript":"^4.6.3"},"peerDependencies":{"leaflet":"^1.8.0","react":"^18.0.0","react-dom":"^18.0.0","react-leaflet":"^4.0.0"},"jest":{"testEnvironment":"jsdom","collectCoverage":true,"collectCoverageFrom":["./src/**"],"coverageThreshold":{"global":{"lines":90}},"transformIgnorePatterns":["/node_modules/(?!(@react-leaflet|react-leaflet)/)"]},"eslintConfig":{"parser":"@typescript-eslint/parser","plugins":["@typescript-eslint"],"env":{"node":true},"extends":["eslint:recommended","plugin:@typescript-eslint/recommended"],"rules":{"@typescript-eslint/consistent-type-imports":"error"}},"eslintIgnore":["node_modules","dist"],"gitHead":"cee470a71b370ed346e49b366b49c741ffe0629e","_id":"@20tab/react-leaflet-resetview@1.1.0","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-EcFm3YEjO3OCZ6QZiPJLSf7SI10zDR6HpNAUifNKI6uvx1Jbp5lYvc4t3OQei+b2m85C4S+HhSVP1ZkMzbXBcw==","shasum":"a2d1bbe7e678cfb91f75c795ff0d7e6824d7fef5","tarball":"https://registry.npmjs.org/@20tab/react-leaflet-resetview/-/react-leaflet-resetview-1.1.0.tgz","fileCount":5,"unpackedSize":7547,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoPi7oNKfWbHSemaLchze4bN9pYGRdb5vwjhmrKWfP3AIhAKQjdtUUEWWGyF3Kpf8w4nag562X78CGNi/VHxLMifgY"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYraEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmprOg//aL6zv8cl9CELfUXBlKS5V7tArWq0x2okMYrH5Elt9K8Aoiv5\r\nyYwcCuyA9dmpI0nftMY4FdG6jdM6ZY24hMwVXcPPG3NanKhTteyQNwQTQ0Ea\r\n/bpF+g/BNDzda15zVjRPwSppcA6BRGFZ9Ce3DZDNAx8G0U+LSfF6dE/OvKXN\r\nR2DIujoV1ayAmegy4TigMXTy9FaAwhdsDIRurlmuzIvWw88RU89tgpX6tl3B\r\nzSz2xihEpPWLa0rHhVrrvJMnjjcrFM6VioErVDgPvf4k4Oax+beGaFYjyh/z\r\nu39R4j/J1oNsAY47xbVgDQnJ9h9QXISLdki7OAB5iokWyuM6+bkbbecc6mAt\r\nn06H/1lSUVZc9kU4ag6bSsNL46+rcXye9YEY+dE5kEABCREfV/gmStzm+cmJ\r\nSfIpynURX1FRq+YQ4+dUdy/e72Cza++pJI5OBiUsGE5W/EyNtUulIT8PeX0C\r\n1g1KQ77h/7y/JryX2JiLX85JRWMxlQhDvPsoXnM8pObb7VcprAqkBvnKyV9C\r\nsCLUH9eqLJ1Ez6e2cETXFjyH+zq167re1wS94hCEoGnd8yRedqSsu4VghWcE\r\nSpgC15Z1wd1AU+o8ngpjSLFARAhWzOTZkF2WIds8WA3OHb+aWFu3pZlsa44V\r\n+IHHI3qdqk6JJ0sBl1YoutLF6ehkO0tHLpY=\r\n=NXZ5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"valentinog","email":"valentino@valentinog.com"},"directories":{},"maintainers":[{"name":"daniele20tab","email":"daniele@20tab.com"},{"name":"pauloxnet","email":"paolo@melchiorre.org"},{"name":"moreno_20tab","email":"moreno@20tab.com"},{"name":"valentinog","email":"valentino@valentinog.com"},{"name":"gabbork","email":"gabriele@20tab.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-leaflet-resetview_1.1.0_1650636420494_0.020777307787320565"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-18T11:46:14.009Z","1.0.0-beta":"2021-11-18T11:46:14.368Z","modified":"2022-04-22T14:07:00.888Z","1.0.0":"2021-11-18T13:44:16.438Z","1.0.1":"2021-11-18T15:38:54.921Z","1.1.0":"2022-04-22T14:07:00.652Z"},"maintainers":[{"name":"daniele20tab","email":"daniele@20tab.com"},{"name":"pauloxnet","email":"paolo@melchiorre.org"},{"name":"moreno_20tab","email":"moreno@20tab.com"},{"name":"valentinog","email":"valentino@valentinog.com"},{"name":"gabbork","email":"gabriele@20tab.com"}],"description":"react-leaflet control for resetting the map view","homepage":"https://github.com/20tab/react-leaflet-resetview#readme","keywords":["react","leaflet","react-leaflet","react-leaflet-v3","react-leaflet-v4","react-leaflet-control","react-leaflet-resetview"],"repository":{"type":"git","url":"git+https://github.com/20tab/react-leaflet-resetview.git"},"author":{"name":"Valentino Gagliardi","email":"valentino@20tab.com","url":"https://www.20tab.com/en/"},"bugs":{"url":"https://github.com/20tab/react-leaflet-resetview/issues"},"license":"MIT","readme":"# react-leaflet-resetview\n> react-leaflet control for resetting the map view\n\n## Installation\n\nYou can install `react-leaflet-resetview` with NPM:\n\n```bash\nnpm i @20tab/react-leaflet-resetview\n```\n\nOr with YARN:\n\n```bash\nyarn add @20tab/react-leaflet-resetview\n```\n\n## Usage\n\n```typescript jsx\nimport MapContainer from \"react-leaflet\";\nimport ResetViewControl from '@20tab/react-leaflet-resetview';\n\nconst Map = () => {\n    return (\n        <MapContainer zoom={5} center={[-96.8716348, 32.8205866]}>\n            <ResetViewControl \n                title=\"Reset view\"\n                icon=\"url(/some/relative/path.png)\"\n            />\n        </MapContainer>\n    );\n};\n```\n\n## Props\n\n| Name       | Type                                                                 | Default      | Description                        |\n|------------|----------------------------------------------------------------------|--------------|------------------------------------|\n| position?   | [ControlOptions](https://leafletjs.com/reference.html#control-position) | \"topleft\" | The position of the control        |\n| title?  | string                                                                  | \"Reset map view\"    | The control title.       |\n| icon?     | string                                                | \"\\u2610\"    | The control icon. Can be either a path for `url()` or a unicode character. |\n\n\n","readmeFilename":"README.md"}