Skip to content

Maputnik CLI

pathmapper edited this page Feb 9, 2019 · 7 revisions

The Maputnik CLI is a Golang based cross platform executable. This binary packages up the JavaScript and CSS and embeds it in the program for easy distribution. It also allows exposing a local style file and work on it both in Maputnik and with your favorite editor.

Install

You can download a single binary for Linux, OSX or Windows from the latest releases of maputnik/editor.

Usage

Simply start up a web server and access the Maputnik editor GUI at localhost:8000.

maputnik

Expose a local style file to Maputnik allowing the web based editor to save to the local filesystem.

maputnik --file basic-v9.json

Watch the local style for changes and inform the editor via web socket. This makes it possible to edit the style with a local text editor and still use Maputnik.

maputnik --watch --file basic-v9.json

Video

📹 https://youtu.be/vCFsrwocE9s

Edit local Style JSON with Maputnik

Other Resources

Clone this wiki locally