Converts Mapbox-GL-JS style files between three popular OSM vector tile schemas.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
img Image in README. Hopefully. Aug 17, 2017
in Initial commit. Aug 17, 2017
out Initial commit. Aug 17, 2017
README.md Update README.md Jan 16, 2018
index.html Initial commit. Aug 17, 2017
index.js Initial commit. Aug 17, 2017

README.md

Moved

This project is now at https://gitlab.com/stevage/mapbox2tangram, with many more updates.

Old readme

This tool helps you port style files for Mapbox-GL-JS between three major OpenStreetMap vector tile providers: Mapbox, MapZen and OpenMapTiles. It's at an early proof-of-concept stage.

For instance, here's OpenMapTiles.org's "OsmBright" style (on the left), as converted for Mapbox (centre), and Mapzen (right).

Example of three maps

Remember that not all style files are open sourced. Please do not use this tool to rip off Mapbox's proprietary styles – or anyone else's for that matter..

How to use

  1. Put a style file in in/mystyle.json
  2. Modify index.js to point to it :)
  3. Run index.js
  4. Output goes into out/mystyle-mapbox.json and out/mystyle-mapzen.json
  5. Serve up the directory, say python -m SimpleHTTPServer 8000
  6. Go to localhost:8000/#mystyle