{"id":16200075,"url":"https://github.com/rinigus/mapbox-gl-styles","last_synced_at":"2026-02-09T09:32:32.855Z","repository":{"id":45588495,"uuid":"112853464","full_name":"rinigus/mapbox-gl-styles","owner":"rinigus","description":"Collection of Mapbox GL styles","archived":false,"fork":false,"pushed_at":"2024-01-21T20:03:55.000Z","size":1702,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-18T13:51:02.015Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Less","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/rinigus.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":"2017-12-02T15:33:10.000Z","updated_at":"2023-07-14T02:08:11.000Z","dependencies_parsed_at":"2024-11-03T09:23:51.217Z","dependency_job_id":"f6c2d183-d173-47c5-8fc6-d6d7461a8405","html_url":"https://github.com/rinigus/mapbox-gl-styles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rinigus/mapbox-gl-styles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinigus%2Fmapbox-gl-styles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinigus%2Fmapbox-gl-styles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinigus%2Fmapbox-gl-styles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinigus%2Fmapbox-gl-styles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rinigus","download_url":"https://codeload.github.com/rinigus/mapbox-gl-styles/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinigus%2Fmapbox-gl-styles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271454821,"owners_count":24762698,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"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":[],"created_at":"2024-10-10T09:29:11.246Z","updated_at":"2026-02-09T09:32:27.792Z","avatar_url":"https://github.com/rinigus.png","language":"Less","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mapbox GL Styles\n\nCollection of Mapbox GL styles and sprites. The styles are developed targeting\nsupport for [OSM Scout Server](https://github.com/rinigus/osmscout-server) clients and tiles built using\nscripts from https://github.com/rinigus/mapbox-gl-importer . See [README.md](https://github.com/rinigus/mapbox-gl-importer/blob/master/README.md)\nfor description of the tile schema.\n\n\n# Support packages\n\nAs spritezero is supported in Node.js version 8, install [nvm](https://github.com/nvm-sh/nvm) and use it to get correct packages installed:\n```\nnvm install 8\nnvm use 8\nnpm install\n```\n\nThis is needed for generation of sprites and styles.\n\n# Sprites\n\nIcons are based on\n[Maki icon set by Mapbox](https://github.com/mapbox/maki) and on icon\nset distributed by OpenMapTiles with OSM Bright Style\n(https://github.com/openmaptiles/osm-bright-gl-style).\n\nTo regenerate sprite set, install `spritezero-cli`:\n\n```\nnpm install @mapbox/spritezero-cli\n```\n\nGenerate sprites (used ratio 4):\n\n```\nspritezero --ratio 4 sprites/sprite svg\n```\n\nScript `bin/make_icons` allows to regenerate all supported icons for OSM Scout Server.\n\n\n# Styles\n\nStyles are generated using a set of scripts allowing you to use\n\n* variables for definition of colors and other features,\n* split layers into smaller subsections and edit them one-by-one.\n\nThis approach is similar to CartoCSS when used to generate Mapnik styles.\n\nEach style should be contained in one folder and consists of at least three files:\n\n* `style.json` - Mapbox GL style JSON with its \"layers\" replaced later by the generated layers. Thus, don't define layers in this file.\n* `layers` - space or newline separated list of JSON files defining a subarray with layers definitions. The file names should be given as relative to the style directory.\n* `variables.less` - definition of global variables using [LESS](http://lesscss.org/) syntax\n\nIn `style.json` and JSON files used to define layers, you could use variables defined in LESS `variables.less` file as `%variable_name%` where this string will be replaced by the variable value as found by LESS processor.\n\nRequirements are\n\n* bash\n* node\n\nTo make local node scripts available, run `npm install`\n\nWhen working with styles, run `bin/styler` to generate Mapbox GL style. This script requires style directory as the first argument and the output directory as the second. In addition, it accepts extra arguments that will be passed to [`variable-replacer`](https://github.com/felicienfrancois/node-variable-replacer) as extra arguments. For example,\n\n* `bin/styler styles/src/osmbright/ styles --data-hosturl=\"http://HOSTNAMEPORT\"`\n\nwill generate Mapbox GL style compatible with OSM Scout Server where `hosturl` variable is replaced by `http://HOSTNAMEPORT`. As a limitation, it looks like\nvariable values cannot contain `:` symbol.\n\nScript `bin/make_styles` allows to regenerate all supported styles for OSM Scout Server.\n\n\n# Testing\n\nIt is possible to test developed styles using `maptiler/tileserver-gl` Docker image. After generation of the styles, run `bin/tileserver` with MBTiles file as an argument. It will pick up all styles in `styles` subfolder, use sprites in `sprites`, pull Docker image and serve the maps via it. Port can be specified via `--port` option.\n\nFor testing, it is possible to specify path of font glyphs directory with the subfolders of that directory having a font name (option `--glyphs`). That allows to replace fonts provided by Docker image. When developing styles for OSM Scout Server, fonts imported by scripts from https://github.com/rinigus/mapbox-gl-fonts are used.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinigus%2Fmapbox-gl-styles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frinigus%2Fmapbox-gl-styles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinigus%2Fmapbox-gl-styles/lists"}