{"id":13904564,"url":"https://github.com/Leaflet/Leaflet.fullscreen","last_synced_at":"2025-07-18T02:31:30.917Z","repository":{"id":485976,"uuid":"8346342","full_name":"Leaflet/Leaflet.fullscreen","owner":"Leaflet","description":"A fullscreen control for Leaflet","archived":false,"fork":false,"pushed_at":"2022-05-13T14:07:33.000Z","size":163,"stargazers_count":436,"open_issues_count":30,"forks_count":117,"subscribers_count":33,"default_branch":"gh-pages","last_synced_at":"2024-10-20T07:50:56.539Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://leaflet.github.io/Leaflet.fullscreen/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Leaflet.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":"2013-02-21T23:24:42.000Z","updated_at":"2024-10-20T00:08:50.000Z","dependencies_parsed_at":"2022-07-20T11:47:18.419Z","dependency_job_id":null,"html_url":"https://github.com/Leaflet/Leaflet.fullscreen","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FLeaflet.fullscreen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FLeaflet.fullscreen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FLeaflet.fullscreen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FLeaflet.fullscreen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leaflet","download_url":"https://codeload.github.com/Leaflet/Leaflet.fullscreen/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224831556,"owners_count":17377205,"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":[],"created_at":"2024-08-06T23:00:57.721Z","updated_at":"2024-11-25T12:31:37.606Z","avatar_url":"https://github.com/Leaflet.png","language":"HTML","funding_links":[],"categories":["Plugins Reference","HTML"],"sub_categories":["Leaflet"],"readme":"## Leaflet.fullscreen\nA HTML5 fullscreen plugin for Leaflet.\n\n### Usage\n\nTo provide a button for toggling fullscreen on and off:\n\n``` js\n// Create a new map with a fullscreen button:\nvar map = new L.Map('map', {\n    fullscreenControl: true,\n    // OR\n    fullscreenControl: {\n        pseudoFullscreen: false // if true, fullscreen to page width and height\n    }\n});\n\n// or, add to an existing map:\nmap.addControl(new L.Control.Fullscreen());\n```\n\nThe plugin also adds several methods to `L.Map` which are always available, even if you choose not to use the fullscreen button:\n\n``` js\nmap.isFullscreen() // Is the map fullscreen?\nmap.toggleFullscreen() // Either go fullscreen, or cancel the existing fullscreen.\n\n// `fullscreenchange` Event that's fired when entering or exiting fullscreen.\nmap.on('fullscreenchange', function () {\n    if (map.isFullscreen()) {\n        console.log('entered fullscreen');\n    } else {\n        console.log('exited fullscreen');\n    }\n});\n```\n\n### Localization\n\nTo change fullscreen control text:\n\n``` js\nmap.addControl(new L.Control.Fullscreen({\n    title: {\n        'false': 'View Fullscreen',\n        'true': 'Exit Fullscreen'\n    }\n}));\n```\n\n### Including via CDN\n\nLeaflet.fullscreen is [available through the Mapbox Plugin CDN](https://www.mapbox.com/mapbox.js/plugins/#leaflet-fullscreen) - just copy this include:\n\n```html\n\u003cscript src='https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/Leaflet.fullscreen.min.js'\u003e\u003c/script\u003e\n\u003clink href='https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/leaflet.fullscreen.css' rel='stylesheet' /\u003e\n```\n\n### Building\n\n    npm install \u0026\u0026 make\n\n__ProTip__ You may want to install `watch` so you can run `watch make`\nwithout needing to execute make on every change.\n\n### Supported Leaflet Versions\n\nLeaflet 1.0 and later is supported. Earlier versions may work, but are not tested.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeaflet%2FLeaflet.fullscreen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLeaflet%2FLeaflet.fullscreen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeaflet%2FLeaflet.fullscreen/lists"}