{"id":21161540,"url":"https://github.com/mudin/vue2-leaflet-rotatedmarker","last_synced_at":"2025-07-09T14:31:46.876Z","repository":{"id":72022831,"uuid":"134219806","full_name":"mudin/vue2-leaflet-rotatedmarker","owner":"mudin","description":"rotated marker plugin extension for vue2-leaflet package","archived":false,"fork":false,"pushed_at":"2019-09-14T00:32:53.000Z","size":243,"stargazers_count":20,"open_issues_count":4,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T07:43:52.822Z","etag":null,"topics":["leaflet","markers","rotation","vue","vue2-leaflet"],"latest_commit_sha":null,"homepage":null,"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/mudin.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":"2018-05-21T04:56:02.000Z","updated_at":"2023-11-30T08:17:54.000Z","dependencies_parsed_at":"2023-09-14T18:32:56.742Z","dependency_job_id":null,"html_url":"https://github.com/mudin/vue2-leaflet-rotatedmarker","commit_stats":null,"previous_names":["imudin/vue2-leaflet-rotatedmarker"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fvue2-leaflet-rotatedmarker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fvue2-leaflet-rotatedmarker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fvue2-leaflet-rotatedmarker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fvue2-leaflet-rotatedmarker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mudin","download_url":"https://codeload.github.com/mudin/vue2-leaflet-rotatedmarker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225562099,"owners_count":17488566,"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","markers","rotation","vue","vue2-leaflet"],"created_at":"2024-11-20T13:14:45.159Z","updated_at":"2024-11-20T13:14:45.680Z","avatar_url":"https://github.com/mudin.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/mudin/vue2-leaflet-rotatedmarker/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/mudin/vue2-leaflet-rotatedmarker.svg\" alt=\"License\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://badge.fury.io/js/vue2-leaflet-rotatedmarker\"\u003e\n    \u003cimg src=\"https://badge.fury.io/js/vue2-leaflet-rotatedmarker.svg\" alt=\"npm version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://hits.dwyl.io/mudin/vue2-leaflet-rotatedmarker\"\u003e\n    \u003cimg src=\"http://hits.dwyl.io/mudin/vue2-leaflet-rotatedmarker.svg\" alt=\"HitCount\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://unpkg.com/vue2-leaflet-rotatedmarker@latest/dist/Vue2LeafletRotatedMarker.js\"\u003e\n    \u003cimg src=\"https://img.badgesize.io/mudin/vue2-leaflet-rotatedmarker/master/dist/Vue2LeafletRotatedMarker.js?compression=gzip\" alt=\"size\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n# vue2-leaflet-rotatedmarker\n\nThis is a [RotatedMarker plugin](https://github.com/bbecquet/Leaflet.RotatedMarker) extension for [vue2-leaflet package](https://github.com/KoRiGaN/Vue2Leaflet)\n\n## Install\n\n    npm install --save vue2-leaflet-rotatedmarker\n\n## Demo\n\n    git clone https://github.com/imudin/vue2-leaflet-rotatedmarker\n    cd vue2-leaflet-rotatedmarker\n    yarn\n    yarn example\n\n    # or alternatively using npm\n    npm install\n    npm run example\n\nThen you should be able to navigate with your browser and see the demo in http://localhost:4000/\n\nYou can see the demo code in the file [example.vue](example.vue)\n\n## Usage\n\n### on \u0026lt;template\u0026gt; add\n\nsomething like this\n\n    \u003cv-map :zoom=10 :center=\"initialLocation\"\u003e\n      \u003cv-icondefault :image-path=\"'/statics/leafletImages/'\"\u003e\u003c/v-icondefault\u003e\n      \u003cv-tilelayer url=\"http://{s}.tile.osm.org/{z}/{x}/{y}.png\"\u003e\u003c/v-tilelayer\u003e\n      \u003cv-rotated-marker v-for=\"l in locations\" :key=\"l.id\" \n        :lat-lng=\"l.latlng\" \n        :icon=\"icon\" \n        @click=\"handleMarkerClick(l)\"\n        :rotationAngle=\"l.rotationAngle\"\u003e\n    \u003c/v-rotated-marker\u003e\n    \u003c/v-map\u003e\n\n### on \u0026lt;script\u0026gt; add\n\n#### option 1\n\nIn the same template file, at `\u003cscript\u003e` part, this will make the component available only to the template in this file\n\n    import Vue2LeafletRotatedMarker from 'vue2-leaflet-rotatedmarker'\n    ...\n    export default {\n      ...\n      components: {\n        'v-rotated-marker': Vue2LeafletRotatedMarker\n        ...\n      },\n      ...\n    }\n\n#### option 2\n\nAt main Vue configuration, this will make the component available to all templates in your app\n\n    import Vue from 'vue'\n    import Vue2LeafletRotatedMarker from 'vue2-leaflet-rotatedmarker'\n    ...\n    Vue.component('v-rotated-marker', Vue2LeafletRotatedMarker)\n\n## Develop and build\n\n    npm install\n    npm run build\n\n## Author\n\n[mudin](https://github.com/mudin/)\n\n\n## License\n\nMIT\nrotated marker plugin extension for vue2-leaflet package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudin%2Fvue2-leaflet-rotatedmarker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmudin%2Fvue2-leaflet-rotatedmarker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudin%2Fvue2-leaflet-rotatedmarker/lists"}