Created
December 6, 2012 23:29
-
-
Save boulderalf/4229394 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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