Skip to content

Converts Mapbox-GL-JS style files between three popular OSM vector tile schemas.

Notifications You must be signed in to change notification settings

katoree/portable-vector-style

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Converts Mapbox-GL-JS style files between three popular OSM vector tile schemas.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.4%
  • HTML 12.6%