{"id":13506603,"url":"https://github.com/schlunsen/nuxt-leaflet","last_synced_at":"2025-03-30T05:31:14.070Z","repository":{"id":37693155,"uuid":"125021825","full_name":"schlunsen/nuxt-leaflet","owner":"schlunsen","description":"Nuxt module for leafletjs - https://schlunsen.github.io/nuxt-leaflet/","archived":true,"fork":false,"pushed_at":"2023-01-06T01:53:45.000Z","size":5224,"stargazers_count":200,"open_issues_count":35,"forks_count":29,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-17T21:09:13.530Z","etag":null,"topics":["leafletjs","nuxt"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/schlunsen.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":"2018-03-13T09:01:03.000Z","updated_at":"2024-09-28T09:32:04.000Z","dependencies_parsed_at":"2023-02-05T02:00:35.799Z","dependency_job_id":null,"html_url":"https://github.com/schlunsen/nuxt-leaflet","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schlunsen%2Fnuxt-leaflet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schlunsen%2Fnuxt-leaflet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schlunsen%2Fnuxt-leaflet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schlunsen%2Fnuxt-leaflet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schlunsen","download_url":"https://codeload.github.com/schlunsen/nuxt-leaflet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246281099,"owners_count":20752203,"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":["leafletjs","nuxt"],"created_at":"2024-08-01T01:00:54.407Z","updated_at":"2025-03-30T05:31:13.603Z","avatar_url":"https://github.com/schlunsen.png","language":"Vue","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# nuxt-leaflet\n[![npm (scoped with tag)](https://img.shields.io/npm/v/nuxt-leaflet/latest.svg?style=flat-square)](https://npmjs.com/package/nuxt-leaflet)\n[![npm](https://img.shields.io/npm/dt/nuxt-leaflet.svg?style=flat-square)](https://npmjs.com/package/nuxt-leaflet)\n[![js-standard-style](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com)\n\n\u003e Nuxt module for leafletjs\n\n[📖 **Release Notes**](./CHANGELOG.md)\n\n## Features\n\nNuxt module for vue2-leaflet.\n\nSee [vue2-leaflet](https://github.com/KoRiGaN/Vue2Leaflet) for more details.\n\n\n## Setup\n- Add `nuxt-leaflet` dependency using yarn or npm to your project\n- Add `nuxt-leaflet` to `modules` section of `nuxt.config.js`\n\n```js\n{\n  modules: [\n    // Simple usage\n    'nuxt-leaflet',\n\n    // With options\n    ['nuxt-leaflet', { /* module options */ }],\n ]\n}\n```\n\n## Usage\n\n\nAdd the map to your page\n``` html\n\u003cdiv id=\"map-wrap\" style=\"height: 100vh\"\u003e\n \u003cclient-only\u003e\n   \u003cl-map :zoom=13 :center=\"[55.9464418,8.1277591]\"\u003e\n     \u003cl-tile-layer url=\"http://{s}.tile.osm.org/{z}/{x}/{y}.png\"\u003e\u003c/l-tile-layer\u003e\n     \u003cl-marker :lat-lng=\"[55.9464418,8.1277591]\"\u003e\u003c/l-marker\u003e\n   \u003c/l-map\u003e\n \u003c/client-only\u003e\n\u003c/div\u003e\n```\n\nThe Leaflet 'L' object can be found on vue component: ```this.$L``` \n\n## Typescript\n\nIf you're using TypeScript, you'll need to add nuxt-leaflet in your compilerOptions of your tsconfig.json :\n\n```json\n{\n  \"compilerOptions\": {\n    \"types\": [\n      \"@types/node\",\n      \"@nuxt/vue-app\",\n      \"nuxt-leaflet\"\n    ]\n  }\n}\n```\n\nYou'll then be able to have autocompletion in Vue instances (```this.$L```).\n\n\n## List of currently implemented components\n\nSee [components](https://github.com/schlunsen/nuxt-leaflet/blob/master/lib/templates/plugin.js) supported\n\n\n## Development\n\n- Clone this repository\n- Install dependencies using `yarn install` or `npm install`\n- Start development server using `npm run dev`\n\n## License\n\n[MIT License](./LICENSE)\n\nCopyright (c) Rasmus Schlunsen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschlunsen%2Fnuxt-leaflet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschlunsen%2Fnuxt-leaflet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschlunsen%2Fnuxt-leaflet/lists"}