{"id":16993664,"url":"https://github.com/kayoshi-dev/svelte-leaflet","last_synced_at":"2026-04-11T20:35:12.160Z","repository":{"id":220719043,"uuid":"752071229","full_name":"Kayoshi-dev/svelte-leaflet","owner":"Kayoshi-dev","description":"Svelte components to use with Leaflet","archived":false,"fork":false,"pushed_at":"2024-02-05T09:13:47.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-31T09:52:02.954Z","etag":null,"topics":["components","leaflet","mapbox","svelte","sveltekit"],"latest_commit_sha":null,"homepage":"","language":"Svelte","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/Kayoshi-dev.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":"2024-02-03T00:18:54.000Z","updated_at":"2024-08-25T02:31:34.000Z","dependencies_parsed_at":"2024-02-05T10:52:19.497Z","dependency_job_id":null,"html_url":"https://github.com/Kayoshi-dev/svelte-leaflet","commit_stats":null,"previous_names":["kayoshi-dev/svelte-leaflet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kayoshi-dev/svelte-leaflet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayoshi-dev%2Fsvelte-leaflet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayoshi-dev%2Fsvelte-leaflet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayoshi-dev%2Fsvelte-leaflet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayoshi-dev%2Fsvelte-leaflet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kayoshi-dev","download_url":"https://codeload.github.com/Kayoshi-dev/svelte-leaflet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayoshi-dev%2Fsvelte-leaflet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31695163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T20:18:30.949Z","status":"ssl_error","status_checked_at":"2026-04-11T20:18:29.982Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["components","leaflet","mapbox","svelte","sveltekit"],"created_at":"2024-10-14T03:43:42.238Z","updated_at":"2026-04-11T20:35:12.103Z","avatar_url":"https://github.com/Kayoshi-dev.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Svelte-leaflet\n\nLeaflet components bindings for Svelte !\n\n## Installation\n\nInstall svelte-leaflet with your favorite package manager\n\n```bash\nnpm install @kayoshi-dev/svelte-leaflet leaflet\n```\n\n## Features\n\n- Map\n- TileLayer\n- Marker\n- And more to come!\n\n## Documentation\n\n\u003e [!NOTE]  \n\u003e This is still a WIP. API might change.\n\n```ts\nimport { MapContainer, Marker, TileLayer } from '@kayoshi-dev/svelte-leaflet';\n```\n\nFor the moment only three components are available :\n\n### MapContainer\n\nThis is the main component that will help you create your interactive map.  \n**All the other components should be used inside the body of that component.**\n\n\u003e [!IMPORTANT]  \n\u003e Must be used with the \u003cTileLayer\u003e component!\n\n#### Props\n\n- Center (mandatory)\n- Zoom\n- Zoom Options (an object that contains all the additionals properties you can add)\n\nUsage :\n\n```ts\n\u003cMapContainer center={[48, 2.34]}\u003e\n\n\u003c/MapContainer\u003e\n```\n\n### TileLayer\n\nThis component allows you to define the tile layer you would like to use.\n\n#### Props\n\n- Attribution (mandatory)\n- Url (mandatory)\n- TileLayerOptions\n\nUsage :\n\n```ts\n\u003cMapContainer center={[48, 2.34]}\u003e\n    \u003cTileLayer attribution=\"\u0026copy; \u003ca href=\"https://www.openstreetmap.org/copyright\"\u003eOpenStreetMap\u003c/a\u003e contributors\" url=\"https://tile.openstreetmap.org/{z}/{x}/{y}.png\" /\u003e\n\u003c/MapContainer\u003e\n```\n\n### Marker (WIP)\n\nAdd one or multiple markers on your map\n\n#### Props\n\n- Latlng (mandatory)\n- PopupText\n- MarkerOptions\n\nUsage :\n\n```ts\n\u003cMarker latlng={[48, 2.34]} popupText={'Hello world!'} markerOptions={{ draggable: true }} /\u003e\n```\n\n## Authors\n\n- [Kayoshi-dev](https://www.github.com/kayoshi-dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayoshi-dev%2Fsvelte-leaflet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkayoshi-dev%2Fsvelte-leaflet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayoshi-dev%2Fsvelte-leaflet/lists"}