{"id":20058604,"url":"https://github.com/leaflet/path.drag.js","last_synced_at":"2025-09-07T11:46:51.178Z","repository":{"id":57289912,"uuid":"62516094","full_name":"Leaflet/Path.Drag.js","owner":"Leaflet","description":"Add dragging capability to Leaflet paths.","archived":false,"fork":false,"pushed_at":"2018-07-27T10:31:20.000Z","size":12,"stargazers_count":27,"open_issues_count":4,"forks_count":14,"subscribers_count":6,"default_branch":"gh-pages","last_synced_at":"2025-05-31T04:13:47.443Z","etag":null,"topics":["leaflet","leaflet-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Leaflet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-03T21:35:18.000Z","updated_at":"2024-10-16T10:12:50.000Z","dependencies_parsed_at":"2022-08-25T07:40:49.138Z","dependency_job_id":null,"html_url":"https://github.com/Leaflet/Path.Drag.js","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Leaflet/Path.Drag.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FPath.Drag.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FPath.Drag.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FPath.Drag.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FPath.Drag.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leaflet","download_url":"https://codeload.github.com/Leaflet/Path.Drag.js/tar.gz/refs/heads/gh-pages","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FPath.Drag.js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263385630,"owners_count":23458738,"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","leaflet-plugin"],"created_at":"2024-11-13T13:02:13.287Z","updated_at":"2025-07-03T19:06:52.590Z","avatar_url":"https://github.com/Leaflet.png","language":"JavaScript","readme":"# Path.Drag.js\n\nAdd dragging capability to Leaflet path (Polygon, Polyline, Rectangle, Circle, CircleMarker…).\n\n\n## Example\n\n- [simple example](http://Leaflet.github.io/Path.Drag.js/example/index.html)\n- [huge polygon example](http://Leaflet.github.io/Path.Drag.js/example/russia.html)\n- [canvas example](http://Leaflet.github.io/Path.Drag.js/example/canvas.html)\n\n\n## Installation\n\n**This library requires Leaflet version 1.0 or above**\n\nInclude `Path.Drag.js` in your javascript files (after including Leaflet itself).\n\nIt's available via NPM:\n\n    npm install leaflet.path.drag\n\n\n## Usage\n\nA `dragging` handler will be attached to the paths instance of your map.\nTo enable dragging, just do:\n\n    layer.dragging.enable()\n\nTo disable:\n\n    layer.dragging.disable()\n\n\nIf you want a path to be draggable as soon as it's added to map, add\n`draggable: true` to its options:\n\n    const layer = L.polygon([…], {draggable: true})\n\n\n## Alternatives:\n\n- https://github.com/w8r/Leaflet.Path.Drag: use it if you want to drag very big path\n  with many vertices.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleaflet%2Fpath.drag.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleaflet%2Fpath.drag.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleaflet%2Fpath.drag.js/lists"}