Mapbox GL Spec & Lint

GL style spec, validation, and migration scripts for mapbox-gl-js and
mapbox-gl-native.
Install
npm install -g mapbox-gl-style-spec
Provides the utilities:
gl-style-migrate
gl-style-format
gl-style-validate
Validation
$ gl-style-validate style.json
Will validate the given style JSON and print errors to stdout. Provide a
--json flag to get JSON output.
Migrations
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
Tests
To run tests:
npm install
npm test
To update test fixtures
UPDATE=true npm test
Documentation
- The utility reference page API.md is generated automatically from inline source documentation.
- The style reference page exists here:
docs/_generate/index.html and can be edited directly.
To view the documentation, run
npm start
and open the served page
open http://127.0.0.1:4000/mapbox-gl-style-spec
Current Tags
-
0.0.3
...
0.0.3
(12 years ago)
-
8.11.0
...
latest
(9 years ago)
43 Versions
-
8.11.0
[deprecated]
...
9 years ago
-
8.10.0
[deprecated]
...
9 years ago
-
8.9.0
[deprecated]
...
10 years ago
-
8.8.1
[deprecated]
...
10 years ago
-
8.8.0
[deprecated]
...
10 years ago
-
8.7.0
[deprecated]
...
10 years ago
-
8.6.1
[deprecated]
...
10 years ago
-
8.6.0
[deprecated]
...
10 years ago
-
8.5.1
[deprecated]
...
10 years ago
-
8.5.0
[deprecated]
...
10 years ago
-
8.4.2
[deprecated]
...
10 years ago
-
8.4.1
[deprecated]
...
10 years ago
-
8.4.0
[deprecated]
...
10 years ago
-
8.3.0
[deprecated]
...
10 years ago
-
8.2.1
[deprecated]
...
10 years ago
-
8.2.0
[deprecated]
...
11 years ago
-
8.1.0
[deprecated]
...
11 years ago
-
8.0.1
[deprecated]
...
11 years ago
-
8.0.0
[deprecated]
...
11 years ago
-
7.5.0
[deprecated]
...
11 years ago
-
7.4.2
[deprecated]
...
11 years ago
-
7.4.1
[deprecated]
...
11 years ago
-
7.4.0
[deprecated]
...
11 years ago
-
7.0.2
[deprecated]
...
11 years ago
-
7.0.1
[deprecated]
...
11 years ago
-
7.0.0
[deprecated]
...
11 years ago
-
6.1.1
[deprecated]
...
11 years ago
-
6.1.0
[deprecated]
...
11 years ago
-
6.0.3
[deprecated]
...
11 years ago
-
6.0.2
[deprecated]
...
11 years ago
-
6.0.1
[deprecated]
...
11 years ago
-
6.0.0
[deprecated]
...
11 years ago
-
0.0.10
[deprecated]
...
11 years ago
-
0.0.9
[deprecated]
...
11 years ago
-
0.0.8
[deprecated]
...
11 years ago
-
0.0.7
[deprecated]
...
11 years ago
-
0.0.6
[deprecated]
...
11 years ago
-
0.0.5
[deprecated]
...
12 years ago
-
0.0.4
[deprecated]
...
12 years ago
-
0.0.3
[deprecated]
...
12 years ago
-
0.0.2
[deprecated]
...
12 years ago
-
0.0.1
[deprecated]
...
12 years ago
-
0.0.0
[deprecated]
...
12 years ago