{"id":21539867,"url":"https://github.com/raruto/leaflet-ui","last_synced_at":"2025-04-10T03:26:31.422Z","repository":{"id":34977592,"uuid":"193591430","full_name":"Raruto/leaflet-ui","owner":"Raruto","description":"Leaflet presets for common user interface customizations","archived":false,"fork":false,"pushed_at":"2023-01-20T18:09:44.000Z","size":3109,"stargazers_count":29,"open_issues_count":6,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T04:43:38.755Z","etag":null,"topics":["controls","default-ui","layers","leaflet","map"],"latest_commit_sha":null,"homepage":"https://raruto.github.io/leaflet-ui","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Raruto.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}},"created_at":"2019-06-24T22:50:05.000Z","updated_at":"2025-02-20T08:38:11.000Z","dependencies_parsed_at":"2023-02-12T04:16:53.545Z","dependency_job_id":null,"html_url":"https://github.com/Raruto/leaflet-ui","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raruto%2Fleaflet-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raruto%2Fleaflet-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raruto%2Fleaflet-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raruto%2Fleaflet-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Raruto","download_url":"https://codeload.github.com/Raruto/leaflet-ui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248150041,"owners_count":21055849,"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":["controls","default-ui","layers","leaflet","map"],"created_at":"2024-11-24T04:16:36.838Z","updated_at":"2025-04-10T03:26:31.388Z","avatar_url":"https://github.com/Raruto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# leaflet-ui\n\n[![NPM version](https://img.shields.io/npm/v/leaflet-ui.svg?color=red)](https://www.npmjs.com/package/leaflet-ui)\n[![License](https://img.shields.io/badge/license-GPL%203-blue.svg?style=flat)](LICENSE)\n\nLeaflet presets for common user interface customizations\n\n_For a working example see [demo](https://raruto.github.io/leaflet-ui/examples/leaflet-ui.html)_\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://raruto.github.io/leaflet-ui/examples/leaflet-ui.html\"\u003e\u003cimg src=\"https://raruto.github.io/img/leaflet-ui.png\" alt=\"Leaflet default UI\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n* * *\n\n## How to use\n\n1.  **include CSS \u0026 JavaScript**\n    ```html\n    \u003chead\u003e\n    ...\n    \u003cstyle\u003e html, body, #map { height: 100%; width: 100%; padding: 0; margin: 0; } \u003c/style\u003e\n    \u003c!-- Leaflet --\u003e\n    \u003cscript src=\"https://unpkg.com/leaflet@1.6.0/dist/leaflet.js\"\u003e\u003c/script\u003e\n    \u003c!-- Leaflet-UI --\u003e\n    \u003cscript src=\"https://unpkg.com/leaflet-ui@latest/dist/leaflet-ui.js\"\u003e\u003c/script\u003e\n    ...\n    \u003c/head\u003e\n    ```\n2.  **choose a div container used for the slippy map**\n    ```html\n    \u003cbody\u003e\n    ...\n      \u003cdiv id=\"map\"\u003e\u003c/div\u003e\n    ...\n    \u003c/body\u003e\n    ```\n3.  **create your first simple “leaflet-ui” slippy map**\n    ```html\n    \u003cscript\u003e\n      var map = L.map('map', {\n        center: [41.4583, 12.7059],\n        zoom: 5,\n\n        // Optional customizations\n        mapTypeId: 'topo',\n        mapTypeIds: ['streets', 'terrain', 'satellite', 'topo'],\n        gestureHandling: true,\n        zoomControl: true,\n        pegmanControl: true,\n        locateControl: true,\n        fullscreenControl: true,\n        layersControl: true,\n        minimapControl: true,\n        editInOSMControl: true,\n        loadingControl: true,\n        searchControl: true,\n        disableDefaultUI: false,\n\n        // Experimental feature\n        rotate: true,\n      });\n      map.once('idle',function(){ /* Waiting for map init */});\n    \u003c/script\u003e\n    ```\n\n* * *\n\n**Compatibile with:** leaflet@1.6.0\n\n* * *\n\n**Contributors:** [Raruto](https://github.com/Raruto/leaflet-ui)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraruto%2Fleaflet-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraruto%2Fleaflet-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraruto%2Fleaflet-ui/lists"}