{"id":13762974,"url":"https://github.com/openstreetmap/leaflet-osm","last_synced_at":"2025-05-10T16:32:01.081Z","repository":{"id":4977263,"uuid":"6135153","full_name":"openstreetmap/leaflet-osm","owner":"openstreetmap","description":"OpenStreetMap plugin for Leaflet","archived":false,"fork":false,"pushed_at":"2025-03-10T20:15:29.000Z","size":96,"stargazers_count":114,"open_issues_count":6,"forks_count":35,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-10T21:24:39.644Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openstreetmap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2012-10-09T04:02:39.000Z","updated_at":"2025-03-10T20:15:34.000Z","dependencies_parsed_at":"2022-09-25T02:40:33.307Z","dependency_job_id":"9a0a44de-4cc0-4f9e-83a2-93386813b15c","html_url":"https://github.com/openstreetmap/leaflet-osm","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstreetmap%2Fleaflet-osm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstreetmap%2Fleaflet-osm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstreetmap%2Fleaflet-osm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstreetmap%2Fleaflet-osm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openstreetmap","download_url":"https://codeload.github.com/openstreetmap/leaflet-osm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253445562,"owners_count":21909812,"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":[],"created_at":"2024-08-03T15:00:24.069Z","updated_at":"2025-05-10T16:32:00.841Z","avatar_url":"https://github.com/openstreetmap.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized","JavaScript"],"sub_categories":["Uncategorized"],"readme":"leaflet-osm is a [Leaflet](http://leaflet.cloudmade.com/) plugin for rendering\ntile and vector data from openstreetmap.org.\n\nFor example, the openstreetmap.org website could use it to highlight a particular\n[way](http://www.openstreetmap.org/?way=52477381) or [node](http://www.openstreetmap.org/?node=164979149)\non the base map.\n\n## Usage Examples\n\n### Tile Layers\n\n```js\nnew L.OSM.Mapnik().addTo(map);\n\n// L.OSM.CycleMap and L.OSM.TransportMap require an API key:\n// http://www.thunderforest.com/blog/apikeys-now-available/\nnew L.OSM.CycleMap({apikey: '...'}).addTo(map);\nnew L.OSM.TransportMap({apikey: '...'}).addTo(map);\n```\n\n### Data Layer\n\n```js\n$.ajax({\n  url: \"http://www.openstreetmap.org/api/0.6/node/164979149\",\n  // or \"http://www.openstreetmap.org/api/0.6/way/52477381/full\"\n  dataType: \"xml\",\n  success: function (xml) {\n    var layer = new L.OSM.DataLayer(xml).addTo(map);\n    map.fitBounds(layer.getBounds());\n  }\n});\n```\n\n## Contributing\n\nleaflet-osm is tested with node.js using [mocha](http://mochajs.org/) and [chai](http://chaijs.com/):\n\n```bash\n$ npm install\n$ npm test\n```\n\n## License\n\nCopyright 2012 John Firebaugh\n\nBSD License (see the BSD-LICENSE file)\n\nPortions derived from [OpenLayers](https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Format/OSM.js).\nSee BSD-LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenstreetmap%2Fleaflet-osm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenstreetmap%2Fleaflet-osm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenstreetmap%2Fleaflet-osm/lists"}