I get a "Uncaught TypeError: Cannot read property 'getAttribute' of undefined" error with this simple code: var map = kartograph.map('#map', 600, 400); map.loadMap('arg.svg', function() { // do something with your map, add layers etc. });