Questions tagged [kartograph]

Kartograph is a framework for drawing interactive maps with Python and JavaScript.

Kartograph is a framework for drawing interactive maps. It works with python and javascript.

30 questions
6
votes
1 answer

Kartograph python script generates SVG with incorrect lat/long coords

I have modified this question to reflect some progress on discovering the problem. I am using the following python code to generate an SVG of the continental USA. The shapefile is irrelevant, as the problem I describe occurs regardless of what…
AustinC
  • 826
  • 1
  • 8
  • 23
4
votes
1 answer

Making custom, fictional maps with D3.js

I'm kicking around an idea for a side project and am looking for advice on which direction to go in terms of technology. I've done some research already, but am still fairly confused as to what the realistic options are. I'd like to make an…
4
votes
3 answers

How to generate a world map outlining countries using kartograph

I have been recently taking a look at kartograph. I understand that we generate the svg with kartograph.py and then use the svg in kartograph.js to render maps in a web interface. I want to generate something like this…
vumaasha
  • 2,765
  • 4
  • 27
  • 41
2
votes
0 answers

getAttribute error in Kartograph.js

I want to use Kartograph.js for creating an interactive map. My code is as follows: var map = kartograph.map('#map'); map.loadMap('map.svg', function(map) { map.addLayer('asia', { name: 'Asia' }); }); Code for map.svg can be…
Tomek Buszewski
  • 7,659
  • 14
  • 67
  • 112
2
votes
1 answer

Kartograph map won't display

I can't get Kartograph.js to display my .svg map. Here's what I've done: I've successfully made a .svg map from a .shp using the most basic json file I could with kartograph.py, according to Kartograph's docs, doing the basic world.json -o…
blake
  • 21
  • 1
2
votes
2 answers

Kartograph: Map Creation fails

Recently I started using Kartograph. I am inexperienced in SVG, so the map creation is creating headaches for me. After initial trouble creating a world map that outlines country borders - similar to this - and a few other things(city regions and…
hellerve
  • 508
  • 1
  • 6
  • 30
2
votes
0 answers

install of GDAL failed for kartograph.py - DLL load failed

There is a very similar topic but solutions there didn't helped me. I am trying to install and run kartograpgh.py tests from installation, and it breaks like this => C:\tests-kartograph>run_tests.py Traceback (most recent call last): File…
miguelfg
  • 1,455
  • 2
  • 16
  • 21
1
vote
0 answers

Cropped layer in Kartograph.py for SVG maps

I'm trying to draw a SVG map with two layers using Kartograph.py. The end result should be a single country on the first layer (say France) with the main rivers on a second layer. The first layer with France borders works perfectly, but then I would…
Jérémy
  • 11
  • 1
1
vote
1 answer

kartograph.js How to get element by path id?

I'm using kartograph.js and I have an svg of several connected areas/paths and I want to highlight the clicked area by coloring it and then displaying other information about it on another div. I'm having trouble with removing the highlight of a…
boydukot
  • 13
  • 3
1
vote
1 answer

Installing Kartograph / GDAL / Etc. with PIP and virtualenv

Running into a few different problems here. Trying to install Kartograph and first installing dependencies. Here are my steps and results thus far: Install GDAL from .pkg. Goes well. No problems here. Try to install Kartograph using the default…
ccdrm
  • 300
  • 2
  • 9
1
vote
0 answers

how to speed up kartograph.js?

Situation: There is a complex map in Kartograph.js with many svg paths. For example this one : http://kartograph.org/showcase/choropleth/ Problem: init of the map is slow (up to 5 seconds) On the other hand when complex map is rendered directly via…
slaweet
  • 385
  • 2
  • 17
1
vote
1 answer

Creating a Choropleth Map at the County Level

I'm trying to create an animation of the population density of the Appalachian region from roughly 1790 to 2010 in decennial steps at the county level. I've successfully created a choropleth for 2010 by modifying what was done in this tutorial by…
Jackson Walters
  • 349
  • 5
  • 18
1
vote
1 answer

How can I use kartograph.js?

Is there anyone who has used the library kartograph.js and 'kartograph.py'? Do you know if I need 'kartograph.py' to be able to run?How can I use the library 'kartograph.py' without installing python? Because I have a problem with 'kartograph.js'…
user1298799
  • 37
  • 1
  • 1
  • 8
1
vote
2 answers

kartograph.js - very simple map

As a beginner i want to get the most basic example to work. So i downloaded a map from here Looked into the file to find that the id for the first and only 'g' is 'admin1'. So, i started:
Thomas Deutsch
  • 2,344
  • 2
  • 27
  • 36
0
votes
0 answers

How to make interactive maps with plain svg

First post and new programmer. I'm trying to make a small interactive map in python and javascript using the kartograph.org framework for python 2.7 but I came across a lot of problems that stop me in the first place. 1- I try to install the…
1
2