{"id":19438832,"url":"https://github.com/danwild/leaflet-fa-markers","last_synced_at":"2025-04-24T22:32:06.476Z","repository":{"id":57289904,"uuid":"80685292","full_name":"danwild/leaflet-fa-markers","owner":"danwild","description":"Simple svg map markers with FontAwesome icons.","archived":false,"fork":false,"pushed_at":"2020-03-20T06:13:00.000Z","size":51,"stargazers_count":22,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T21:40:39.452Z","etag":null,"topics":["fontawesome","leaflet","leaflet-plugins","markers"],"latest_commit_sha":null,"homepage":"https://danwild.github.io/leaflet-fa-markers/","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/danwild.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-02T02:12:19.000Z","updated_at":"2024-10-22T18:08:48.000Z","dependencies_parsed_at":"2022-08-25T07:40:47.324Z","dependency_job_id":null,"html_url":"https://github.com/danwild/leaflet-fa-markers","commit_stats":null,"previous_names":["danwild/leaflet-fontawesome-markers"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fleaflet-fa-markers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fleaflet-fa-markers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fleaflet-fa-markers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fleaflet-fa-markers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danwild","download_url":"https://codeload.github.com/danwild/leaflet-fa-markers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250719715,"owners_count":21476128,"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":["fontawesome","leaflet","leaflet-plugins","markers"],"created_at":"2024-11-10T15:19:55.633Z","updated_at":"2025-04-24T22:32:06.178Z","avatar_url":"https://github.com/danwild.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# leaflet-fa-markers [![NPM version][npm-image]][npm-url] [![NPM Downloads][npm-downloads-image]][npm-url]\n\nVery simple vector markers with FontAwesome icons, compatible with Leaflet v1.\n\n![Screenshot](/screenshots/markers.png?raw=true)\n\n## Use:\n\n```javascript\nvar blueMarker = L.marker([lat, lon], {\n  icon: L.icon.fontAwesome({\n    iconClasses: \"fa fa-info-circle\", // you _could_ add other icon classes, not tested.\n    // marker/background style\n    markerColor: \"#00a9ce\",\n    markerFillOpacity: 0.2,\n    markerStrokeWidth: 1,\n    markerStrokeColor: \"grey\",\n    // icon style\n    iconColor: \"#FFF\"\n  })\n}).addTo(map);\n\nvar spinningMarker = L.marker([lat, lon], {\n  icon: L.icon.fontAwesome({\n    iconClasses: \"fa fa-circle-o-notch fa-spin\",\n    markerColor: \"#ff89b5\",\n    iconColor: \"#FFF\",\n    // use XY offsets to nudge positioning of icons, negative accepted\n    iconXOffset: -2,\n    iconYOffset: 0\n  })\n}).addTo(map);\n\n// update existing\nblueMarker.options.icon.setStyle({ markerColor: \"#F00\" });\n```\n\n## Public methods\n\n| method     | params     | description                           |\n| ---------- | ---------- | ------------------------------------- |\n| `setStyle` | `{Object}` | update the icon with new style config |\n\n[npm-image]: https://badge.fury.io/js/leaflet-fa-markers.svg\n[npm-url]: https://www.npmjs.com/package/leaflet-fa-markers\n[npm-downloads-image]: https://img.shields.io/npm/dt/leaflet-fa-markers.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanwild%2Fleaflet-fa-markers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanwild%2Fleaflet-fa-markers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanwild%2Fleaflet-fa-markers/lists"}