{"id":21993175,"url":"https://github.com/kaditya97/maplibre-graticule","last_synced_at":"2025-03-23T03:42:39.907Z","repository":{"id":192227888,"uuid":"685520613","full_name":"kaditya97/maplibre-graticule","owner":"kaditya97","description":"Graticuel / Grid plugin for MapLibre GL JS / Mapbox GL JS","archived":false,"fork":false,"pushed_at":"2024-01-09T04:16:50.000Z","size":72,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-26T10:21:29.017Z","etag":null,"topics":["graticule","grid","maplibre-gl-js"],"latest_commit_sha":null,"homepage":"https://kaditya97.github.io/maplibre-graticule/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaditya97.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-08-31T12:21:11.000Z","updated_at":"2023-12-04T13:25:33.000Z","dependencies_parsed_at":"2023-09-03T14:33:41.586Z","dependency_job_id":"73b0e27e-54d6-4e11-89ee-49cfe0829ed7","html_url":"https://github.com/kaditya97/maplibre-graticule","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"be5cba0ba92fa14bffaeb557feb5dd93accbfb34"},"previous_names":["kaditya97/maplibre-graticule"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaditya97%2Fmaplibre-graticule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaditya97%2Fmaplibre-graticule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaditya97%2Fmaplibre-graticule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaditya97%2Fmaplibre-graticule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaditya97","download_url":"https://codeload.github.com/kaditya97/maplibre-graticule/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244767785,"owners_count":20507110,"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":["graticule","grid","maplibre-gl-js"],"created_at":"2024-11-29T20:16:10.743Z","updated_at":"2025-03-23T03:42:39.894Z","avatar_url":"https://github.com/kaditya97.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# maplibre-graticule\n\nCheck the demo here [Link](https://kaditya97.github.io/maplibre-graticule/)\n\n## Install\n\n```bash\nnpm install maplibre-gl maplibre-graticule\n```\n\nor\n\n```html\n\u003clink href=\"https://unpkg.com/maplibre-gl@5.1.1/dist/maplibre-gl.css\" rel=\"stylesheet\" /\u003e\n\u003cscript src=\"https://unpkg.com/maplibre-gl@5.1.1/dist/maplibre-gl.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/maplibre-graticule@0.0.4/dist/maplibre-graticule.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n```jsx\nimport Maplibre from 'maplibre-gl';\nimport MaplibreGraticule from 'maplibre-graticule';\n```\n\n## Example usage\nCheck docs/index.html for example implementation.\n```Javascript\nconst graticule = new MaplibreGraticule({\n    minZoom: 0,\n    maxZoom: 20,\n    showLabels: true,\n    labelType: 'hdms',\n    labelSize: 12,\n    labelColor: \"#0000ee\",\n    longitudePosition: 'bottom',\n    latitudePosition: 'right',\n    paint: {\n      'line-opacity': 0.8,\n      'line-color': \"rgba(255,120,0,0.9)\",\n      'line-dasharray': [2, 1],\n    }\n});\nmap.addControl(graticule);\n```\n\n### Remove\n\n```Javascript\nmap.removeControl(graticule);\n```\n\n### Options for use\n\n- `minZoom` - number, min zoom to display the grid, **default: 0**\n- `maxZoom` - number, max zoom to display the grid , **default: 20**\n- `showLabels` - boolean, true | false to show label, **default: false** \n- `labelType` - 'hdms' | 'decimal', type of label to show, **default: hdms**\n- `labelSize` - number, size to display the label, **default: 12**\n- `labelColor` - string, color to display the label, **default: #000000**\n- `longitudePosition` - 'top' | 'bottom', longitude label position, **default: bottom**\n- `latitudePosition` - 'left' | 'right', latitude lable position, **default: right**\n- `longitudeOffset` - number[], offset to shift longitude label, **default: [0, 0]**\n- `latitudeOffset` - number[], offset to shift latitude label, **default: [0, 0]**\n- `paint` - maplibregl.LinePaint, layer line paint properties\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaditya97%2Fmaplibre-graticule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaditya97%2Fmaplibre-graticule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaditya97%2Fmaplibre-graticule/lists"}