{"id":19364019,"url":"https://github.com/cyclingbyte/leaflet.sidepanel","last_synced_at":"2025-06-13T23:35:01.170Z","repository":{"id":254598610,"uuid":"847018812","full_name":"cyclingbyte/Leaflet.SidePanel","owner":"cyclingbyte","description":"Slide side panel plugin for Leaflet","archived":false,"fork":false,"pushed_at":"2025-06-09T08:22:43.000Z","size":438,"stargazers_count":2,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T10:45:53.763Z","etag":null,"topics":["leaflet","leaflet-plugin","leaflet-sidebar","leaflet-sidepanel","leafletjs"],"latest_commit_sha":null,"homepage":"https://cyclingbyte.github.io/Leaflet.SidePanel/","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/cyclingbyte.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-08-24T16:05:19.000Z","updated_at":"2025-05-08T10:05:28.000Z","dependencies_parsed_at":"2024-09-18T10:57:15.859Z","dependency_job_id":"9468f928-88ce-4751-954b-b17d3375779f","html_url":"https://github.com/cyclingbyte/Leaflet.SidePanel","commit_stats":null,"previous_names":["cyclingbyte/leaflet.sidepanel"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/cyclingbyte/Leaflet.SidePanel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyclingbyte%2FLeaflet.SidePanel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyclingbyte%2FLeaflet.SidePanel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyclingbyte%2FLeaflet.SidePanel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyclingbyte%2FLeaflet.SidePanel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cyclingbyte","download_url":"https://codeload.github.com/cyclingbyte/Leaflet.SidePanel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyclingbyte%2FLeaflet.SidePanel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259737427,"owners_count":22903839,"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-plugin","leaflet-sidebar","leaflet-sidepanel","leafletjs"],"created_at":"2024-11-10T07:36:07.772Z","updated_at":"2025-06-13T23:35:01.087Z","avatar_url":"https://github.com/cyclingbyte.png","language":"TypeScript","readme":"[![npm version](https://img.shields.io/npm/v/leaflet.sidepanel)](https://www.npmjs.com/package/leaflet.sidepanel)\n[![npm downloads](https://img.shields.io/npm/dt/leaflet.sidepanel)](https://www.npmjs.com/package/leaflet.sidepanel)\n[![npm license](https://img.shields.io/npm/l/leaflet.sidepanel)](https://github.com/cyclingbyte/leaflet.sidepanel?tab=MIT-1-ov-file#readme)\n![last commit](https://img.shields.io/github/last-commit/cyclingbyte/Leaflet.SidePanel)\n[![npm dependents](https://img.shields.io/librariesio/dependents/npm/leaflet.sidepanel)](https://www.npmjs.com/package/leaflet.sidepanel?activeTab=dependents)\n\u003cimg src=\"./examples/assets/language-typescript.svg\" height=\"24px\" /\u003e\n\n\u003c!-- [![jsdelivr downloads](https://data.jsdelivr.com/v1/package/npm/leaflet.sidepanel/badge?style=rounded)](https://www.jsdelivr.com/package/npm/leaflet.sidepanel) --\u003e\n\u003c!-- ![git stars](https://img.shields.io/github/stars/cyclingbyte/Leaflet.SidePanel) --\u003e\n\n# Leaflet.SidePanel\n\nSlide side panel plugin for [Leaflet](https://leafletjs.com/ 'Leaflet Homepage')\n\nThis repository is a copy of [maxwell-ilai/Leaflet.SidePanel](https://github.com/maxwell-ilai/Leaflet.SidePanel 'Leaflet.SidePanel by maxwell-ilai')\n\n## Demo\n\nYou can find a demo [here](https://cyclingbyte.github.io/Leaflet.SidePanel/ 'Demo for Leaflet.SidePanel')\n\n## Prerequirements\n\n- [leaflet](https://github.com/Leaflet/Leaflet) (v1.0.0 or higher)\n  (Tested with 1.8.0)\n\n## Installation\n\n```sh\n# NPM\nnpm i leaflet.sidepanel\n\n# yarn\nyarn add leaflet.sidepanel\n\n# pnpm\npnpm i leaflet.sidepanel\n```\n\nOr include the script and css in your html file\n\n```html\n\u003clink\n  rel=\"stylesheet\"\n  href=\"https://cdn.jsdelivr.net/npm/leaflet.sidepanel@1.2.2/dist/style.css\"\n/\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/leaflet.sidepanel@1.2.2\"\u003e\u003c/script\u003e\n```\n\n## Options\n\n- panelPosition: _'left' (default)_ | 'right' [string]\n- hasTabs: _true (default)_ | false [boolean]\n- tabsPosition: _'top' (default)_ | 'right' | 'bottom' | 'left' [string]\n- darkMode: true | _false (default)_ [boolean]\n- pushControls: true | _false (default)_ [boolean]\u003cbr /\u003e\n  Shifts the map controls (like zoom) when the side panels open, to keep them visible and usabe\n- defaultTab: _1 (default)_ [number | string]\n- size: _'400px' (dafault)_ [string] (everything that can be used for width/higth in css)\n- onTabClick(tabLink: HTMLElement): void\u003cbr /\u003e\n  executed when a tab is clicked, passed the link as argument\n- onToggle(opened: boolean): void\u003cbr /\u003e\n  executed when the sidebar opened or closed\n\n## Usage\n\n### Javascript\n\n```javascript\nimport L from 'leaflet';\nimport 'leaflet.sidepanel';\nimport 'leaflet.sidepanel/dist/style.css';\n\nconst panelRight = L.control\n  .sidepanel('panelID', {\n    panelPosition: 'right',\n    hasTabs: false,\n    tabsPosition: 'top',\n    pushControls: true,\n    darkMode: true,\n    defaultTab: 'tab-5',\n  })\n  .addTo(map);\n```\n\n### Html\n\n```html\n\u003cdiv id=\"panelID\" class=\"sidepanel\" aria-label=\"side panel\" aria-hidden=\"false\"\u003e\n  \u003cdiv class=\"sidepanel-inner-wrapper\"\u003e\n    \u003cnav class=\"sidepanel-tabs-wrapper\" aria-label=\"sidepanel tab navigation\"\u003e\n      \u003cul class=\"sidepanel-tabs\"\u003e\n        \u003cli class=\"sidepanel-tab\"\u003e\n          \u003ca href=\"#\" class=\"sidebar-tab-link\" role=\"tab\" data-tab-link=\"tab-1\"\u003e\n            \u003c!-- [You can also use images / icons] --\u003e\n            Tab 1\n          \u003c/a\u003e\n        \u003c/li\u003e\n        \u003c!-- [...] --\u003e\n      \u003c/ul\u003e\n    \u003c/nav\u003e\n    \u003cdiv class=\"sidepanel-content-wrapper\"\u003e\n      \u003cdiv class=\"sidepanel-content\"\u003e\n        \u003cdiv class=\"sidepanel-tab-content\" data-tab-content=\"tab-1\"\u003e\n          \u003cp\u003eContent 1.\u003c/p\u003e\n        \u003c/div\u003e\n        \u003c!-- [...] --\u003e\n      \u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n  \u003cdiv class=\"sidepanel-toggle-container\"\u003e\n    \u003cbutton\n      class=\"sidepanel-toggle-button\"\n      type=\"button\"\n      aria-label=\"toggle side panel\"\n    \u003e\u003c/button\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\n### Vue\n\nThere is a Vue wrapper available on [vue-leaflet-sidepanel](https://github.com/cyclingbyte/vue-leaflet-sidepanel)\u003cbr /\u003e\nThis wrapper was build for Vue 3, there were no tests with Vue 2\n\n## Credits\n\nSpecial thanks to **[maxwell-ilai](https://github.com/maxwell-ilai 'Maxwell Ilai')** for the original project [maxwell-ilai/Leaflet.SidePanel](https://github.com/maxwell-ilai/Leaflet.SidePanel 'Leaflet.SidePanel by maxwell-ilai')\n\n## Visitors\n\n[![Flag Counter](https://s01.flagcounter.com/count2/Qvel/bg_FFFFFF/txt_000000/border_CCCCCC/columns_6/maxflags_18/viewers_0/labels_0/pageviews_1/flags_0/percent_0/)](https://info.flagcounter.com/Qvel)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyclingbyte%2Fleaflet.sidepanel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyclingbyte%2Fleaflet.sidepanel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyclingbyte%2Fleaflet.sidepanel/lists"}