{"id":17172876,"url":"https://github.com/20tab/react-leaflet-resetview","last_synced_at":"2025-04-13T16:12:47.050Z","repository":{"id":41953360,"uuid":"429390960","full_name":"20tab/react-leaflet-resetview","owner":"20tab","description":"react-leaflet control for resetting the map view","archived":false,"fork":false,"pushed_at":"2022-06-07T10:49:40.000Z","size":169,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T16:12:40.834Z","etag":null,"topics":["leaflet","leaflet-control","leafletjs","react","react-leaflet","react-leaflet-control","react-leaflet-resetview","react-leaflet-v3","react-leaflet-v4"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@20tab/react-leaflet-resetview","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/20tab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-18T10:44:35.000Z","updated_at":"2024-04-29T08:03:11.000Z","dependencies_parsed_at":"2022-08-12T00:30:49.529Z","dependency_job_id":null,"html_url":"https://github.com/20tab/react-leaflet-resetview","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Freact-leaflet-resetview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Freact-leaflet-resetview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Freact-leaflet-resetview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Freact-leaflet-resetview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/20tab","download_url":"https://codeload.github.com/20tab/react-leaflet-resetview/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741195,"owners_count":21154255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["leaflet","leaflet-control","leafletjs","react","react-leaflet","react-leaflet-control","react-leaflet-resetview","react-leaflet-v3","react-leaflet-v4"],"created_at":"2024-10-14T23:48:34.293Z","updated_at":"2025-04-13T16:12:47.029Z","avatar_url":"https://github.com/20tab.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-leaflet-resetview\n\u003e 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 = () =\u003e {\n    return (\n        \u003cMapContainer zoom={5} center={[-96.8716348, 32.8205866]}\u003e\n            \u003cResetViewControl \n                title=\"Reset view\"\n                icon=\"url(/some/relative/path.png)\"\n            /\u003e\n        \u003c/MapContainer\u003e\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F20tab%2Freact-leaflet-resetview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F20tab%2Freact-leaflet-resetview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F20tab%2Freact-leaflet-resetview/lists"}