{"id":16411876,"url":"https://github.com/jieter/leaflet.layerscontrol-minimap","last_synced_at":"2025-04-06T07:09:47.197Z","repository":{"id":11111448,"uuid":"13467681","full_name":"jieter/leaflet.layerscontrol-minimap","owner":"jieter","description":"Leaflet layers control with minimaps.","archived":false,"fork":false,"pushed_at":"2025-03-09T15:47:54.000Z","size":1794,"stargazers_count":49,"open_issues_count":4,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-24T05:01:51.112Z","etag":null,"topics":["leaflet","minimap"],"latest_commit_sha":null,"homepage":"http://jieter.github.io/Leaflet.layerscontrol-minimap/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jieter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2013-10-10T09:49:29.000Z","updated_at":"2025-03-09T15:47:56.000Z","dependencies_parsed_at":"2025-03-16T16:33:05.615Z","dependency_job_id":null,"html_url":"https://github.com/jieter/leaflet.layerscontrol-minimap","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jieter%2Fleaflet.layerscontrol-minimap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jieter%2Fleaflet.layerscontrol-minimap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jieter%2Fleaflet.layerscontrol-minimap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jieter%2Fleaflet.layerscontrol-minimap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jieter","download_url":"https://codeload.github.com/jieter/leaflet.layerscontrol-minimap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247092377,"owners_count":20882218,"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","minimap"],"created_at":"2024-10-11T06:46:54.077Z","updated_at":"2025-04-06T07:09:47.176Z","avatar_url":"https://github.com/jieter.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Leaflet Layers control with minimaps\n\nDisplays minimaps in a layers control.\n\n - Only updates layers currently visible in the control.\n - Uses [Leaflet.Sync](https://github.com/jieter/Leaflet.Sync) and [leaflet-clonelayer](https://github.com/jieter/leaflet-clonelayer)\n - Tested with Leaflet 1.7.1\n - [Available on npm](https://www.npmjs.com/package/leaflet.layerscontrol-minimap): `npm install leaflet.layerscontrol-minimap`\n\n## Usage\n\nExactly like [Leaflets default layers control](http://leafletjs.com/reference.html#control-layers),\nwith some extra options. Add the scripts + css to your html:\n\n```HTML\n\u003clink rel=\"stylesheet\" href=\"control.layers.minimap.css\" /\u003e\n\u003cscript src=\"L.Control.Layers.Minimap.js\"\u003e\u003c/script\u003e\n```\nand add the control to your map:\n\n```JavaScript\nL.control.layers.minimap(basemaps, overlays, options).addTo(map);\n```\n\n### Extra options\n\nIn addition to the options available for `L.Control.Layers`:\n\n - `topPadding`: number of pixels padding to the top of the map. Defaults to `10`.\n - `bottomPadding`: number of pixels padding at the bottom of the map. Defaults to `40`.\n - `overlayBackgroundLayer` a (tile)layer which is added to the minimap of each overlay as a background. If set to false, no background layer wil be used for overlays. Defaults to [Hydda Base](http://leaflet-extras.github.io/leaflet-providers/preview/#filter=Hydda.Base)\n\n### Extra methods\n\nOne extra method is added:\n\n - `filter(string)`: if called with a non-empty string is passed, only layers with a name containing that substring are shown, while the others are set to `display: none`. The method will return a map with the layers currently visible.\n\n## Live example\n\nhttp://jieter.github.io/Leaflet.layerscontrol-minimap/\n\n![Screenshot](screenshot.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjieter%2Fleaflet.layerscontrol-minimap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjieter%2Fleaflet.layerscontrol-minimap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjieter%2Fleaflet.layerscontrol-minimap/lists"}