{"id":26164626,"url":"https://github.com/fxi/geotickgen","last_synced_at":"2026-05-27T21:31:31.870Z","repository":{"id":186496120,"uuid":"675277389","full_name":"fxi/geotickgen","owner":"fxi","description":"Lat/Long ticks on mapbox-gl / maplibre maps","archived":false,"fork":false,"pushed_at":"2023-08-16T07:50:01.000Z","size":1024,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-13T05:29:28.514Z","etag":null,"topics":["latlong","map","maplibre-gl-js","ticks"],"latest_commit_sha":null,"homepage":"http://fxi.io/geotickgen/","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/fxi.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":"2023-08-06T11:44:31.000Z","updated_at":"2024-11-08T14:18:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"36c35b44-ef34-4f5d-9305-1aad7efdf238","html_url":"https://github.com/fxi/geotickgen","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"6be9530fe0b0b190d990eabf43f601b77c7f9c62"},"previous_names":["fxi/geotickgen"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fxi/geotickgen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxi%2Fgeotickgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxi%2Fgeotickgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxi%2Fgeotickgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxi%2Fgeotickgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fxi","download_url":"https://codeload.github.com/fxi/geotickgen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxi%2Fgeotickgen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33585203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["latlong","map","maplibre-gl-js","ticks"],"created_at":"2025-03-11T15:36:38.857Z","updated_at":"2026-05-27T21:31:31.843Z","avatar_url":"https://github.com/fxi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GeoTickGen\n\nLat/Long ticks generator for mapbox-gl / maplibre maps.\n\n![GeoTickGen Demo Image](./img/demo.jpg) \n\n## Installation\n\nThere are two main methods to include `GeoTickGen` in your project:\n\n### 1. Directly from a CDN:\n\n```javascript\nimport { GeoTickGen } from \"https://cdn.jsdelivr.net/npm/@fxi/geotickgen/+esm\";\n```\n\n### 2. Using npm:\n\nFirst, install the package:\n\n```bash\nnpm install @fxi/geotickgen\n```\n\nThen, import in your project:\n\n```javascript\nimport { GeoTickGen } from \"@fxi/geotickgen\";\n```\n\n## Usage\n\nAfter importing, you can easily use `GeoTickGen` to generate Lat/Long ticks on your mapbox-gl or maplibre maps:\n\n```javascript\nconst map = new mapboxgl.Map({\n  // ... your map initialization here\n});\n\nconst tickGen = new GeoTickGen(map, {\n  // ... your optional configurations here\n});\n```\n\n```css\n.gtg-container {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  pointer-events: none;\n}\n\n.gtg-outline {\n  stroke: #fff;\n  fill: #000;\n  font-family: monospace;\n  font-size: 12px; /*should match configuration*/\n  paint-order: stroke;\n  stroke-width: 3px;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n}\n```\n\n\n\n## Configuration\n\nDefault options:\n\n```javascript\n{\n  ticks: {\n    sizeMinor: 10, // tick width\n    sizeMajor: 20, // major tick width\n    nStepMinor: 50, // number of step\n    nStepMajor: 10, // major step each n\n    enableLat: true, // show latitudes \n    enableLng: true, // show longitudes\n    fontSize: 12, // for compute label position. Should match CSS\n    offsetLabel: 4, // distance tick-label\n    offsets: { // offsets of ticks bars\n      lat: {\n        top: 0,\n        right: 0,\n        bottom: 0,\n        left: 0,\n      },\n      lng: {\n        top: 0,\n        right: 0,\n        bottom: 0,\n        left: 0,\n      },\n    },\n  },\n};\n```\n\nYou can override these options by passing in your own configuration object when creating an instance of `GeoTickGen`.\n\n## Issues \u0026 Contributions\n\nIf you encounter any issues or would like to contribute, please open an issue or a pull request on the [GitHub repository](https://github.com/fxi/geotickgen).\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffxi%2Fgeotickgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffxi%2Fgeotickgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffxi%2Fgeotickgen/lists"}