Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fordecyt_2019
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rodrigo Tapia-McClung
fordecyt_2019
Commits
0869d678
Commit
0869d678
authored
Feb 05, 2020
by
Rodrigo Tapia-McClung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update locations
parent
00a29332
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
48 deletions
+48
-48
od.geojson
public/centropais/data/od.geojson
+24
-24
viajes_ocupados_desde.geojson
public/centropais/data/viajes_ocupados_desde.geojson
+20
-20
centropais_basemap.js
public/js/centropais_basemap.js
+4
-4
No files found.
public/centropais/data/od.geojson
View file @
0869d678
...
...
@@ -3,29 +3,29 @@
"name": "od",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "
ID_MUN": 1001, "NOM_MUN": "Aguascalientes", "CVE_ENT": "01", "X": -102.29580290200001, "Y": 21.811436231199998, "ZM_NOMBRE": "Aguascalientes", "CMCP": "Aguascalientes" }, "geometry": { "type": "Point", "coordinates": [ -102.295802902, 21.811436231199998
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 1005, "NOM_MUN": "Jesús María", "CVE_ENT": "01", "X": -102.44564926, "Y": 21.932117505499999, "ZM_NOMBRE": "Aguascalientes", "CMCP": "Jesús María" }, "geometry": { "type": "Point", "coordinates": [ -102.44564926, 21.932117505499999
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 1011, "NOM_MUN": "San Francisco de los Romo", "CVE_ENT": "01", "X": -102.22902138400001, "Y": 22.03307051, "ZM_NOMBRE": "Aguascalientes", "CMCP": "San Francisco de los Romo" }, "geometry": { "type": "Point", "coordinates": [ -102.229021384, 22.0330705
1 ] } },
{ "type": "Feature", "properties": { "
ID_MUN": 11003, "NOM_MUN": "San Miguel de Allende", "CVE_ENT": "11", "X": -100.737727385, "Y": 20.9252506003, "ZM_NOMBRE": "San Miguel de Allende", "CMCP": "San Miguel de Allende" }, "geometry": { "type": "Point", "coordinates": [ -100.737727385, 20.9252506003
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 11004, "NOM_MUN": "Apaseo el Alto", "CVE_ENT": "11", "X": -100.573520071, "Y": 20.421841365199999, "ZM_NOMBRE": "Querétaro", "CMCP": "Apaseo el Alto" }, "geometry": { "type": "Point", "coordinates": [ -100.573520071, 20.421841365199999
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 11007, "NOM_MUN": "Celaya", "CVE_ENT": "11", "X": -100.78786496799999, "Y": 20.537565599299999, "ZM_NOMBRE": "Celaya", "CMCP": "Celaya" }, "geometry": { "type": "Point", "coordinates": [ -100.78786496799999, 20.537565599299999
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 11009, "NOM_MUN": "Comonfort", "CVE_ENT": "11", "X": -100.791122677, "Y": 20.741272517399999, "ZM_NOMBRE": "Celaya", "CMCP": "Comonfort" }, "geometry": { "type": "Point", "coordinates": [ -100.791122677, 20.741272517399999
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 11011, "NOM_MUN": "Cortazar", "CVE_ENT": "11", "X": -100.938370267, "Y": 20.429113635299998, "ZM_NOMBRE": "Celaya", "CMCP": "Cortazar" }, "geometry": { "type": "Point", "coordinates": [ -100.938370267, 20.429113635299998
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 11015, "NOM_MUN": "Guanajuato", "CVE_ENT": "11", "X": -101.23732891900001, "Y": 21.018454309199999, "ZM_NOMBRE": "Guanajuato", "CMCP": "Guanajuato" }, "geometry": { "type": "Point", "coordinates": [ -101.237328919, 21.018454309199999
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 11017, "NOM_MUN": "Irapuato", "CVE_ENT": "11", "X": -101.368320763, "Y": 20.699813496699999, "ZM_NOMBRE": "Irapuato", "CMCP": "Irapuato" }, "geometry": { "type": "Point", "coordinates": [ -101.368320763, 20.699813496699999
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 11020, "NOM_MUN": "León", "CVE_ENT": "11", "X": -101.622402619, "Y": 21.124749248400001, "ZM_NOMBRE": "León", "CMCP": "León" }, "geometry": { "type": "Point", "coordinates": [ -101.622402619, 21.124749248400001
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 11025, "NOM_MUN": "Purísima del Rincón", "CVE_ENT": "11", "X": -101.92856306, "Y": 20.927515667400002, "ZM_NOMBRE": "San Francisco del Rincón", "CMCP": "Purísima del Rincón" }, "geometry": { "type": "Point", "coordinates": [ -101.92856306, 20.927515667400002
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 11027, "NOM_MUN": "Salamanca", "CVE_ENT": "11", "X": -101.165096104, "Y": 20.625110122500001, "ZM_NOMBRE": "Salamanca", "CMCP": "Salamanca" }, "geometry": { "type": "Point", "coordinates": [ -101.165096104, 20.625110122500001
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 11031, "NOM_MUN": "San Francisco del Rincón", "CVE_ENT": "11", "X": -101.78851964499999, "Y": 20.919124081100001, "ZM_NOMBRE": "San Francisco del Rincón", "CMCP": "San Francisco del Rincón" }, "geometry": { "type": "Point", "coordinates": [ -101.78851964499999, 20.919124081100001
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 11037, "NOM_MUN": "Silao", "CVE_ENT": "11", "X": -101.43778362899999, "Y": 20.963115350199999, "ZM_NOMBRE": "León", "CMCP": "Silao" }, "geometry": { "type": "Point", "coordinates": [ -101.43778362899999, 20.963115350199999
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 11044, "NOM_MUN": "Villagrán", "CVE_ENT": "11", "X": -100.992512401, "Y": 20.541961899299999, "ZM_NOMBRE": "Celaya", "CMCP": "Villagrán" }, "geometry": { "type": "Point", "coordinates": [ -100.992512401, 20.541961899299999
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 22006, "NOM_MUN": "Corregidora", "CVE_ENT": "22", "X": -100.441074888, "Y": 20.485442072800002, "ZM_NOMBRE": "Querétaro", "CMCP": "Corregidora" }, "geometry": { "type": "Point", "coordinates": [ -100.441074888, 20.485442072800002
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 22008, "NOM_MUN": "Huimilpan", "CVE_ENT": "22", "X": -100.31421287400001, "Y": 20.403843761800001, "ZM_NOMBRE": "Querétaro", "CMCP": "Huimilpan" }, "geometry": { "type": "Point", "coordinates": [ -100.314212874, 20.403843761800001
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 22011, "NOM_MUN": "El Marqués", "CVE_ENT": "22", "X": -100.278617514, "Y": 20.720228286200001, "ZM_NOMBRE": "Querétaro", "CMCP": "El Marqués" }, "geometry": { "type": "Point", "coordinates": [ -100.278617514, 20.72022828620000
1 ] } },
{ "type": "Feature", "properties": { "
ID_MUN": 22014, "NOM_MUN": "Querétaro", "CVE_ENT": "22", "X": -100.452710294, "Y": 20.7288053752, "ZM_NOMBRE": "Querétaro", "CMCP": "Querétaro" }, "geometry": { "type": "Point", "coordinates": [ -100.452710294, 20.7288053752
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 22016, "NOM_MUN": "San Juan del Río", "CVE_ENT": "22", "X": -100.00038001, "Y": 20.368911535500001, "ZM_NOMBRE": "San Juan del Río", "CMCP": "San Juan del Río" }, "geometry": { "type": "Point", "coordinates": [ -100.00038001, 20.368911535500001
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 24028, "NOM_MUN": "San Luis Potosí", "CVE_ENT": "24", "X": -100.96088844000001, "Y": 22.270479009100001, "ZM_NOMBRE": "San Luis Potosí", "CMCP": "San Luis Potosí" }, "geometry": { "type": "Point", "coordinates": [ -100.96088844, 22.270479009100001
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 24035, "NOM_MUN": "Soledad de Graciano Sánchez", "CVE_ENT": "24", "X": -100.85513169799999, "Y": 22.2716259147, "ZM_NOMBRE": "San Luis Potosí", "CMCP": "Soledad de Graciano Sánchez" }, "geometry": { "type": "Point", "coordinates": [ -100.85513169799999, 22.2716259147
] } },
{ "type": "Feature", "properties": { "
ID_MUN": 24055, "NOM_MUN": "Zaragoza", "CVE_ENT": "24", "X": -100.67672046600001, "Y": 22.008173515900001, "ZM_NOMBRE": "San Luis Potosí", "CMCP": "Zaragoza" }, "geometry": { "type": "Point", "coordinates": [ -100.676720466, 22.008173515900001
] } }
{ "type": "Feature", "properties": { "
id_mun": 1001, "cve_ent": 1, "nombre": "Aguascalientes", "lng": -102.296111, "lat": 21.880833 }, "geometry": { "type": "Point", "coordinates": [ -102.296111, 21.880833
] } },
{ "type": "Feature", "properties": { "
id_mun": 1011, "cve_ent": 1, "nombre": "San Francisco de los Romo", "lng": -102.270278, "lat": 22.0725 }, "geometry": { "type": "Point", "coordinates": [ -102.270278, 22.0725
] } },
{ "type": "Feature", "properties": { "
id_mun": 1005, "cve_ent": 1, "nombre": "Jesús María", "lng": -102.343333, "lat": 21.961111 }, "geometry": { "type": "Point", "coordinates": [ -102.343333, 21.96111
1 ] } },
{ "type": "Feature", "properties": { "
id_mun": 11007, "cve_ent": 11, "nombre": "Celaya", "lng": -100.815, "lat": 20.528889 }, "geometry": { "type": "Point", "coordinates": [ -100.815, 20.528889
] } },
{ "type": "Feature", "properties": { "
id_mun": 11020, "cve_ent": 11, "nombre": "León", "lng": -101.680556, "lat": 21.119722 }, "geometry": { "type": "Point", "coordinates": [ -101.680556, 21.119722
] } },
{ "type": "Feature", "properties": { "
id_mun": 11017, "cve_ent": 11, "nombre": "Irapuato", "lng": -101.3475, "lat": 20.674167 }, "geometry": { "type": "Point", "coordinates": [ -101.3475, 20.674167
] } },
{ "type": "Feature", "properties": { "
id_mun": 11011, "cve_ent": 11, "nombre": "Cortazar", "lng": -100.941667, "lat": 20.433333 }, "geometry": { "type": "Point", "coordinates": [ -100.941667, 20.433333
] } },
{ "type": "Feature", "properties": { "
id_mun": 11027, "cve_ent": 11, "nombre": "Salamanca", "lng": -101.195717, "lat": 20.573931 }, "geometry": { "type": "Point", "coordinates": [ -101.195717, 20.573931
] } },
{ "type": "Feature", "properties": { "
id_mun": 11044, "cve_ent": 11, "nombre": "Villagrán", "lng": -100.996389, "lat": 20.511111 }, "geometry": { "type": "Point", "coordinates": [ -100.996389, 20.511111
] } },
{ "type": "Feature", "properties": { "
id_mun": 11015, "cve_ent": 11, "nombre": "Guanajuato", "lng": -101.256667, "lat": 21.017778 }, "geometry": { "type": "Point", "coordinates": [ -101.256667, 21.017778
] } },
{ "type": "Feature", "properties": { "
id_mun": 11031, "cve_ent": 11, "nombre": "San Francisco del Rincón", "lng": -101.857778, "lat": 21.018333 }, "geometry": { "type": "Point", "coordinates": [ -101.857778, 21.018333
] } },
{ "type": "Feature", "properties": { "
id_mun": 11037, "cve_ent": 11, "nombre": "Silao", "lng": -101.426667, "lat": 20.943611 }, "geometry": { "type": "Point", "coordinates": [ -101.426667, 20.943611
] } },
{ "type": "Feature", "properties": { "
id_mun": 11003, "cve_ent": 11, "nombre": "San Miguel de Allende", "lng": -100.743889, "lat": 20.915278 }, "geometry": { "type": "Point", "coordinates": [ -100.743889, 20.915278
] } },
{ "type": "Feature", "properties": { "
id_mun": 11009, "cve_ent": 11, "nombre": "Comonfort", "lng": -100.791667, "lat": 20.716667 }, "geometry": { "type": "Point", "coordinates": [ -100.791667, 20.716667
] } },
{ "type": "Feature", "properties": { "
id_mun": 11004, "cve_ent": 11, "nombre": "Apaseo el Alto", "lng": -100.621667, "lat": 20.455556 }, "geometry": { "type": "Point", "coordinates": [ -100.621667, 20.455556
] } },
{ "type": "Feature", "properties": { "
id_mun": 11025, "cve_ent": 11, "nombre": "Purísima del Rincón", "lng": -101.879167, "lat": 21.030556 }, "geometry": { "type": "Point", "coordinates": [ -101.879167, 21.030556
] } },
{ "type": "Feature", "properties": { "
id_mun": 22014, "cve_ent": 22, "nombre": "Querétaro", "lng": -100.391, "lat": 20.591 }, "geometry": { "type": "Point", "coordinates": [ -100.391, 20.591
] } },
{ "type": "Feature", "properties": { "
id_mun": 22016, "cve_ent": 22, "nombre": "San Juan del Río", "lng": -99.996389, "lat": 20.388889 }, "geometry": { "type": "Point", "coordinates": [ -99.996389, 20.388889
] } },
{ "type": "Feature", "properties": { "
id_mun": 22006, "cve_ent": 22, "nombre": "Corregidora", "lng": -100.442, "lat": 20.531 }, "geometry": { "type": "Point", "coordinates": [ -100.442, 20.53
1 ] } },
{ "type": "Feature", "properties": { "
id_mun": 22011, "cve_ent": 22, "nombre": "El Marqués", "lng": -100.275248, "lat": 20.687706 }, "geometry": { "type": "Point", "coordinates": [ -100.275248, 20.687706
] } },
{ "type": "Feature", "properties": { "
id_mun": 22008, "cve_ent": 22, "nombre": "Huimilpan", "lng": -100.283333, "lat": 20.366667 }, "geometry": { "type": "Point", "coordinates": [ -100.283333, 20.366667
] } },
{ "type": "Feature", "properties": { "
id_mun": 24028, "cve_ent": 24, "nombre": "San Luis Potosí", "lng": -100.975, "lat": 22.149722 }, "geometry": { "type": "Point", "coordinates": [ -100.975, 22.149722
] } },
{ "type": "Feature", "properties": { "
id_mun": 24035, "cve_ent": 24, "nombre": "Soledad de Graciano Sánchez", "lng": -100.940833, "lat": 22.183056 }, "geometry": { "type": "Point", "coordinates": [ -100.940833, 22.183056
] } },
{ "type": "Feature", "properties": { "
id_mun": 24055, "cve_ent": 24, "nombre": "Zaragoza", "lng": -100.729722, "lat": 22.039722 }, "geometry": { "type": "Point", "coordinates": [ -100.729722, 22.039722
] } }
]
}
public/centropais/data/viajes_ocupados_desde.geojson
View file @
0869d678
...
...
@@ -3,25 +3,25 @@
"name": "viajes_ocupados_desde",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "id_orig
": 11007, "muni_origen": "Celaya", "xo": -100.78786496799999, "yo": 20.537565599299999, "ocupados": "Terciario", "viajes": 578, "id_dest": 11017, "muni_destino": "Irapuato", "xd": -101.368320763, "yd": 20.699813496699999, "personas": 578, "CMCP": "Irapuato" }, "geometry": { "type": "Point", "coordinates": [ -100.78786496799999, 20.537565599299999
] } },
{ "type": "Feature", "properties": { "id_orig
": 11007, "muni_origen": "Celaya", "xo": -100.78786496799999, "yo": 20.537565599299999, "ocupados": "Terciario", "viajes": 623, "id_dest": 11027, "muni_destino": "Salamanca", "xd": -101.165096104, "yd": 20.625110122500001, "personas": 623, "CMCP": "Salamanca" }, "geometry": { "type": "Point", "coordinates": [ -100.78786496799999, 20.537565599299999
] } },
{ "type": "Feature", "properties": { "id_orig
": 11020, "muni_origen": "León", "xo": -101.622402619, "yo": 21.124749248400001, "ocupados": "Primario", "viajes": 643, "id_dest": 11017, "muni_destino": "Irapuato", "xd": -101.368320763, "yd": 20.699813496699999, "personas": 643, "CMCP": "Irapuato" }, "geometry": { "type": "Point", "coordinates": [ -101.622402619, 21.124749248400001
] } },
{ "type": "Feature", "properties": { "id_orig
": 11007, "muni_origen": "Celaya", "xo": -100.78786496799999, "yo": 20.537565599299999, "ocupados": "Terciario", "viajes": 660, "id_dest": 11011, "muni_destino": "Cortazar", "xd": -100.938370267, "yd": 20.429113635299998, "personas": 660, "CMCP": "Cortazar" }, "geometry": { "type": "Point", "coordinates": [ -100.78786496799999, 20.537565599299999
] } },
{ "type": "Feature", "properties": { "id_orig
": 22014, "muni_origen": "Querétaro", "xo": -100.452710294, "yo": 20.7288053752, "ocupados": "Primario", "viajes": 695, "id_dest": 11015, "muni_destino": "Guanajuato", "xd": -101.23732891900001, "yd": 21.018454309199999, "personas": 695, "CMCP": "Guanajuato" }, "geometry": { "type": "Point", "coordinates": [ -100.452710294, 20.7288053752
] } },
{ "type": "Feature", "properties": { "id_orig
": 11017, "muni_origen": "Irapuato", "xo": -101.368320763, "yo": 20.699813496699999, "ocupados": "Terciario", "viajes": 729, "id_dest": 11020, "muni_destino": "León", "xd": -101.622402619, "yd": 21.124749248400001, "personas": 729, "CMCP": "León" }, "geometry": { "type": "Point", "coordinates": [ -101.368320763, 20.699813496699999
] } },
{ "type": "Feature", "properties": { "id_orig
": 11007, "muni_origen": "Celaya", "xo": -100.78786496799999, "yo": 20.537565599299999, "ocupados": "Terciario", "viajes": 731, "id_dest": 11044, "muni_destino": "Villagrán", "xd": -100.992512401, "yd": 20.541961899299999, "personas": 731, "CMCP": "Villagrán" }, "geometry": { "type": "Point", "coordinates": [ -100.78786496799999, 20.537565599299999
] } },
{ "type": "Feature", "properties": { "id_orig
": 22014, "muni_origen": "Querétaro", "xo": -100.452710294, "yo": 20.7288053752, "ocupados": "Primario", "viajes": 802, "id_dest": 22016, "muni_destino": "San Juan del Río", "xd": -100.00038001, "yd": 20.368911535500001, "personas": 802, "CMCP": "San Juan del Río" }, "geometry": { "type": "Point", "coordinates": [ -100.452710294, 20.728805375
2 ] } },
{ "type": "Feature", "properties": { "id_orig
": 11017, "muni_origen": "Irapuato", "xo": -101.368320763, "yo": 20.699813496699999, "ocupados": "Terciario", "viajes": 807, "id_dest": 11015, "muni_destino": "Guanajuato", "xd": -101.23732891900001, "yd": 21.018454309199999, "personas": 807, "CMCP": "Guanajuato" }, "geometry": { "type": "Point", "coordinates": [ -101.368320763, 20.699813496699999
] } },
{ "type": "Feature", "properties": { "id_orig
": 11020, "muni_origen": "León", "xo": -101.622402619, "yo": 21.124749248400001, "ocupados": "Primario", "viajes": 1286, "id_dest": 11015, "muni_destino": "Guanajuato", "xd": -101.23732891900001, "yd": 21.018454309199999, "personas": 1286, "CMCP": "Guanajuato" }, "geometry": { "type": "Point", "coordinates": [ -101.622402619, 21.124749248400001
] } },
{ "type": "Feature", "properties": { "id_orig
": 11007, "muni_origen": "Celaya", "xo": -100.78786496799999, "yo": 20.537565599299999, "ocupados": "Terciario", "viajes": 1301, "id_dest": 22014, "muni_destino": "Querétaro", "xd": -100.452710294, "yd": 20.7288053752, "personas": 1301, "CMCP": "Querétaro" }, "geometry": { "type": "Point", "coordinates": [ -100.78786496799999, 20.537565599299999
] } },
{ "type": "Feature", "properties": { "id_orig
": 22014, "muni_origen": "Querétaro", "xo": -100.452710294, "yo": 20.7288053752, "ocupados": "Primario", "viajes": 2247, "id_dest": 22006, "muni_destino": "Corregidora", "xd": -100.441074888, "yd": 20.485442072800002, "personas": 2247, "CMCP": "Corregidora" }, "geometry": { "type": "Point", "coordinates": [ -100.452710294, 20.7288053752
] } },
{ "type": "Feature", "properties": { "id_orig
": 11020, "muni_origen": "León", "xo": -101.622402619, "yo": 21.124749248400001, "ocupados": "Primario", "viajes": 2635, "id_dest": 11031, "muni_destino": "San Francisco del Rincón", "xd": -101.78851964499999, "yd": 20.919124081100001, "personas": 2635, "CMCP": "San Francisco del Rincón" }, "geometry": { "type": "Point", "coordinates": [ -101.622402619, 21.12474924840000
1 ] } },
{ "type": "Feature", "properties": { "id_orig
": 11017, "muni_origen": "Irapuato", "xo": -101.368320763, "yo": 20.699813496699999, "ocupados": "Terciario", "viajes": 3079, "id_dest": 11027, "muni_destino": "Salamanca", "xd": -101.165096104, "yd": 20.625110122500001, "personas": 3079, "CMCP": "Salamanca" }, "geometry": { "type": "Point", "coordinates": [ -101.368320763, 20.69981349669999
9 ] } },
{ "type": "Feature", "properties": { "id_orig
": 24028, "muni_origen": "San Luis Potosí", "xo": -100.96088844000001, "yo": 22.270479009100001, "ocupados": "Secundario", "viajes": 3179, "id_dest": 24035, "muni_destino": "Soledad de Graciano Sánchez", "xd": -100.85513169799999, "yd": 22.2716259147, "personas": 3179, "CMCP": "Soledad de Graciano Sánchez" }, "geometry": { "type": "Point", "coordinates": [ -100.96088844, 22.270479009100001
] } },
{ "type": "Feature", "properties": { "id_orig
": 1001, "muni_origen": "Aguascalientes", "xo": -102.29580290200001, "yo": 21.811436231199998, "ocupados": "Secundario", "viajes": 3201, "id_dest": 1011, "muni_destino": "San Francisco de los Romo", "xd": -102.22902138400001, "yd": 22.03307051, "personas": 3201, "CMCP": "San Francisco de los Romo" }, "geometry": { "type": "Point", "coordinates": [ -102.295802902, 21.811436231199998
] } },
{ "type": "Feature", "properties": { "id_orig
": 1001, "muni_origen": "Aguascalientes", "xo": -102.29580290200001, "yo": 21.811436231199998, "ocupados": "Secundario", "viajes": 3322, "id_dest": 1005, "muni_destino": "Jesús María", "xd": -102.44564926, "yd": 21.932117505499999, "personas": 3322, "CMCP": "Jesús María" }, "geometry": { "type": "Point", "coordinates": [ -102.295802902, 21.811436231199998
] } },
{ "type": "Feature", "properties": { "id_orig
": 11020, "muni_origen": "León", "xo": -101.622402619, "yo": 21.124749248400001, "ocupados": "Primario", "viajes": 4180, "id_dest": 11037, "muni_destino": "Silao", "xd": -101.43778362899999, "yd": 20.963115350199999, "personas": 4180, "CMCP": "Silao" }, "geometry": { "type": "Point", "coordinates": [ -101.622402619, 21.124749248400001
] } },
{ "type": "Feature", "properties": { "id_orig
": 22014, "muni_origen": "Querétaro", "xo": -100.452710294, "yo": 20.7288053752, "ocupados": "Primario", "viajes": 4226, "id_dest": 22011, "muni_destino": "El Marqués", "xd": -100.278617514, "yd": 20.720228286200001, "personas": 4226, "CMCP": "El Marqués" }, "geometry": { "type": "Point", "coordinates": [ -100.452710294, 20.7288053752
] } },
{ "type": "Feature", "properties": { "id_orig
": 11017, "muni_origen": "Irapuato", "xo": -101.368320763, "yo": 20.699813496699999, "ocupados": "Terciario", "viajes": 7164, "id_dest": 11037, "muni_destino": "Silao", "xd": -101.43778362899999, "yd": 20.963115350199999, "personas": 7164, "CMCP": "Silao" }, "geometry": { "type": "Point", "coordinates": [ -101.368320763, 20.69981349669999
9 ] } }
{ "type": "Feature", "properties": { "id_orig
en": 11017, "muni_origen": "Irapuato", "xo": -101.3475, "yo": 20.674167, "ocupados": "Terciario", "viajes": 7164, "id_destino": 11037, "muni_destino": "Silao", "xd": -101.426667, "yd": 20.943611, "personas": 7164 }, "geometry": { "type": "Point", "coordinates": [ -101.3475, 20.674167
] } },
{ "type": "Feature", "properties": { "id_orig
en": 22014, "muni_origen": "Querétaro", "xo": -100.391, "yo": 20.591, "ocupados": "Primario", "viajes": 4226, "id_destino": 22011, "muni_destino": "El Marqués", "xd": -100.275248, "yd": 20.687706, "personas": 4226 }, "geometry": { "type": "Point", "coordinates": [ -100.391, 20.591
] } },
{ "type": "Feature", "properties": { "id_orig
en": 11020, "muni_origen": "León", "xo": -101.680556, "yo": 21.119722, "ocupados": "Primario", "viajes": 4180, "id_destino": 11037, "muni_destino": "Silao", "xd": -101.426667, "yd": 20.943611, "personas": 4180 }, "geometry": { "type": "Point", "coordinates": [ -101.680556, 21.119722
] } },
{ "type": "Feature", "properties": { "id_orig
en": 1001, "muni_origen": "Aguascalientes", "xo": -102.296111, "yo": 21.880833, "ocupados": "Secundario", "viajes": 3322, "id_destino": 1005, "muni_destino": "Jesús María", "xd": -102.343333, "yd": 21.961111, "personas": 3322 }, "geometry": { "type": "Point", "coordinates": [ -102.296111, 21.880833
] } },
{ "type": "Feature", "properties": { "id_orig
en": 1001, "muni_origen": "Aguascalientes", "xo": -102.296111, "yo": 21.880833, "ocupados": "Secundario", "viajes": 3201, "id_destino": 1011, "muni_destino": "San Francisco de los Romo", "xd": -102.270278, "yd": 22.0725, "personas": 3201 }, "geometry": { "type": "Point", "coordinates": [ -102.296111, 21.880833
] } },
{ "type": "Feature", "properties": { "id_orig
en": 24028, "muni_origen": "San Luis Potosí", "xo": -100.975, "yo": 22.149722, "ocupados": "Secundario", "viajes": 3179, "id_destino": 24035, "muni_destino": "Soledad de Graciano Sánchez", "xd": -100.940833, "yd": 22.183056, "personas": 3179 }, "geometry": { "type": "Point", "coordinates": [ -100.975, 22.149722
] } },
{ "type": "Feature", "properties": { "id_orig
en": 11017, "muni_origen": "Irapuato", "xo": -101.3475, "yo": 20.674167, "ocupados": "Terciario", "viajes": 3079, "id_destino": 11027, "muni_destino": "Salamanca", "xd": -101.195717, "yd": 20.573931, "personas": 3079 }, "geometry": { "type": "Point", "coordinates": [ -101.3475, 20.674167
] } },
{ "type": "Feature", "properties": { "id_orig
en": 11020, "muni_origen": "León", "xo": -101.680556, "yo": 21.119722, "ocupados": "Primario", "viajes": 2635, "id_destino": 11031, "muni_destino": "San Francisco del Rincón", "xd": -101.857778, "yd": 21.018333, "personas": 2635 }, "geometry": { "type": "Point", "coordinates": [ -101.680556, 21.11972
2 ] } },
{ "type": "Feature", "properties": { "id_orig
en": 22014, "muni_origen": "Querétaro", "xo": -100.391, "yo": 20.591, "ocupados": "Primario", "viajes": 2247, "id_destino": 22006, "muni_destino": "Corregidora", "xd": -100.442, "yd": 20.531, "personas": 2247 }, "geometry": { "type": "Point", "coordinates": [ -100.391, 20.591
] } },
{ "type": "Feature", "properties": { "id_orig
en": 11007, "muni_origen": "Celaya", "xo": -100.815, "yo": 20.528889, "ocupados": "Terciario", "viajes": 1301, "id_destino": 22014, "muni_destino": "Querétaro", "xd": -100.391, "yd": 20.591, "personas": 1301 }, "geometry": { "type": "Point", "coordinates": [ -100.815, 20.528889
] } },
{ "type": "Feature", "properties": { "id_orig
en": 11020, "muni_origen": "León", "xo": -101.680556, "yo": 21.119722, "ocupados": "Primario", "viajes": 1286, "id_destino": 11015, "muni_destino": "Guanajuato", "xd": -101.256667, "yd": 21.017778, "personas": 1286 }, "geometry": { "type": "Point", "coordinates": [ -101.680556, 21.119722
] } },
{ "type": "Feature", "properties": { "id_orig
en": 11017, "muni_origen": "Irapuato", "xo": -101.3475, "yo": 20.674167, "ocupados": "Terciario", "viajes": 807, "id_destino": 11015, "muni_destino": "Guanajuato", "xd": -101.256667, "yd": 21.017778, "personas": 807 }, "geometry": { "type": "Point", "coordinates": [ -101.3475, 20.674167
] } },
{ "type": "Feature", "properties": { "id_orig
en": 22014, "muni_origen": "Querétaro", "xo": -100.391, "yo": 20.591, "ocupados": "Primario", "viajes": 802, "id_destino": 22016, "muni_destino": "San Juan del Río", "xd": -99.996389, "yd": 20.388889, "personas": 802 }, "geometry": { "type": "Point", "coordinates": [ -100.391, 20.59
1 ] } },
{ "type": "Feature", "properties": { "id_orig
en": 11007, "muni_origen": "Celaya", "xo": -100.815, "yo": 20.528889, "ocupados": "Terciario", "viajes": 731, "id_destino": 11044, "muni_destino": "Villagrán", "xd": -100.996389, "yd": 20.511111, "personas": 731 }, "geometry": { "type": "Point", "coordinates": [ -100.815, 20.52888
9 ] } },
{ "type": "Feature", "properties": { "id_orig
en": 11017, "muni_origen": "Irapuato", "xo": -101.3475, "yo": 20.674167, "ocupados": "Terciario", "viajes": 729, "id_destino": 11020, "muni_destino": "León", "xd": -101.680556, "yd": 21.119722, "personas": 729 }, "geometry": { "type": "Point", "coordinates": [ -101.3475, 20.674167
] } },
{ "type": "Feature", "properties": { "id_orig
en": 22014, "muni_origen": "Querétaro", "xo": -100.391, "yo": 20.591, "ocupados": "Primario", "viajes": 695, "id_destino": 11015, "muni_destino": "Guanajuato", "xd": -101.256667, "yd": 21.017778, "personas": 695 }, "geometry": { "type": "Point", "coordinates": [ -100.391, 20.591
] } },
{ "type": "Feature", "properties": { "id_orig
en": 11007, "muni_origen": "Celaya", "xo": -100.815, "yo": 20.528889, "ocupados": "Terciario", "viajes": 660, "id_destino": 11011, "muni_destino": "Cortazar", "xd": -100.941667, "yd": 20.433333, "personas": 660 }, "geometry": { "type": "Point", "coordinates": [ -100.815, 20.528889
] } },
{ "type": "Feature", "properties": { "id_orig
en": 11020, "muni_origen": "León", "xo": -101.680556, "yo": 21.119722, "ocupados": "Primario", "viajes": 643, "id_destino": 11017, "muni_destino": "Irapuato", "xd": -101.3475, "yd": 20.674167, "personas": 643 }, "geometry": { "type": "Point", "coordinates": [ -101.680556, 21.119722
] } },
{ "type": "Feature", "properties": { "id_orig
en": 11007, "muni_origen": "Celaya", "xo": -100.815, "yo": 20.528889, "ocupados": "Terciario", "viajes": 623, "id_destino": 11027, "muni_destino": "Salamanca", "xd": -101.195717, "yd": 20.573931, "personas": 623 }, "geometry": { "type": "Point", "coordinates": [ -100.815, 20.528889
] } },
{ "type": "Feature", "properties": { "id_orig
en": 11007, "muni_origen": "Celaya", "xo": -100.815, "yo": 20.528889, "ocupados": "Terciario", "viajes": 578, "id_destino": 11017, "muni_destino": "Irapuato", "xd": -101.3475, "yd": 20.674167, "personas": 578 }, "geometry": { "type": "Point", "coordinates": [ -100.815, 20.52888
9 ] } }
]
}
public/js/centropais_basemap.js
View file @
0869d678
...
...
@@ -987,12 +987,12 @@ const makeBaseMap = () => {
flowMapLayer
=
L
.
canvasFlowmapLayer
(
data
,
{
// Define origins and destination from json values
originAndDestinationFieldIds
:
{
originUniqueIdField
:
"id_orig"
,
originUniqueIdField
:
"id_orig
en
"
,
originGeometry
:
{
x
:
"xo"
,
y
:
"yo"
},
destinationUniqueIdField
:
"id_dest"
,
destinationUniqueIdField
:
"id_dest
ino
"
,
destinationGeometry
:
{
x
:
"xd"
,
y
:
"yd"
...
...
@@ -1127,8 +1127,8 @@ const makeBaseMap = () => {
pane
:
"pane_flujos"
}).
bindTooltip
(
layer
=>
{
// what to display on hover
let
coords
=
layer
.
getLatLng
();
let
label
=
od
.
features
.
filter
(
f
=>
f
.
properties
.
X
==
coords
.
lng
&&
f
.
properties
.
Y
==
coords
.
lat
);
return
label
[
0
].
properties
.
CMCP
;
let
label
=
od
.
features
.
filter
(
f
=>
f
.
properties
.
lng
==
coords
.
lng
&&
f
.
properties
.
lat
==
coords
.
lat
);
return
label
[
0
].
properties
.
nombre
;
});
flowMapLayer
.
addTo
(
map
);
// hack to get origins and destinations in desired map pane
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment