A basic code editor for Mapbox Gl Styles, inspired by mapbox-gl-codeflow-example.
The primary differences in this one:
- Support for font processing via genfontgl.
- Support for SVG processing via spritezero-cli.
- GL Spec validation moved from client to node.
To get started, first install the dependencies.
npm install
Then start the server:
gulp --style=bright
The style argument is a folder in styles folder. Each style folder should contain:
- The Mapbox GL style file as
style.json
. - A
font
folder containing any font files to be converted to protobuf. - A
svg
folder containing SVG's to be rendered to a sprite file.
When finished, the style file and rendered assets are in the app
folder.