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
07899860
Commit
07899860
authored
Sep 13, 2019
by
Tania Gómez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add POIC desde & hacia layers
parent
9ee01644
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
194 additions
and
102 deletions
+194
-102
centros_de_mercado_POIC.zip
...fordecyt_2019/centropais/data/centros_de_mercado_POIC.zip
+0
-0
desde_POIC.zip
public/fordecyt_2019/centropais/data/desde_POIC.zip
+0
-0
hacia_POIC.zip
public/fordecyt_2019/centropais/data/hacia_POIC.zip
+0
-0
viajes_entre.zip
public/fordecyt_2019/centropais/data/viajes_entre.zip
+0
-0
centropais_basemap.js
public/fordecyt_2019/js/centropais_basemap.js
+194
-102
No files found.
public/fordecyt_2019/centropais/data/centros_de_mercado_POIC.zip
0 → 100644
View file @
07899860
File added
public/fordecyt_2019/centropais/data/desde_POIC.zip
0 → 100644
View file @
07899860
File added
public/fordecyt_2019/centropais/data/hacia_POIC.zip
0 → 100644
View file @
07899860
File added
public/fordecyt_2019/centropais/data/viajes_entre.zip
deleted
100644 → 0
View file @
9ee01644
File deleted
public/fordecyt_2019/js/centropais_basemap.js
View file @
07899860
...
@@ -139,7 +139,21 @@ const getDesdeColor = s => {
...
@@ -139,7 +139,21 @@ const getDesdeColor = s => {
"#ffebbf"
;
"#ffebbf"
;
}
}
const
getTiempoColor
=
s
=>
{
const
getHaciaPOICColor
=
s
=>
{
return
s
>
4000
?
"#00451c"
:
s
>
2000
?
"#218542"
:
s
>
1000
?
"#4bc44f"
:
s
>
500
?
"#b4d787"
:
"#e3fcd9"
;
}
const
getDesdePOICColor
=
s
=>
{
return
s
>
1000
?
"#fc7f44"
:
s
>
500
?
"#ffaa00"
:
"#ffebbf"
;
}
const
getEntreColor
=
s
=>
{
return
s
>
3500
?
"#a80000"
:
return
s
>
3500
?
"#a80000"
:
s
>
2000
?
"#e64c00"
:
s
>
2000
?
"#e64c00"
:
s
>
1000
?
"#ffaa00"
:
s
>
1000
?
"#ffaa00"
:
...
@@ -152,7 +166,7 @@ const getCuencasColor = s => {
...
@@ -152,7 +166,7 @@ const getCuencasColor = s => {
"rgba(168,56,0,0.3)"
;
"rgba(168,56,0,0.3)"
;
}
}
let
munis_contexto
,
lim_zms
,
zms
,
conurbaciones
,
agebs2005
,
agebs2010
,
agebs2015
,
auto2010
,
auto2014
,
auto2018
,
tecnologia2010
,
tecnologia2014
,
tecnologia2018
,
centros
,
hacia
,
desde
;
let
munis_contexto
,
lim_zms
,
zms
,
conurbaciones
,
agebs2005
,
agebs2010
,
agebs2015
,
auto2010
,
auto2014
,
auto2018
,
tecnologia2010
,
tecnologia2014
,
tecnologia2018
,
centros
,
hacia
,
desde
,
centrosPOIC
,
haciaPOIC
,
desdePOIC
;
//supermercados, bancos, agebsbypop, agebsbydens, agricolaoi, agricolapv, escuelas, hospitales, hoteles, subcuencas, tuxtlaVH;
//supermercados, bancos, agebsbypop, agebsbydens, agricolaoi, agricolapv, escuelas, hospitales, hoteles, subcuencas, tuxtlaVH;
// *** WMS INEGI ***
// *** WMS INEGI ***
...
@@ -766,6 +780,73 @@ let layer_desde = new L.geoJson(null, {
...
@@ -766,6 +780,73 @@ let layer_desde = new L.geoJson(null, {
style
:
style_desde
style
:
style_desde
});
});
const
style_centrosPOIC
=
feature
=>
{
return
{
pane
:
"pane_centrosPOIC"
,
opacity
:
1
,
color
:
"rgba(110,100,110,0.7)"
,
//dashArray: "3 2",
lineCap
:
"butt"
,
lineJoin
:
"miter"
,
weight
:
0.5
,
//1.0,
fill
:
true
,
fillOpacity
:
.
4
,
fillColor
:
getCentrosColor
(
feature
.
properties
[
'OCUPADOS'
]),
//fillPattern: "stripes"
}
}
let
layer_centrosPOIC
=
new
L
.
geoJson
(
null
,
{
attribution
:
""
,
pane
:
"pane_centrosPOIC"
,
//onEachFeature: pop_ANPs,
style
:
style_centrosPOIC
});
const
style_haciaPOIC
=
feature
=>
{
return
{
pane
:
"pane_haciaPOIC"
,
opacity
:
1
,
color
:
"rgba(110,110,110,0.7)"
,
//dashArray: "3 2",
lineCap
:
"butt"
,
lineJoin
:
"miter"
,
weight
:
0.5
,
//1.0,
fill
:
true
,
fillOpacity
:
1
,
fillColor
:
getHaciaPOICColor
(
feature
.
properties
[
'PERSONAS'
])
}
}
let
layer_haciaPOIC
=
new
L
.
geoJson
(
null
,
{
attribution
:
""
,
pane
:
"pane_haciaPOIC"
,
//onEachFeature: pop_ANPs,
style
:
style_haciaPOIC
});
const
style_desdePOIC
=
feature
=>
{
return
{
pane
:
"pane_desdePOIC"
,
opacity
:
1
,
color
:
"rgba(110,110,110,0.7)"
,
//dashArray: "3 2",
lineCap
:
"butt"
,
lineJoin
:
"miter"
,
weight
:
0.5
,
//1.0,
fill
:
true
,
fillOpacity
:
1
,
fillColor
:
getDesdePOICColor
(
feature
.
properties
[
'PERSONAS'
])
}
}
let
layer_desdePOIC
=
new
L
.
geoJson
(
null
,
{
attribution
:
""
,
pane
:
"pane_desdePOIC"
,
//onEachFeature: pop_ANPs,
style
:
style_desdePOIC
});
const
styleDrawnItems
=
()
=>
{
const
styleDrawnItems
=
()
=>
{
let
currentId
=
0
;
let
currentId
=
0
;
drawnItems
.
eachLayer
(
l
=>
{
drawnItems
.
eachLayer
(
l
=>
{
...
@@ -821,12 +902,16 @@ const makeBaseMap = () => {
...
@@ -821,12 +902,16 @@ const makeBaseMap = () => {
createPane
(
"pane_tecnologia2010"
,
412
);
createPane
(
"pane_tecnologia2010"
,
412
);
createPane
(
"pane_tecnologia2014"
,
412
);
createPane
(
"pane_tecnologia2014"
,
412
);
createPane
(
"pane_tecnologia2018"
,
412
);
createPane
(
"pane_tecnologia2018"
,
412
);
createPane
(
"pane_centros"
,
420
);
createPane
(
"pane_escuelas"
,
413
);
createPane
(
"pane_escuelas"
,
413
);
createPane
(
"pane_hospitales"
,
415
);
createPane
(
"pane_hospitales"
,
415
);
createPane
(
"pane_supermercados"
,
416
);
createPane
(
"pane_supermercados"
,
416
);
createPane
(
"pane_centros"
,
420
);
createPane
(
"pane_desde"
,
414
);
createPane
(
"pane_desde"
,
414
);
createPane
(
"pane_hacia"
,
415
);
createPane
(
"pane_hacia"
,
415
);
createPane
(
"pane_centrosPOIC"
,
420
);
createPane
(
"pane_desdePOIC"
,
414
);
createPane
(
"pane_haciaPOIC"
,
415
);
// createPane("pane_agricolaoi", 419);
// createPane("pane_agricolaoi", 419);
// createPane("pane_agricolapv", 420);
// createPane("pane_agricolapv", 420);
createPane
(
"pane_agebs"
,
421
);
createPane
(
"pane_agebs"
,
421
);
...
@@ -869,6 +954,13 @@ const makeBaseMap = () => {
...
@@ -869,6 +954,13 @@ const makeBaseMap = () => {
layerControl
.
addOverlay
(
layer_hacia
,
"Número de ocupados <br /> <svg height=
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#e3fcd9
\"
stroke=
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 0 - 1000<br /> <svg height=
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#b4d787
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 1001 - 2000<br/> <svg height =
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#4bc44f
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 2001 - 6000 <br/> <svg height =
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#218542
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 6001 - 32000 <br/> <svg height =
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#00451c
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 32001 - 53300"
);
layerControl
.
addOverlay
(
layer_hacia
,
"Número de ocupados <br /> <svg height=
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#e3fcd9
\"
stroke=
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 0 - 1000<br /> <svg height=
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#b4d787
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 1001 - 2000<br/> <svg height =
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#4bc44f
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 2001 - 6000 <br/> <svg height =
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#218542
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 6001 - 32000 <br/> <svg height =
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#00451c
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 32001 - 53300"
);
zip2Lyr
(
"../centropais/data/desde.zip"
,
desde
,
layer_desde
);
zip2Lyr
(
"../centropais/data/desde.zip"
,
desde
,
layer_desde
);
layerControl
.
addOverlay
(
layer_desde
,
"Número de ocupados <br /> <svg height=
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#ffebbf
\"
stroke=
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> Menos de 1000<br /> <svg height=
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#ffaa00
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 1001 - 2000<br/> <svg height =
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#fc7f44
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 2001- 6000 <br/> <svg height =
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#b30000
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 6001 - 7200"
);
layerControl
.
addOverlay
(
layer_desde
,
"Número de ocupados <br /> <svg height=
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#ffebbf
\"
stroke=
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> Menos de 1000<br /> <svg height=
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#ffaa00
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 1001 - 2000<br/> <svg height =
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#fc7f44
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 2001- 6000 <br/> <svg height =
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#b30000
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 6001 - 7200"
);
zip2Lyr
(
"../centropais/data/centros_de_mercado_POIC.zip"
,
centrosPOIC
,
layer_centrosPOIC
);
layerControl
.
addOverlay
(
layer_centrosPOIC
,
"Centros de mercado <br /> <svg height=
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#d1ff73
\"
stroke=
\"
#aaff00
\"
stroke-dasharray=
\"
\"
></rect></svg> Terciario<br /> <svg height=
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#8e1973
\"
stroke =
\"
#a80084
\"
stroke-dasharray=
\"
\"
></rect></svg> Secundario<br/> <svg height =
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#ff5500
\"
stroke =
\"
#e60000
\"
stroke-dasharray=
\"
\"
></rect></svg> Primario"
);
// layerControl.addOverlay(layer_vferreas, "<img src=\"http://gaia.inegi.org.mx/NLB/tunnel/wms/mdm6wms?map=/opt/map/mdm60/mdm61leyendaprueba.map&Request=GetLegendGraphic&format=image/png&Version=1.1.1&Service=WMS&LAYER=c202\" alt=\"Vías Férreas\"/>");
zip2Lyr
(
"../centropais/data/hacia_POIC.zip"
,
haciaPOIC
,
layer_haciaPOIC
);
layerControl
.
addOverlay
(
layer_haciaPOIC
,
"Número de viajes <br /> <svg height=
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#e3fcd9
\"
stroke=
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> Menos de 500<br /> <svg height=
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#b4d787
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 501 - 1000<br/> <svg height =
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#4bc44f
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 1001 - 2000 <br/> <svg height =
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#218542
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 2001 - 4000 <br/> <svg height =
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#00451c
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 4001 - 10612"
);
zip2Lyr
(
"../centropais/data/desde_POIC.zip"
,
desdePOIC
,
layer_desdePOIC
);
layerControl
.
addOverlay
(
layer_desdePOIC
,
"Número de viajes <br /> <svg height=
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#ffebbf
\"
stroke=
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> Menos de 500<br /> <svg height=
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#ffaa00
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 501 - 1000<br/> <svg height =
\"
15
\"
width=
\"
15
\"
><path d=
\"
M0 0 L15 0 L15 10 L0 10 Z
\"
x=
\"
5
\"
y=
\"
5
\"
fill=
\"
#fc7f44
\"
stroke =
\"
#6e6e6e
\"
stroke-dasharray=
\"
\"
></rect></svg> 1001- 2000"
);
// zip2Lyr("../riesgos/data/agricola_pv.zip", agricolapv, layer_agricolapv);
// zip2Lyr("../riesgos/data/agricola_pv.zip", agricolapv, layer_agricolapv);
// layerControl.addOverlay(layer_agricolapv, "Ciclo agrícola (Primavera-Verano), SIAP-SADER 2017 <br /> <svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#d1ff73\" stroke=\"#aaff00\" stroke-dasharray=\" \"></rect></svg> Maíz grano<br /> <svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#8e1973\" stroke = \"#a80084\" stroke-dasharray=\" \"></rect></svg> Frijol<br/> <svg height = \"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#ff5500\" stroke = \"#e60000\" stroke-dasharray=\" \"></rect></svg> Sorgo grano");
// layerControl.addOverlay(layer_agricolapv, "Ciclo agrícola (Primavera-Verano), SIAP-SADER 2017 <br /> <svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#d1ff73\" stroke=\"#aaff00\" stroke-dasharray=\" \"></rect></svg> Maíz grano<br /> <svg height=\"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#8e1973\" stroke = \"#a80084\" stroke-dasharray=\" \"></rect></svg> Frijol<br/> <svg height = \"15\" width=\"15\"><path d=\"M0 0 L15 0 L15 10 L0 10 Z \" x=\"5\" y=\"5\" fill=\"#ff5500\" stroke = \"#e60000\" stroke-dasharray=\" \"></rect></svg> Sorgo grano");
// zip2Lyr("../riesgos/data/poblacionAGEB.zip", agebsbydens, layer_agebsbydens);
// zip2Lyr("../riesgos/data/poblacionAGEB.zip", agebsbydens, layer_agebsbydens);
...
...
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