{"id":15202895,"url":"https://github.com/raruto/leaflet-edit-osm","last_synced_at":"2026-03-07T07:31:58.329Z","repository":{"id":98199467,"uuid":"220651439","full_name":"Raruto/leaflet-edit-osm","owner":"Raruto","description":"Leaflet plugin that allows to add an unobtrusive open in OSM Edit link","archived":false,"fork":false,"pushed_at":"2020-02-09T19:12:40.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T22:40:40.869Z","etag":null,"topics":["id","javascript","leaflet","leaflet-edit","openstreetmap","potlatch2","remote"],"latest_commit_sha":null,"homepage":"https://raruto.github.io/leaflet-edit-osm","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Raruto.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":"2019-11-09T14:09:08.000Z","updated_at":"2025-02-20T08:40:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e3a60ee-aa08-4706-b86d-cfc7f96b0351","html_url":"https://github.com/Raruto/leaflet-edit-osm","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"341553e80fa8d902c8d51f0da134e17a9ba2f125"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raruto%2Fleaflet-edit-osm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raruto%2Fleaflet-edit-osm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raruto%2Fleaflet-edit-osm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raruto%2Fleaflet-edit-osm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Raruto","download_url":"https://codeload.github.com/Raruto/leaflet-edit-osm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241982490,"owners_count":20052530,"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":["id","javascript","leaflet","leaflet-edit","openstreetmap","potlatch2","remote"],"created_at":"2024-09-28T04:07:19.741Z","updated_at":"2025-12-05T09:03:07.433Z","avatar_url":"https://github.com/Raruto.png","language":"JavaScript","readme":"# leaflet-edit-osm.js\nA Leaflet plugin that allows to add an unobtrusive open in OSM Edit link\n\n_For a working example see [demo](https://raruto.github.io/leaflet-edit-osm/examples/leaflet-edit-osm.html)_\n\n---\n\n\u003e _Initally based on the [work](https://github.com/osmlab/leaflet-edit-osm) of **Tom MacWright**_\n\n## How to use\n\n1. **include CSS \u0026 JavaScript**\n    ```html\n    \u003chead\u003e\n    ...\n    \u003cstyle\u003e html, body, #map { height: 100%; width: 100%; padding: 0; margin: 0; } \u003c/style\u003e\n    \u003c!-- Leaflet (JS/CSS) --\u003e\n    \u003clink rel=\"stylesheet\" href=\"https://unpkg.com/leaflet@1.3.4/dist/leaflet.css\" /\u003e\n    \u003cscript src=\"https://unpkg.com/leaflet@1.3.4/dist/leaflet.js\"\u003e\u003c/script\u003e\n    \u003c!-- Leaflet-Edit-OSM --\u003e\n    \u003clink rel=\"stylesheet\" href=\"https://unpkg.com/@raruto/leaflet-edit-osm/@latest/leaflet-edit-osm.css\" /\u003e\n    \u003cscript src=\"https://unpkg.com/@raruto/leaflet-edit-osm/@latest/leaflet-edit-osm.js\"\u003e\u003c/script\u003e\n    ...\n    \u003c/head\u003e\n    ```\n2. **choose a div container used for the slippy map**\n    ```html\n    \u003cbody\u003e\n    ...\n\t  \u003cdiv id=\"map\"\u003e\u003c/div\u003e\n    ...\n    \u003c/body\u003e\n    ```\n3. **create your first simple “leaflet-pegman slippy map**\n    ```html\n    \u003cscript\u003e\n      var map = L.map('map');\n      map.setView(new L.LatLng(45, 9.5), 5);\n\n      var OpenStreetMap = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\n        maxZoom: 19,\n        attribution: 'Map data: \u0026copy; \u003ca href=\"http://www.openstreetmap.org/copyright\"\u003eOpenStreetMap\u003c/a\u003e',\n        });\n      OpenStreetMap.addTo(map);\n\n      var editInOSMControl = new L.Control.EditInOSM({\n        position: 'bottomright', // position of control inside the map\n        editor: false, // open link with a default editor (\"id\", \"potlatch2\" or \"remote\")\n      });\n      editInOSMControl.addTo(map);\n    \u003c/script\u003e\n    ```\n_Related: [Leaflet-UI presets](https://github.com/raruto/leaflet-ui)_\n\n---\n\n**Compatibile with:** leaflet@1.3.4,\n\n---\n\n**Contributors:** [tmcw](https://github.com/osmlab/leaflet-edit-osm), [Raruto](https://github.com/Raruto/leaflet-edit-osm)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraruto%2Fleaflet-edit-osm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraruto%2Fleaflet-edit-osm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraruto%2Fleaflet-edit-osm/lists"}