Skip to content

smellman/openmaptiles-bright-pkl

Repository files navigation

OSM Bright style written in Pkl language

This is a fork of the OSM Bright style that has been converted to the Pkl language.

How to use

To use this style, you need to convert it to the GL JSON format. You can do this by running the following command:

pkl eval -f json style.pkl > style.json

How to validate

To validate the style, you can run the following command:

pkl eval -f json style.pkl | gl-style-validate

Or zsh:

gl-style-validate <(pkl eval -f json style.pkl)

Also you need install 'gl-style-validate' command:

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

Preview

https://smellman.github.io/openmaptiles-bright-pkl

or run following command:

npm install -g serve
pkl eval -f json style.pkl > style.json
serve -C -p 3000

then open http://localhost:3000/preview

License

The code in this repository is licensed under the BSD 3-Clause License.

The design of the style is licensed under the CC-BY 4.0 License.