14.2.0 • Published 28 days ago

@mapbox/mapbox-gl-style-spec v14.2.0

Weekly downloads
42,309
License
SEE LICENSE IN LI...
Repository
github
Last release
28 days ago

Mapbox GL style specification & utilities

This directory contains code and reference files that define the Mapbox GL style specification and provides some utilities for working with Mapbox styles.

npm package

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

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

CLI Tools

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

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

gl-style-composite

$ gl-style-composite style.json

Will take a non-composited style and produce a composite style.

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.

To validate that a style can be uploaded to the Mapbox Styles API, use the --mapbox-api-supported flag.

License

This project uses the standard Mapbox license, which is designed to provide flexibility for our customers and a sustained foundation for the development of our technology. Please consult LICENSE.txt for its specific details.

We understand that the Mapbox Style Specification embodied in this module may be useful in a wide variety of projects. If you are interested in using this module in a manner not expressly permitted by its license, please do not hesitate to contact legal@mapbox.com with details of what you have in mind.

14.2.0

28 days ago

14.2.0-beta.1

1 month ago

14.1.0

2 months ago

14.1.0-beta.1

3 months ago

14.0.0-rc.2

5 months ago

14.0.0-rc.1

5 months ago

14.0.0

4 months ago

14.0.0-beta.3

6 months ago

14.0.0-beta.2

7 months ago

14.0.0-beta.1

8 months ago

14.0.0-beta.4

6 months ago

13.28.0-beta.1

1 year ago

13.28.0

1 year ago

13.27.0

1 year ago

13.27.0-beta.1

1 year ago

13.26.0

2 years ago

13.25.0

2 years ago

13.25.0-beta.1

2 years ago

13.25.0-beta.2

2 years ago

13.24.0

2 years ago

13.24.0-beta.1

2 years ago

13.24.0-alpha.6

2 years ago

13.24.0-alpha.2

2 years ago

13.24.0-alpha.3

2 years ago

13.23.1-beta.1

2 years ago

13.23.1

2 years ago

13.24.0-alpha.1

2 years ago

13.23.0

2 years ago

13.23.0-beta.2

2 years ago

13.23.0-beta.1

2 years ago

13.22.0

2 years ago

13.22.0-beta.1

3 years ago

13.21.0

3 years ago

13.20.1

3 years ago

13.20.0

3 years ago

13.20.0-beta.1

3 years ago

13.19.2

3 years ago

13.19.1

3 years ago

13.19.0

3 years ago

13.19.0-beta.1

3 years ago

13.18.1

3 years ago

13.18.0

3 years ago

13.17.1

3 years ago

13.17.0

4 years ago

13.16.0

4 years ago

13.15.0

4 years ago

13.14.0

4 years ago

13.13.1

4 years ago

13.13.0

4 years ago

13.12.0

4 years ago

13.11.0

4 years ago

13.10.2

4 years ago

13.10.1

4 years ago

13.10.0

4 years ago

13.9.1

4 years ago

13.9.0

5 years ago

13.8.0

5 years ago

13.7.2

5 years ago

13.7.2-alpha.1

5 years ago

13.7.1

5 years ago

13.7.0

5 years ago

13.6.0

5 years ago

13.5.0

5 years ago

13.4.0

5 years ago

13.3.0

5 years ago

13.2.1

6 years ago

13.2.0

6 years ago

13.1.1

6 years ago

13.1.1-beta.1

6 years ago

13.1.0

6 years ago

13.0.1

6 years ago

13.0.0-beta.1

6 years ago

13.0.0

6 years ago

12.0.0

6 years ago

12.0.0-pre.1

6 years ago

11.1.1

6 years ago

11.1.0

6 years ago

11.0.0

6 years ago

10.1.0

6 years ago

10.0.1

6 years ago

10.0.0

6 years ago

9.0.1

7 years ago

9.0.0

7 years ago

8.11.0

7 years ago

8.11.0-dev

7 years ago

8.11.0-test.0

7 years ago