Skip to content

Instantly share code, notes, and snippets.

@boulderalf
Created December 6, 2012 23:29
Show Gist options
  • Save boulderalf/4229394 to your computer and use it in GitHub Desktop.
Save boulderalf/4229394 to your computer and use it in GitHub Desktop.
:: make sure that your current directory is the one that contains the TileMill-specific node.exe
cd "C:\Program Files (x86)\TileMill-v0.10.1\tilemill"
:: select the TileMill project name
SET TM_PROJECT=chaco
:: I want to export to MBTiles so I need to specify where to render the file
SET TM_FILE=%~dp0/%TM_PROJECT%.mbtiles
:: render the project
node index.js export %TM_PROJECT% %TM_FILE% --format=mbtiles
:: upload the MBTiles file to your MapBox account.
:: you will need to specify your own <syncAccount> and <syncAccessToken> values
node index.js export %TM_PROJECT% %TM_FILE% --format=upload --syncAccount=<syncAccount> --syncAccessToken=<synchAccessToken>
@springmeyer
Copy link

Feel free to contribute to the documentation. We plan to write more details up, just was waiting until windows worked better and running from the command line did not require setting custom ENV settings for PATH (getting close): https://github.com/mapbox/tilemill/issues/1742

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment