{"id":21161532,"url":"https://github.com/mudin/vue2-leaflet-path-transform","last_synced_at":"2025-03-14T16:11:37.301Z","repository":{"id":41407123,"uuid":"157665701","full_name":"mudin/vue2-leaflet-path-transform","owner":"mudin","description":"rotated marker plugin extension for vue2-leaflet package","archived":false,"fork":false,"pushed_at":"2022-07-01T12:50:39.000Z","size":401,"stargazers_count":11,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T08:35:57.151Z","etag":null,"topics":["leaflet","pathtransform","vue2-leaflet"],"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/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}},"created_at":"2018-11-15T06:51:18.000Z","updated_at":"2023-04-15T17:41:43.000Z","dependencies_parsed_at":"2022-08-31T20:01:29.584Z","dependency_job_id":null,"html_url":"https://github.com/mudin/vue2-leaflet-path-transform","commit_stats":null,"previous_names":["imudin/vue2-leaflet-path-transform"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fvue2-leaflet-path-transform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fvue2-leaflet-path-transform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fvue2-leaflet-path-transform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fvue2-leaflet-path-transform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mudin","download_url":"https://codeload.github.com/mudin/vue2-leaflet-path-transform/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243606955,"owners_count":20318314,"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","pathtransform","vue2-leaflet"],"created_at":"2024-11-20T13:14:41.264Z","updated_at":"2025-03-14T16:11:37.280Z","avatar_url":"https://github.com/mudin.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue2-leaflet-path-transform\n\nThis is a [path-transform plugin](https://www.npmjs.com/package/leaflet-path-transform) extension for [vue2-leaflet package](https://github.com/KoRiGaN/Vue2Leaflet)\n\n## Install\n\n    npm install --save vue2-leaflet-path-transform\n\n## Demo\n\n    git clone https://github.com/mudin/vue2-leaflet-path-transform\n    cd vue2-leaflet-path-transform\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=11 :center=\"initialLocation\"\u003e\n        \u003cv-icondefault\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-path-transform \n            v-for=\"(latLng, index) in latLngs\"\n            :key=\"index\"\n            :latLngs=\"latLng\"\n            :draggable='true'\n            :rotation='true'\n            :scaling='true'\n            :color='colors[index]'\n            :handlerOptions=\"handlerOptions\"\n            @transformed='handlePathTransformed'\u003e\n        \u003c/v-path-transform\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 Vue2LeafletPathTransform from 'vue2-leaflet-path-transform'\n    ...\n    export default {\n      ...\n      components: {\n        'v-path-transform': Vue2LeafletPathTransform\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 Vue2LeafletPathTransform from 'vue2-leaflet-path-transform'\n    ...\n    Vue.component('v-path-transform', Vue2LeafletPathTransform)\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\npath transform plugin extension for vue2-leaflet package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudin%2Fvue2-leaflet-path-transform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmudin%2Fvue2-leaflet-path-transform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudin%2Fvue2-leaflet-path-transform/lists"}