mapicgc-gl-js 0.0.37 → 0.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/mapicgc-gl.css +59 -5
- package/dist/mapicgc-gl.js +1873 -138
- package/dist/mapicgc-gl.umd.js +1873 -138
- package/docu_Map.md +0 -0
- package/exemples/compare.html +6 -39
- package/exemples/orto3d.html +115 -0
- package/nodeDeploy.js +1 -1
- package/nodeSetConfig.js +23 -17
- package/package.json +11 -7
- package/public/mapicgc-gl.css +59 -5
- package/src/config.js +94 -71
- package/src/configNode.js +94 -71
- package/src/constants/Layers.js +23 -22
- package/src/constants/Styles.js +2 -1
- package/src/constants/Terrains.js +2 -2
- package/src/map/Map.js +265 -107
- package/test/Proposa_DAC_min.geojson +3599 -1
- package/test/index.html +15 -6
- package/vite.config.mjs +4 -0
package/src/config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
const urlImages = "https://visors.icgc.cat/contextmaps/imatges_estil/";
|
|
3
3
|
const urlStyles = "https://geoserveis.icgc.cat/contextmaps/";
|
|
4
|
+
const geocoderUrl = "https://eines.icgc.cat/geocodificador/autocompletar?text=";
|
|
4
5
|
const defaultOptions = {
|
|
5
6
|
mapOptions: {
|
|
6
7
|
container: "map",
|
|
@@ -16,6 +17,17 @@ mapOptions: {
|
|
|
16
17
|
maxZoom: 18,
|
|
17
18
|
maxPitch: 85,
|
|
18
19
|
},
|
|
20
|
+
map3dOptions: {
|
|
21
|
+
spaceErrorFactor: 2,
|
|
22
|
+
zfactor: 25,
|
|
23
|
+
minZoomRange: 15.5,
|
|
24
|
+
maxZoomRange: 22,
|
|
25
|
+
urlTilesetCities: "http://imtilemapsdev.icgc.local/terrenys/Ciutats/tilesetV1.0.json",
|
|
26
|
+
layerIdOrder: "place-isolated",
|
|
27
|
+
layerId3d: "edificisMapboxLayer",
|
|
28
|
+
terrainSource: "ICGC5M",
|
|
29
|
+
style3dName: "orto3d",
|
|
30
|
+
},
|
|
19
31
|
baseStyles: {
|
|
20
32
|
0: {
|
|
21
33
|
key: "TOPO",
|
|
@@ -24,25 +36,30 @@ baseStyles: {
|
|
|
24
36
|
},
|
|
25
37
|
1: {
|
|
26
38
|
key: "ORTO",
|
|
27
|
-
url: "https://geoserveis.icgc.cat/contextmaps/
|
|
39
|
+
url: "https://geoserveis.icgc.cat/contextmaps/icgc_orto_estandard.json",
|
|
28
40
|
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_hibrida.png",
|
|
29
41
|
},
|
|
30
42
|
2: {
|
|
43
|
+
key: "ORTO3D",
|
|
44
|
+
url: "https://tilemaps.icgc.cat/cdn/styles/icgc_orto_3d.json",
|
|
45
|
+
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_hibrida.png",
|
|
46
|
+
},
|
|
47
|
+
3: {
|
|
31
48
|
key: "ADMIN",
|
|
32
49
|
url: "https://geoserveis.icgc.cat/contextmaps/icgc_delimitacio_limits_administratius.json",
|
|
33
50
|
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_delimitacio_limits_administratius.png",
|
|
34
51
|
},
|
|
35
|
-
|
|
52
|
+
4: {
|
|
36
53
|
key: "DARK",
|
|
37
54
|
url: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_fosc.json",
|
|
38
55
|
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_base_fosc.png",
|
|
39
56
|
},
|
|
40
|
-
|
|
57
|
+
5: {
|
|
41
58
|
key: "LIGHT",
|
|
42
59
|
url: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_gris.json",
|
|
43
60
|
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_base_gris.png",
|
|
44
61
|
},
|
|
45
|
-
|
|
62
|
+
6: {
|
|
46
63
|
key: "GEOLOGY",
|
|
47
64
|
url: "https://geoserveis.icgc.cat/contextmaps/icgc_geologic_informacio.json",
|
|
48
65
|
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_geologic_informacio.png",
|
|
@@ -51,11 +68,12 @@ baseStyles: {
|
|
|
51
68
|
urlTerrainICGC: {
|
|
52
69
|
0: {
|
|
53
70
|
name: "ICGC5M",
|
|
54
|
-
url: "https://tilemaps.icgc.cat/tileserver/tileserver
|
|
71
|
+
url: "https://tilemaps.icgc.cat/tileserver/tileserver/terreny-5m-30m-rgb-extent/{z}/{x}/{y}.png",
|
|
55
72
|
},
|
|
56
73
|
1: {
|
|
57
|
-
name: "
|
|
58
|
-
url: "https://
|
|
74
|
+
name: "WORLD30M",
|
|
75
|
+
url: "https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png",
|
|
76
|
+
encoding: "terrarium",
|
|
59
77
|
},
|
|
60
78
|
},
|
|
61
79
|
ortoLayersICGC: {
|
|
@@ -332,9 +350,9 @@ vectorLayersICGC: {
|
|
|
332
350
|
url: "https://tilemaps.icgc.cat/vector/fgb/agrupacions_censals_vigent.fgb",
|
|
333
351
|
},
|
|
334
352
|
8: {
|
|
335
|
-
name: "
|
|
336
|
-
key: "
|
|
337
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
353
|
+
name: "agrupacionsCensalsVigentText",
|
|
354
|
+
key: "agrupacions_censals_vigent_text",
|
|
355
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/agrupacions_censals_vigent_text.fgb",
|
|
338
356
|
},
|
|
339
357
|
9: {
|
|
340
358
|
name: "areesBasiquesPolicials2019",
|
|
@@ -357,9 +375,9 @@ vectorLayersICGC: {
|
|
|
357
375
|
url: "https://tilemaps.icgc.cat/vector/fgb/arees_basiques_policials_vigent.fgb",
|
|
358
376
|
},
|
|
359
377
|
13: {
|
|
360
|
-
name: "
|
|
361
|
-
key: "
|
|
362
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
378
|
+
name: "areesBasiquesPolicialsVigentText",
|
|
379
|
+
key: "arees_basiques_policials_vigent_text",
|
|
380
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/arees_basiques_policials_vigent_text.fgb",
|
|
363
381
|
},
|
|
364
382
|
14: {
|
|
365
383
|
name: "areesBasiquesSalutVigent",
|
|
@@ -372,9 +390,9 @@ vectorLayersICGC: {
|
|
|
372
390
|
url: "https://tilemaps.icgc.cat/vector/fgb/arees_basiques_serveis_socials_vigent.fgb",
|
|
373
391
|
},
|
|
374
392
|
16: {
|
|
375
|
-
name: "
|
|
376
|
-
key: "
|
|
377
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
393
|
+
name: "areesBasiquesServeisSocialsVigentText",
|
|
394
|
+
key: "arees_basiques_serveis_socials_vigent_text",
|
|
395
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/arees_basiques_serveis_socials_vigent_text.fgb",
|
|
378
396
|
},
|
|
379
397
|
17: {
|
|
380
398
|
name: "areesGestioAssistencialVigent",
|
|
@@ -392,9 +410,9 @@ vectorLayersICGC: {
|
|
|
392
410
|
url: "https://tilemaps.icgc.cat/vector/fgb/catalunya_vigent.fgb",
|
|
393
411
|
},
|
|
394
412
|
20: {
|
|
395
|
-
name: "
|
|
396
|
-
key: "
|
|
397
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
413
|
+
name: "catalunyaVigentText",
|
|
414
|
+
key: "catalunya_vigent_text",
|
|
415
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/catalunya_vigent_text.fgb",
|
|
398
416
|
},
|
|
399
417
|
21: {
|
|
400
418
|
name: "comarques2022",
|
|
@@ -407,9 +425,9 @@ vectorLayersICGC: {
|
|
|
407
425
|
url: "https://tilemaps.icgc.cat/vector/fgb/comarques_vigent.fgb",
|
|
408
426
|
},
|
|
409
427
|
23: {
|
|
410
|
-
name: "
|
|
411
|
-
key: "
|
|
412
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
428
|
+
name: "comarquesVigentText",
|
|
429
|
+
key: "comarques_vigent_text",
|
|
430
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/comarques_vigent_text.fgb",
|
|
413
431
|
},
|
|
414
432
|
24: {
|
|
415
433
|
name: "districtesCensals2002",
|
|
@@ -522,9 +540,9 @@ vectorLayersICGC: {
|
|
|
522
540
|
url: "https://tilemaps.icgc.cat/vector/fgb/districtes_censals_vigent.fgb",
|
|
523
541
|
},
|
|
524
542
|
46: {
|
|
525
|
-
name: "
|
|
526
|
-
key: "
|
|
527
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
543
|
+
name: "districtesCensalsVigentText",
|
|
544
|
+
key: "districtes_censals_vigent_text",
|
|
545
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/districtes_censals_vigent_text.fgb",
|
|
528
546
|
},
|
|
529
547
|
47: {
|
|
530
548
|
name: "incendisForestalsVigent",
|
|
@@ -532,9 +550,9 @@ vectorLayersICGC: {
|
|
|
532
550
|
url: "https://tilemaps.icgc.cat/vector/fgb/incendis_forestals_vigent.fgb",
|
|
533
551
|
},
|
|
534
552
|
48: {
|
|
535
|
-
name: "
|
|
536
|
-
key: "
|
|
537
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
553
|
+
name: "incendisForestalsVigentText",
|
|
554
|
+
key: "incendis_forestals_vigent_text",
|
|
555
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/incendis_forestals_vigent_text.fgb",
|
|
538
556
|
},
|
|
539
557
|
49: {
|
|
540
558
|
name: "municipis2022",
|
|
@@ -542,9 +560,9 @@ vectorLayersICGC: {
|
|
|
542
560
|
url: "https://tilemaps.icgc.cat/vector/fgb/municipis_2022.fgb",
|
|
543
561
|
},
|
|
544
562
|
50: {
|
|
545
|
-
name: "
|
|
546
|
-
key: "
|
|
547
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
563
|
+
name: "municipis2022Text",
|
|
564
|
+
key: "municipis_2022_text",
|
|
565
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/municipis_2022_text.fgb",
|
|
548
566
|
},
|
|
549
567
|
51: {
|
|
550
568
|
name: "municipisVigent",
|
|
@@ -552,9 +570,9 @@ vectorLayersICGC: {
|
|
|
552
570
|
url: "https://tilemaps.icgc.cat/vector/fgb/municipis_vigent.fgb",
|
|
553
571
|
},
|
|
554
572
|
52: {
|
|
555
|
-
name: "
|
|
556
|
-
key: "
|
|
557
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
573
|
+
name: "municipisVigentText",
|
|
574
|
+
key: "municipis_vigent_text",
|
|
575
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/municipis_vigent_text.fgb",
|
|
558
576
|
},
|
|
559
577
|
53: {
|
|
560
578
|
name: "partitsJudicialsVigent",
|
|
@@ -562,9 +580,9 @@ vectorLayersICGC: {
|
|
|
562
580
|
url: "https://tilemaps.icgc.cat/vector/fgb/partits_judicials_vigent.fgb",
|
|
563
581
|
},
|
|
564
582
|
54: {
|
|
565
|
-
name: "
|
|
566
|
-
key: "
|
|
567
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
583
|
+
name: "partitsJudicialsVigentText",
|
|
584
|
+
key: "partits_judicials_vigent_text",
|
|
585
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/partits_judicials_vigent_text.fgb",
|
|
568
586
|
},
|
|
569
587
|
55: {
|
|
570
588
|
name: "plaTerritorial2015",
|
|
@@ -577,9 +595,9 @@ vectorLayersICGC: {
|
|
|
577
595
|
url: "https://tilemaps.icgc.cat/vector/fgb/pla_territorial_vigent.fgb",
|
|
578
596
|
},
|
|
579
597
|
57: {
|
|
580
|
-
name: "
|
|
581
|
-
key: "
|
|
582
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
598
|
+
name: "plaTerritorialVigentText",
|
|
599
|
+
key: "pla_territorial_vigent_text",
|
|
600
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/pla_territorial_vigent_text.fgb",
|
|
583
601
|
},
|
|
584
602
|
58: {
|
|
585
603
|
name: "provinciesVigent",
|
|
@@ -587,9 +605,9 @@ vectorLayersICGC: {
|
|
|
587
605
|
url: "https://tilemaps.icgc.cat/vector/fgb/provincies_vigent.fgb",
|
|
588
606
|
},
|
|
589
607
|
59: {
|
|
590
|
-
name: "
|
|
591
|
-
key: "
|
|
592
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
608
|
+
name: "provinciesVigentText",
|
|
609
|
+
key: "provincies_vigent_text",
|
|
610
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/provincies_vigent_text.fgb",
|
|
593
611
|
},
|
|
594
612
|
60: {
|
|
595
613
|
name: "regionsPolicialsVigent",
|
|
@@ -597,9 +615,9 @@ vectorLayersICGC: {
|
|
|
597
615
|
url: "https://tilemaps.icgc.cat/vector/fgb/regions_policials_vigent.fgb",
|
|
598
616
|
},
|
|
599
617
|
61: {
|
|
600
|
-
name: "
|
|
601
|
-
key: "
|
|
602
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
618
|
+
name: "regionsPolicialsVigentText",
|
|
619
|
+
key: "regions_policials_vigent_text",
|
|
620
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/regions_policials_vigent_text.fgb",
|
|
603
621
|
},
|
|
604
622
|
62: {
|
|
605
623
|
name: "regionsSanitariesVigent",
|
|
@@ -607,9 +625,9 @@ vectorLayersICGC: {
|
|
|
607
625
|
url: "https://tilemaps.icgc.cat/vector/fgb/regions_sanitaries_vigent.fgb",
|
|
608
626
|
},
|
|
609
627
|
63: {
|
|
610
|
-
name: "
|
|
611
|
-
key: "
|
|
612
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
628
|
+
name: "regionsSanitariesVigentText",
|
|
629
|
+
key: "regions_sanitaries_vigent_text",
|
|
630
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/regions_sanitaries_vigent_text.fgb",
|
|
613
631
|
},
|
|
614
632
|
64: {
|
|
615
633
|
name: "seccionsCensals2002",
|
|
@@ -722,9 +740,9 @@ vectorLayersICGC: {
|
|
|
722
740
|
url: "https://tilemaps.icgc.cat/vector/fgb/seccions_censals_vigent.fgb",
|
|
723
741
|
},
|
|
724
742
|
86: {
|
|
725
|
-
name: "
|
|
726
|
-
key: "
|
|
727
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
743
|
+
name: "seccionsCensalsVigentText",
|
|
744
|
+
key: "seccions_censals_vigent_text",
|
|
745
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/seccions_censals_vigent_text.fgb",
|
|
728
746
|
},
|
|
729
747
|
87: {
|
|
730
748
|
name: "sectorsSanitarisVigent",
|
|
@@ -737,12 +755,24 @@ vectorLayersICGC: {
|
|
|
737
755
|
url: "https://tilemaps.icgc.cat/vector/fgb/vegueries_vigent.fgb",
|
|
738
756
|
},
|
|
739
757
|
89: {
|
|
740
|
-
name: "
|
|
741
|
-
key: "
|
|
742
|
-
url: "https://tilemaps.icgc.cat/vector/fgb/
|
|
758
|
+
name: "vegueriesVigentText",
|
|
759
|
+
key: "vegueries_vigent_text",
|
|
760
|
+
url: "https://tilemaps.icgc.cat/vector/fgb/vegueries_vigent_text.fgb",
|
|
743
761
|
},
|
|
744
762
|
},
|
|
745
763
|
vectorLayers: {
|
|
764
|
+
0: {
|
|
765
|
+
key: "altimetria",
|
|
766
|
+
layer: "",
|
|
767
|
+
url: "https://betaserver.icgc.cat/tileserver3/tileserver.php/alti_bt5m/{z}/{x}/{y}.pbf",
|
|
768
|
+
},
|
|
769
|
+
1: {
|
|
770
|
+
key: "toponimia",
|
|
771
|
+
layer: "",
|
|
772
|
+
url: "https://betaserver.icgc.cat/tileserver3/tileserver.php/redtopo/{z}/{x}/{y}.pbf",
|
|
773
|
+
},
|
|
774
|
+
},
|
|
775
|
+
wmsLayers: {
|
|
746
776
|
0: {
|
|
747
777
|
key: "relleu",
|
|
748
778
|
layer: "",
|
|
@@ -754,31 +784,24 @@ vectorLayers: {
|
|
|
754
784
|
url: "https://tilemaps.icgc.cat/mapfactory/wmts/geologia/MON3857NW/{z}/{x}/{y}.png",
|
|
755
785
|
},
|
|
756
786
|
2: {
|
|
757
|
-
key: "
|
|
787
|
+
key: "administratiu",
|
|
758
788
|
layer: "",
|
|
759
|
-
url: "
|
|
789
|
+
url: "http://geoserveis.icgc.cat/servei/catalunya/mapa-base/wmts/administratiu/MON3857NW/{z}/{x}/{y}.png",
|
|
760
790
|
},
|
|
761
791
|
3: {
|
|
762
|
-
key: "
|
|
792
|
+
key: "simplificat",
|
|
763
793
|
layer: "",
|
|
764
|
-
url: "
|
|
794
|
+
url: "http://geoserveis.icgc.cat/servei/catalunya/mapa-base/wmts/simplificat/MON3857NW/{z}/{x}/{y}.png",
|
|
765
795
|
},
|
|
766
796
|
4: {
|
|
767
|
-
key: "
|
|
768
|
-
layer: "",
|
|
769
|
-
url: "http://geoserveis.icgc.cat/servei/catalunya/cobertes-sol/wms?REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&LAYERS=cobertes_2009&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:25831&BBOX=374110.828167253,4639230.79853085,452621.120632226,4703578.45000215&WIDTH=1020&HEIGHT=836",
|
|
770
|
-
},
|
|
771
|
-
},
|
|
772
|
-
wmsLayers: {
|
|
773
|
-
0: {
|
|
774
|
-
key: "altimetria",
|
|
797
|
+
key: "cims",
|
|
775
798
|
layer: "",
|
|
776
|
-
url: "https://
|
|
799
|
+
url: "https://geoserveis.icgc.cat/icc_100cims/wms/service?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=0&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:25831&BBOX=137118.923076923,4488408.75,650959.076923077,4749634.75&WIDTH=895&HEIGHT=455",
|
|
777
800
|
},
|
|
778
|
-
|
|
779
|
-
key: "
|
|
801
|
+
5: {
|
|
802
|
+
key: "cobertesSol",
|
|
780
803
|
layer: "",
|
|
781
|
-
url: "
|
|
804
|
+
url: "http://geoserveis.icgc.cat/servei/catalunya/cobertes-sol/wms?REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&LAYERS=cobertes_2009&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:25831&BBOX=374110.828167253,4639230.79853085,452621.120632226,4703578.45000215&WIDTH=1020&HEIGHT=836",
|
|
782
805
|
},
|
|
783
806
|
},
|
|
784
807
|
};
|