{"id":19556138,"url":"https://github.com/geovation/labelgun","last_synced_at":"2025-04-10T03:55:17.219Z","repository":{"id":44454023,"uuid":"71731364","full_name":"Geovation/labelgun","owner":"Geovation","description":"🏷️ reducing label clutter across mapping libraries","archived":true,"fork":false,"pushed_at":"2021-07-28T09:31:23.000Z","size":15812,"stargazers_count":115,"open_issues_count":5,"forks_count":10,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-10T03:55:10.551Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://geovation.github.io/labelgun/","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/Geovation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-23T21:39:32.000Z","updated_at":"2025-04-09T09:10:56.000Z","dependencies_parsed_at":"2022-08-28T21:22:34.138Z","dependency_job_id":null,"html_url":"https://github.com/Geovation/labelgun","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geovation%2Flabelgun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geovation%2Flabelgun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geovation%2Flabelgun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geovation%2Flabelgun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Geovation","download_url":"https://codeload.github.com/Geovation/labelgun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248155000,"owners_count":21056542,"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-11-11T04:36:55.317Z","updated_at":"2025-04-10T03:55:17.200Z","avatar_url":"https://github.com/Geovation.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![labelgun](logo.png)\n\n\u003c/br\u003e\n\n## What is Labelgun?\nLabelgun is a mapping library agnostic labelling engine. It allows you to avoid cluttering in mapping popups and labels, providing precedence to labels of your choice.\n\nThe library makes three assumptions:\n\n* Each label has a bounding rectangle (Min X, Min Y, Max X, Max Y)\n* Each label has a weight\n* You can provide a function that will hide and show a label (e.g. changing a CSS class or calling a mapping library method)\n\n\u003cp align=\"center\"\u003e\n    \u003cimg alt=\"Labelgun example in leaflet\" src=\"labelgun.gif\"\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\n## Using Labelgun\n\n### Use\n\nYou can use labelgun in your project via npm such as:\n\n`npm install labelgun --save`\n\nOr if you're using `yarn`:\n\n`yarn add labelgun`\n\nYou can also use a auto-generated **CDN** thanks to unpkg :\n\n`https://unpkg.com/labelgun@6.0.0/lib/labelgun.js`\n\n### Docs and Demos\n\nCheck out the [docs and demos live here](http://geovation.github.io/labelgun/)\n\nA nice interactive way to play with the demos locally is to use a hot reloading web server such as live-server:\n\n`npm install -g live-server`\n\n`live-server`\n\n## Developing\n\nFor instructions please see the [DEVELOPING](https://github.com/geovation/labelgun/blob/master/DEVELOPING.md) document.\n\n## Users\n\n- [Vroom](http://vroom-project.org/) - Vehicle routing optimisation software\n- [OL Mapbox Style](https://github.com/boundlessgeo/ol-mapbox-style) - Use Mapbox Style objects with OpenLayers\n- [qgis2web](https://github.com/tomchadwin/qgis2web) - A QGIS plugin to export a map to an OpenLayers/Leaflet webmap\n\nUsing Labelgun? Open a pull request and let us know!\n\n## Acknowledgements\nLabelgun as an open source project was made possible thanks to [Podaris](http://www.podaris.com).\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeovation%2Flabelgun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeovation%2Flabelgun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeovation%2Flabelgun/lists"}