SVG Map Generator

How to use

Kartograph.py is a Python library for generating SVG maps. Essentially, you don't have to write a single line of Python code to generate a map. Instead, every parameter can be controlled by a single configuration file, which you can write in JSON or YAML.

This section will be improved in the near future, including tutorials and step-by-step examples of how to use Kartograph on your website. Please follow @kartographjs for updates.

API Docs Source
import kartograph

opts = {
    "layers": [{
        "src": "countries.shp",
        "filter": ["ISO", "is", "USA"]
    "bounds": {
        "mode": "bbox",
        "data": [-100,30,-60,60]