Commit d3d95f0f authored by numeroteca's avatar numeroteca

add how to to README

parent 97c282ce
Interactive map
===============
This interactive map needs:
+ A topojson file with the municipios ('municipios-clean_simply_topo.json') shapes that contain the data to be displayed in chlrophlet map (in this case, number of initiatives)
+ A topojson file with provincias shapes
Needed variables for municipios are:
+ 'NOMBRE_TOP' (nombre del municipio)
+ 'n_iniciativas' (number of initiative in that munciipio)
+ 'iniciativas_div' (div to inject into sidebar tooltip
This is the standard info for every municipio (we can clean and remove variables if not needed):
<code>
{
"arcs":[[[0,1,2,3,4]],[[5,6,7,8]]],
"type":"MultiPolygon",
"properties":{"TERRITORIO":"ARABA / ÁLAVA",
"MUN_PROV":"01",
"COMARCA":"CANTABRICA ALAVESA",
"COMARC_EUS":"KANTAURI ARABARRA",
"MUN_COMR":"06",
"A_FUNC_CAS":"LLODIO",
"A_FUNC_EUS":"AIARA",
"NOMBRE_TOP":"Amurrio",
"MUN_MUNI":"002",
"IDTOPONIMO":82184,
"EUSTAT":"01002",
"n_iniciativas":0,
"iniciativas_div":"<div><a href=\"https://alimentacionsaludable.eus/iniciativa/osasunkume-educacion-para-la-salud-en-primaria/\">Osasunkume – Educación para la salud en Primaria</a></div>"
}}
</code>
Data sources
============
Shapes have been simplified and converted to topojson WGS8 CRS with https://mapshaper.org/
Municipios ftp://ftp.geo.euskadi.eus/cartografia/Limites/CB_MUNICIPIOS_5000_ETRS89.zip via ftp://ftp.geo.euskadi.eus/cartografia/Limites/ via http://www.geo.euskadi.eus/s69-geodir/es/contenidos/informacion/servicio_ftp/es_80/servicio_ftp.html
Provincias
......@@ -70,7 +70,7 @@
.append("div")
.attr("class", "tooltipclick")
// add multiple files http://bl.ocks.org/mapsam/6090056
queue()
.defer(d3.json, 'municipios-clean_simply_topo.json')
.defer(d3.json, 'provincias-clean_simply_topo.json')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment