(view source)Visual Map Configurator

Here's the JSON config that you can pass to Kartograph. Note that you probably need to update the path of the shapefile. This example uses the admin0 countries of the natural earth project.

generate svg map