update parcel to v2 stable; add CE & ML files

This commit is contained in:
Hugoren Martinako 2022-01-04 12:25:55 +01:00
parent 2073c406e9
commit a26e702b9e
8 changed files with 8313 additions and 5 deletions

6
.parcelrc Normal file
View File

@ -0,0 +1,6 @@
{
"extends": "@parcel/config-default",
"transformers": {
"url:*.json": ["@parcel/transformer-raw"]
}
}

8294
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -22,9 +22,12 @@
"topojson-client": "^3.1.0"
},
"devDependencies": {
"@parcel/optimizer-data-url": "^2.0.1",
"@parcel/resolver-glob": "^2.0.1",
"@parcel/transformer-inline-string": "^2.0.1",
"eslint": "^7.26.0",
"gh-pages": "^3.1.0",
"parcel": "^2.0.0-beta.2",
"parcel": "^2.0.1",
"stylelint": "^13.13.1",
"stylelint-config-standard": "^21.0.0"
}

View File

@ -14,6 +14,6 @@
<body>
<div id="map"></div>
<script src="js/index.js"></script>
<script src="js/index.js" type="module"></script>
</body>
</html>

View File

@ -15,6 +15,8 @@ import IB from "url:../../static/IB.topo.json"
import RI from "url:../../static/RI.topo.json"
import NC from "url:../../static/NC.topo.json"
import MC from "url:../../static/MC.topo.json"
import CE from "url:../../static/CE.topo.json"
import ML from "url:../../static/ML.topo.json"
import ccaa from "url:../../static/ES.ccaa.topo.json"
import prov from "url:../../static/ES.prov.topo.json"
@ -42,6 +44,8 @@ export const URLS = [
{ url: IB, code: "ES-IB" },
{ url: RI, code: "ES-RI" },
{ url: NC, code: "ES-NC" },
{ url: MC, code: "ES-MC" }
{ url: MC, code: "ES-MC" },
{ url: CE, code: "ES-CE" },
{ url: ML, code: "ES-ML" }
]
]

1
static/CE.topo.json Normal file
View File

