{"id":20486240,"url":"https://github.com/undp-data/style","last_synced_at":"2025-06-24T13:10:57.682Z","repository":{"id":41896146,"uuid":"478632033","full_name":"UNDP-Data/style","owner":"UNDP-Data","description":"This repository is to manage the style.json for base map of geohub","archived":false,"fork":false,"pushed_at":"2025-06-23T01:50:30.000Z","size":2474,"stargazers_count":2,"open_issues_count":4,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-23T02:41:24.037Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://unpkg.com/@undp-data/style@latest/dist/style.json","language":"Makefile","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/UNDP-Data.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-06T16:04:04.000Z","updated_at":"2025-05-21T06:23:07.000Z","dependencies_parsed_at":"2024-05-08T01:45:19.421Z","dependency_job_id":"e95bcce1-fd59-4fba-baaa-e68ced08160b","html_url":"https://github.com/UNDP-Data/style","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/UNDP-Data/style","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UNDP-Data%2Fstyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UNDP-Data%2Fstyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UNDP-Data%2Fstyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UNDP-Data%2Fstyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UNDP-Data","download_url":"https://codeload.github.com/UNDP-Data/style/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UNDP-Data%2Fstyle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261402881,"owners_count":23153199,"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-15T16:35:48.597Z","updated_at":"2025-06-24T13:10:57.662Z","avatar_url":"https://github.com/UNDP-Data.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @undp-data/style\n\nThis repository is to manage the style.json for base map of geohub\n\n## Usage\n\nShow the usage of all commands with the below help command\n\n```shell\nmake help\n```\n\n### Maplibre style.json\n\nCheck the latest version of `@undp-data/style` package at [npmjs](https://www.npmjs.com/package/@undp-data/style?activeTab=versions), and replace the version of `0.0.1` to the latest one. Or, you may use `latest` to fetch style.json from CDN. But we strongly recommend to specify the version to prevent any breaking change error on style.json.\n\n- Voyager style\n\n```\nhttps://unpkg.com/@undp-data/style@latest/dist/style.json\n```\n\n- Bing aerial style\n\n```\nhttps://unpkg.com/@undp-data/style@latest/dist/aerialstyle.json\n```\n\n- Dark style\n\n```\nhttps://unpkg.com/@undp-data/style@latest/dist/dark.json\n```\n\n- Positron style\n\n```\nhttps://unpkg.com/@undp-data/style@latest/dist/positron.json\n```\n\n### Sprite\n\n- SDF\n\n```\nhttps://unpkg.com/@undp-data/style@latest/dist/sprite/sprite\n```\n\nNote. Don't upgrade spritezero to v6.2.1 since it has a bug when we specify --ratio=2.\n\n- Non SDF\n\n```\nhttps://unpkg.com/@undp-data/style@latest/dist/sprite-non-sdf/sprite\n```\n\n\n## Install\n\n```shell\npnpm i\n```\n\n### M1 Mac\n\nIf you are using M1 Mac, sprite-zero cannot be installed in normal nodejs, so please install nodejs by using NVM as following commands.\n\n```shell\n$nvm uninstall 18\n$arch -x86_64 zsh\n$nvm install 18\n$nvm alias default 18\n```\n\n## Build all style and sprite\n\n```shell\nmake build\n```\n\n## Build style.json\n\n```shell\nmake style\n```\n\n## Build sprite\n\n```shell\nmake sprite\n```\n\n## Develop style.json\n\n- launch preview for OSM style\n\n```shell\nmake voyager\n```\n\n- launch preview for Bing aerial style\n\n```shell\nmake aerial\n```\n\n- launch preview for Dark style\n\n```shell\nmake dark\n```\n\n- launch preview for Positron style\n\n```shell\nmake positron\n```\n\n## Release map style\n\nThe procedure for releasing map style to NPM is as follows.\n\n- create release note by the following command `pnpm changeset`.\n- create new PR to merge to main branch.\n- changeset will create new PR to release packages.\n- changeset will release packages once the PR is merged to main.\n\n## License\n\nThe license of style belong to CARTO. See [License](./LICENSE).\n\nThe license of source code is MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fundp-data%2Fstyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fundp-data%2Fstyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fundp-data%2Fstyle/lists"}