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
0
votes
1 answer

Displaying bubbles in Kartograph.js

I am trying to create the bubbles on my SVG map generated by Kartograph. I want to do something like this: http://kartograph.org/showcase/symbols/ The map loads but the symbol does not display. I have no errors thrown in the Javascript…
cheenbabes
  • 382
  • 1
  • 8
  • 17
0
votes
1 answer

edit tooltip on a kartograph map

I'm using kartograph on a map to adapt style/tooltip depending on data, so I follow this showcase : http://kartograph.org/showcase/choropleth/ map.addLayer('layer_0', { styles: { 'stroke-width': 0.7, fill: function(d) { return…
Luckyn
  • 563
  • 1
  • 4
  • 21
0
votes
1 answer

Kartograph Not Displaying

I search through stackoverflow but still I cant find the answer even thought similar questions had asked. I am trying to display a SVG map generated by the Kartograph.py's demo. But whatever I do it just doesn't display. Here is my code:
TLCH723
  • 1
  • 1
0
votes
0 answers

Katrograph (Python) - Inconsistent Conditional Styling?

I am currently attempting to generate a choropleth of median home values by county with Kartograph.py. I was able to previously build a choropleth by way of a configuration and CSS string contained within my Notebook. (Note that tel is my variable…
Marvin Ward Jr
  • 1,019
  • 1
  • 11
  • 30
0
votes
1 answer

kartograph add symbol coordinates

I cannot add symbols in my svg map. This is the metadata of my svg:
luckasx
  • 359
  • 1
  • 6
  • 20
0
votes
1 answer

kartograph unknown shape type(25)

I am trying to generate a svg map using kartograph py as below: from kartograph import Kartograph K = Kartograph() config ={"layers": {"mylayer": {"src": "42MEE250GC_SIR.shp"}} } K.generate(config, outfile='mymap.svg') And I'm getting this…
luckasx
  • 359
  • 1
  • 6
  • 20
0
votes
1 answer

Resize GeoSVG in XML File Kartograph.js

I am trying to resize a geo svg in an xml file and am failing. I'v been trying to adjust the viewBox and height/width but cannot get it to work... I am basically trying to enlarge the svg for use with Kartograph.js. I got the FRA.svg file from…
user4372189
0
votes
1 answer

function is not defined error javascript?

I am trying to generate a very simple map using kartograph.js. But some how my code is not working. I looked at it in web developers tools and it gives the error: Uncaught RefrenceError: loadmap is not defined
user343
  • 21
  • 8
0
votes
1 answer

'Polygone' object does not support indexing

I am trying to render an SVG map using Kartograph.py. It throws me the TypeError. Here is the python code: import kartograph from kartograph import Kartograph import sys from kartograph.options import read_map_config css =…
user343
  • 21
  • 8
0
votes
2 answers

Error in Kartograph.js

I'm using Kartograph.js to load svg map. But I get the following error when page loads: Uncaught TypeError: Cannot read property 'getAttribute' of undefined View.fromXML Kartograph._mapLoaded j k.fireWith x b Here is my Code: …
Beginner
  • 1,010
  • 4
  • 20
  • 42
0
votes
0 answers

How do I access the svg/vml element of a kartograph.js map?

With kartograph.js I can access the container element of my map like this: mymap.container. But how do I get the actual SVG (or VML) element? $(mymap.container).find("svg,vml") works, but feels stupid. In the end, I want to be able to manipulate…
leo
  • 8,106
  • 7
  • 48
  • 80
0
votes
1 answer

kartograph svg map is empty when using "polygons" bounds mode

I 'm trying to generate svg maps from the GEOFLA shapefiles. Using 'bbox' bounds mode with manually setting the bbox values works well : { "layers": [{ "id": "depts", "src": "data/DEPARTEMENTS/DEPARTEMENT.shp", …
user878812
  • 349
  • 1
  • 2
  • 6
0
votes
0 answers

Easiest and free way to transform bitmap image into geographical map

I have image that is the map of a country with districts. For example this image http://upload.wikimedia.org/wikipedia/commons/c/ca/POLSKA_mapa_powiaty2.png. I want to trace/convert it to svg format to have each district as separate shape (polygon)…
user606521
  • 14,486
  • 30
  • 113
  • 204
0
votes
1 answer

Load a .svg to display with javascript in rails

I'm trying to use kartograph.js to display a svg map located in /public in a rails application and cannot figure out how to load the map. Here's my .js.coffee.erb file: $ -> map = $K.map('#map') #…
leggers
  • 53
  • 1
  • 4
0
votes
1 answer

Kartograph choropleth $script blocked

I am using Kartograph Choropleth Maps and have a problem with the code. The first line throw the following error: ReferenceError: $script is not defined Code: $script.ready(['kartograph', 'qtip'], function() { ...... });
cyphos
  • 51
  • 10
1
2