@ -0,0 +1 @@
{"type":"Topology","arcs":[[[789,490],[-27,-35],[94,-87],[-13,0],[24,-16],[-24,-19]],[[843,333],[0,-53],[-40,-17],[-81,-123],[-80,18],[-53,-35],[-67,-123],[-67,18],[-27,70],[-27,-53],[-53,0],[-54,53],[0,35],[-107,35],[-67,52],[-26,105],[0,88],[-40,35],[13,157],[-67,140],[40,70],[107,-17],[54,35],[254,-175],[40,-105],[120,-140],[40,0],[107,122],[27,-35]],[[843,333],[40,17],[27,-35],[-14,35],[67,-17],[13,17],[0,18],[27,-18],[-13,35],[67,18],[13,-18],[0,35],[-80,18],[93,-18],[27,35],[0,53],[121,70],[26,52],[27,-52],[27,-18],[0,-35],[80,-17],[-40,-105],[-27,17],[-53,-70],[-94,-35],[-40,18],[-40,-70],[-94,-35],[-147,52],[-13,53]]],"transform":{"scale":[0.00007476635514018699,0.00005710814094774854],"translate":[-5.382,35.871]},"objects":{"CE.feature":{"type":"GeometryCollection","geometries":[{"arcs":[[[0,1]],[[2]]],"type":"MultiPolygon","properties":{"id":"51001","name":"Ceuta","prov":"ES-CE","values":{"2017-02-01":0.71862348178138,"2017-05-01":0.72323232323232,"2017-08-01":0.74618320610687,"2017-11-01":0.74334600760456,"2018-02-01":0.74334600760456,"2018-05-01":0.7447619047619,"2018-08-01":0.74719101123596,"2018-11-01":0.73616236162362,"2019-03-01":0.73577981651376,"2019-05-01":0.73722627737226,"2019-07-01":0.7377938517179,"2019-09-01":0.73731884057971,"2019-11-01":0.73598553345389,"2020-01-01":0.73321554770318,"2020-02-01":0.73498233215548,"2020-03-01":0.73451327433628,"2020-04-01":0.73451327433628,"2020-05-01":0.75176056338028,"2020-06-01":0.75176056338028,"2020-07-01":0.75176056338028,"2020-08-01":0.75176056338028,"2020-09-01":0.75219683655536,"2020-10-01":0.75087719298246,"2020-11-01":0.75087719298246,"2020-12-01":0.76262626262626,"2021-01-01":0.76262626262626,"2021-02-01":0.76262626262626,"2021-03-01":0.75959933222037,"2021-04-01":0.75919732441472,"2021-05-01":0.75919732441472,"2021-06-01":0.75959933222037,"2021-07-01":0.72402597402597,"2021-08-01":0.74739970282318,"2021-09-01":0.74739970282318,"2021-10-01":0.74739970282318,"2021-11-01":0.74739970282318,"2021-12-01":0.74739970282318,"2022-01-01":0.56974248927039}}}]}}}

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"type":"Topology","arcs":[[[575,345],[-47,16],[-15,-33],[0,-82],[93,-98],[56,-15],[-10,-18],[-171,-99],[-186,-16],[-46,115],[-218,148],[0,49],[47,33],[0,32],[-78,0],[31,197],[109,230],[140,82],[46,-66],[62,-16],[-31,-98],[78,-99],[46,16],[16,-32],[31,-33],[0,-82],[31,16],[31,-33],[109,-16],[31,-66],[-31,33],[-62,0],[-16,33],[-31,0],[16,-33],[-78,17],[0,-33],[16,0]],[[544,394],[0,-33],[31,-16]],[[544,394],[31,0],[0,-33],[-31,33]]],"transform":{"scale":[0.00006438356164383582,0.00006094808126411066],"translate":[-2.97,35.266]},"objects":{"ML":{"type":"GeometryCollection","geometries":[{"arcs":[[[0,1]],[[2]]],"type":"MultiPolygon","properties":{"id":"52001","name":"Melilla","values":{"2021-03-01":0.76}}}]}}}
{"type":"Topology","arcs":[[[575,345],[-47,16],[-15,-33],[0,-82],[93,-98],[56,-15],[-10,-18],[-171,-99],[-186,-16],[-46,115],[-218,148],[0,49],[47,33],[0,32],[-78,0],[31,197],[109,230],[140,82],[46,-66],[62,-16],[-31,-98],[78,-99],[46,16],[16,-32],[31,-33],[0,-82],[31,16],[31,-33],[109,-16],[31,-66],[-31,33],[-62,0],[-16,33],[-31,0],[16,-33],[-78,17],[0,-33],[16,0]],[[544,394],[0,-33],[31,-16]],[[544,394],[31,0],[0,-33],[-31,33]]],"transform":{"scale":[0.00006438356164383582,0.00006094808126411066],"translate":[-2.97,35.266]},"objects":{"ML.feature":{"type":"GeometryCollection","geometries":[{"arcs":[[[0,1]],[[2]]],"type":"MultiPolygon","properties":{"id":"52001","name":"Melilla","prov":"ES-ML","values":{"2017-11-01":0.62640099626401,"2018-02-01":0.59760479041916,"2018-05-01":0.76005547850208,"2018-08-01":0.7431906614786,"2018-11-01":0.7431906614786,"2019-03-01":0.74642392717815,"2019-05-01":0.74642392717815,"2019-07-01":0.74642392717815,"2019-09-01":0.74838709677419,"2019-11-01":0.74871134020619,"2020-01-01":0.74871794871795,"2020-02-01":0.74871794871795,"2020-03-01":0.74871794871795,"2020-04-01":0.74871794871795,"2020-05-01":0.74871794871795,"2020-06-01":0.74775928297055,"2020-07-01":0.7474358974359,"2020-08-01":0.7474358974359,"2020-09-01":0.7474358974359,"2020-10-01":0.74711168164313,"2020-11-01":0.7458064516129,"2020-12-01":0.7458064516129,"2021-01-01":0.7458064516129,"2021-02-01":0.7433290978399,"2021-03-01":0.73325062034739,"2021-04-01":0.72481572481572,"2021-05-01":0.72215422276622,"2021-06-01":0.72127139364303,"2021-07-01":0.74858984689766,"2021-08-01":0.85506134969325,"2021-09-01":0.85506134969325,"2021-10-01":0.85416666666667,"2021-11-01":0.85427910562837,"2021-12-01":0.8518802762855,"2022-01-01":0.84044943820225}}}]}}}