{"id":25636610,"url":"https://github.com/bbecquet/leaflet.rotatedmarker","last_synced_at":"2025-05-15T15:09:25.497Z","repository":{"id":37334385,"uuid":"46450205","full_name":"bbecquet/Leaflet.RotatedMarker","owner":"bbecquet","description":"Leaflet plugin to enable the rotation of map marker icons","archived":false,"fork":false,"pushed_at":"2024-05-31T10:53:04.000Z","size":11,"stargazers_count":257,"open_issues_count":18,"forks_count":101,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-29T20:56:00.352Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbecquet.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":"2015-11-18T21:58:53.000Z","updated_at":"2024-10-13T20:59:35.000Z","dependencies_parsed_at":"2025-02-23T00:48:56.018Z","dependency_job_id":"9d65f549-8379-4d06-9f2a-bcac10df7a77","html_url":"https://github.com/bbecquet/Leaflet.RotatedMarker","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbecquet%2FLeaflet.RotatedMarker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbecquet%2FLeaflet.RotatedMarker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbecquet%2FLeaflet.RotatedMarker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbecquet%2FLeaflet.RotatedMarker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbecquet","download_url":"https://codeload.github.com/bbecquet/Leaflet.RotatedMarker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247721898,"owners_count":20985084,"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":"2025-02-23T00:48:51.909Z","updated_at":"2025-04-07T20:11:31.895Z","avatar_url":"https://github.com/bbecquet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Leaflet Rotated Marker\n===\n\nEnables rotation of marker icons in Leaflet. [Demo](http://bbecquet.github.io/Leaflet.RotatedMarker/example.html)\n\nCompatible with versions 0.7.* and 1.* of Leaflet. Doesn't work on IE \u003c 9.\n\n```bash\nnpm install leaflet-rotatedmarker\n```\n\nUsage\n---\n\n```js\nL.marker([48.8631169, 2.3708919], {\n    rotationAngle: 45\n}).addTo(map);\n```\n\nAPI\n---\n\nIt simply extends the `L.Marker` class with two new options:\n\nOption | Type | Default | Description  \n-------|------|---------|------------\n**`rotationAngle`** | `Number` | 0 | Rotation angle, in degrees, clockwise.\n**`rotationOrigin`** | `String` | `'bottom center'` | The rotation center, as a [`transform-origin`](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origin) CSS rule.\n\nand two new methods:\n\nMethod | Returns | Description\n-------|---------|------------\n**`setRotationAngle(newAngle)`** | `this` | Sets the rotation angle value.\n**`setRotationOrigin(newOrigin)`** | `this` | Sets the rotation origin value.\n\nThe default `rotationOrigin` value will rotate around the bottom center point, corresponding to the \"tip\" of the marker for most commonly used icons. If your marker icon has no tip, or you want to rotate around its center, use `center center`.\n\nNote\n---\n\nOn purpose, it doesn't rotate marker icon shadows. Mainly because there is no way to make it look good with the perspective of classic, pin type shadows (anyway, these shadows are so 2005, right?).\n\nSo just disable icon shadows, or use simple ones which will work for all marker angles.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbecquet%2Fleaflet.rotatedmarker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbecquet%2Fleaflet.rotatedmarker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbecquet%2Fleaflet.rotatedmarker/lists"}