@maplibre/maplibre-gl-style-spec
a specification for maplibre styles
Last updated 2 months ago by maplibreorg .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @maplibre/maplibre-gl-style-spec 
SYNC missed versions from official npm registry.

MapLibre Style Specification & Utilities

NPM Version License PRs codecov

This repository contains code and reference files that define the MapLibre style specification and provides some utilities for working with MapLibre styles.

The style specification is used in MapLibre GL JS and in MapLibre Native. Our long-term goal is to have feature parity between the web and the native libraries.

Contributing

If you want to contribute to the style specification, please open an issue with a design proposal. Once your design proposal has been accepted, you can open a pull request and implement your changes.

We aim to avoid breaking changes in the MapLibre style specification, because it makes life easier for our users.

Documentation

The documentation of the style specification also lives in this repository. We use MkDocs with the Material for MkDocs theme.

To work on the documentation locally, you need to have Docker installed and running. Start MkDocs with

npm run mkdocs

Most of the documentation is generated (from e.g. v8.json). In another terminal, run:

WATCH=1 npm run generate-docs

This will re-run the generation script when needed.

Note that generated files should not be checked in and they are excluded in .gitignore. Make sure to keep this file up-to-date and ignore generated files while making sure static Markdown files are not ignored.

NPM Package

The MapLibre style specification and utilities are published as a separate npm package so that they can be installed without the bulk of GL JS.

npm install @maplibre/maplibre-gl-style-spec

CLI Tools

If you install this package globally, you will have access to several CLI tools.

npm install @maplibre/maplibre-gl-style-spec --global

gl-style-migrate

This repo contains scripts for migrating GL styles of any version to the latest version (currently v8). Migrate a style like this:

$ gl-style-migrate bright-v7.json > bright-v8.json

To migrate a file in place, you can use the sponge utility from the moreutils package:

$ brew install moreutils
$ gl-style-migrate bright.json | sponge bright.json

gl-style-format

$ gl-style-format style.json

Will format the given style JSON to use standard indentation and sorted object keys.

gl-style-validate

$ gl-style-validate style.json

Will validate the given style JSON and print errors to stdout. Provide a --json flag to get JSON output.

Current Tags

  • 22.0.1                                ...           latest (a month ago)
  • 18.0.1-pre.15                                ...           next (2 years ago)

53 Versions

  • 22.0.1                                ...           a month ago
  • 22.0.0                                ...           a month ago
  • 21.2.0                                ...           2 months ago
  • 21.1.0                                ...           2 months ago
  • 21.0.0                                ...           2 months ago
  • 20.4.0                                ...           2 months ago
  • 20.3.1                                ...           4 months ago
  • 20.3.0                                ...           7 months ago
  • 20.2.0                                ...           8 months ago
  • 20.1.1                                ...           a year ago
  • 20.1.0                                ...           a year ago
  • 20.0.0                                ...           a year ago
  • 19.3.3                                ...           a year ago
  • 19.3.2                                ...           a year ago
  • 19.3.1                                ...           a year ago
  • 19.3.0                                ...           a year ago
  • 19.2.2                                ...           a year ago
  • 19.2.1                                ...           2 years ago
  • 19.2.0                                ...           2 years ago
  • 19.1.0                                ...           2 years ago
  • 19.0.1                                ...           2 years ago
  • 19.0.0                                ...           2 years ago
  • 18.0.1                                ...           2 years ago
  • 18.0.1-pre.15                                ...           2 years ago
  • 18.0.1-pre.14                                ...           2 years ago
  • 18.0.1-pre.13                                ...           2 years ago
  • 18.0.1-pre.12                                ...           2 years ago
  • 18.0.1-pre.11                                ...           2 years ago
  • 18.0.1-pre.10                                ...           2 years ago
  • 18.0.1-pre.9                                ...           2 years ago
  • 18.0.1-pre.8                                ...           2 years ago
  • 18.0.1-pre.7                                ...           2 years ago
  • 18.0.1-pre.6                                ...           2 years ago
  • 18.0.1-pre.5                                ...           2 years ago
  • 18.0.1-pre.4                                ...           2 years ago
  • 18.0.1-pre.3                                ...           2 years ago
  • 18.0.1-pre.2                                ...           2 years ago
  • 18.0.1-pre.1                                ...           2 years ago
  • 18.0.0                                ...           2 years ago
  • 17.1.1-pre.4                                ...           2 years ago
  • 17.1.1-pre.3                                ...           2 years ago
  • 17.1.1-pre.2                                ...           2 years ago
  • 17.1.1-pre.1                                ...           2 years ago
  • 17.1.0                                ...           2 years ago
  • 17.0.2                                ...           2 years ago
  • 17.0.1                                ...           2 years ago
  • 17.0.0                                ...           2 years ago
  • 16.0.0                                ...           3 years ago
  • 15.0.0                                ...           3 years ago
  • 14.0.2                                ...           3 years ago
  • 14.0.1                                ...           3 years ago
  • 14.0.1-rc.1                                ...           3 years ago
  • 14.0.0                                ...           4 years ago
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE