{"id":13468839,"url":"https://github.com/Leaflet/Leaflet.Editable","last_synced_at":"2025-03-26T05:31:20.956Z","repository":{"id":19273553,"uuid":"22510053","full_name":"Leaflet/Leaflet.Editable","owner":"Leaflet","description":"Make geometries editable in Leaflet.","archived":false,"fork":false,"pushed_at":"2025-02-27T16:09:12.000Z","size":582,"stargazers_count":572,"open_issues_count":80,"forks_count":197,"subscribers_count":39,"default_branch":"master","last_synced_at":"2025-03-19T06:48:00.354Z","etag":null,"topics":["leaflet","leaflet-plugin"],"latest_commit_sha":null,"homepage":"http://leaflet.github.io/Leaflet.Editable/doc/api.html","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":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2014-08-01T13:03:41.000Z","updated_at":"2025-03-17T18:17:04.000Z","dependencies_parsed_at":"2024-10-13T04:30:21.494Z","dependency_job_id":"a3d88e36-3198-465e-9bc4-8472e52375e3","html_url":"https://github.com/Leaflet/Leaflet.Editable","commit_stats":{"total_commits":283,"total_committers":15,"mean_commits":"18.866666666666667","dds":"0.14840989399293292","last_synced_commit":"fbafefee4ef23fe586ba550cd42dfc359da12b62"},"previous_names":["yohanboniface/leaflet.editable"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FLeaflet.Editable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FLeaflet.Editable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FLeaflet.Editable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FLeaflet.Editable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leaflet","download_url":"https://codeload.github.com/Leaflet/Leaflet.Editable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245597320,"owners_count":20641865,"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-07-31T15:01:20.105Z","updated_at":"2025-03-26T05:31:20.318Z","avatar_url":"https://github.com/Leaflet.png","language":"JavaScript","readme":"[![Build Status](https://travis-ci.org/Leaflet/Leaflet.Editable.svg?branch=master)](https://travis-ci.org/Leaflet/Leaflet.Editable)\n# Leaflet.Editable\n\nMake geometries editable in Leaflet.\n\n\nThis is not a plug and play UI, and will not be. This is a minimal, lightweight,\nand fully extendable API to control editing of geometries. So you can easily\nbuild your own UI with your own needs and choices.\n\nSee the [demo UI](http://Leaflet.github.io/Leaflet.Editable/example/index.html), an more [examples below](#examples).\nThis is also the drawing engine behind [uMap](http://wiki.openstreetmap.org/wiki/UMap).\n\n\nDesign keys:\n\n- only the core needs\n- no UI, instead hooks everywhere needed\n- everything programmatically controllable\n- MultiPolygon/MultiPolyline support\n- Polygons' holes support\n- touch support\n- tests\n\n## Install\n\nYou need Leaflet \u003e= 1.0.0, and then include `src/Leaflet.Editable.js`.\n\n### Path dragging\n\nIf you want path dragging, you need to also include [Path.Drag.js](https://github.com/Leaflet/Path.Drag.js).\n\n\n## Quick start\n\nAllow Leaflet.Editable in the map options:\n\n    var map = L.map('map', {editable: true});\n\nThen, to start editing an existing feature, call the `enableEdit` method on it:\n\n    var polyline = L.polyline([[43.1, 1.2], [43.2, 1.3],[43.3, 1.2]]).addTo(map);\n    polyline.enableEdit();\n\nIf you want to draw a new line:\n\n    map.editTools.startPolyline();  // map.editTools has been created\n                                    // by passing editable: true option to the map\n\nIf you want to continue an existing line:\n\n    polyline.editor.continueForward();\n    // or\n    polyline.editor.continueBackward();\n\n## Examples\n\n- [Basic controls](http://Leaflet.github.io/Leaflet.Editable/example/index.html)\n- [Continue line by ctrl/command-clicking on first/last point](http://Leaflet.github.io/Leaflet.Editable/example/continue-line.html)\n- [Create hole in a polygon by ctrl-clicking on it](http://Leaflet.github.io/Leaflet.Editable/example/create-hole-on-click.html)\n- [Change line colour on editing](http://Leaflet.github.io/Leaflet.Editable/example/change-line-colour-on-editing.html)\n- [Display a tooltip near cursor while drawing](http://Leaflet.github.io/Leaflet.Editable/example/tooltip-when-drawing.html)\n- [Basic demo of undo/redo](http://Leaflet.github.io/Leaflet.Editable/example/undo-redo.html) (Use ctrl-Z to undo and ctrl-shift-Z to redo)\n- [Deleting shapes by ctrl/command clicking on it](http://Leaflet.github.io/Leaflet.Editable/example/delete-shape.html)\n- [Multipolygon example](http://Leaflet.github.io/Leaflet.Editable/example/multipolygon.html)\n- Example of [Leaflet.Snap](https://github.com/makinacorpus/Leaflet.Snap/) integration [to enable snapping](http://Leaflet.github.io/Leaflet.Editable/example/snapping.html)\n\n\n## API\n\n[See the reference](http://Leaflet.github.io/Leaflet.Editable/doc/api.html)\n\n\n## Licence\n\n`Leaflet.Editable` is released under the WTFPL licence.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeaflet%2FLeaflet.Editable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLeaflet%2FLeaflet.Editable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeaflet%2FLeaflet.Editable/lists"}