mapicgc-gl-js 1.0.5 → 1.0.7
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/{html2canvas-DhrjCa5K-zEqRDH-g.mjs → html2canvas-DhrjCa5K-6_3CwS_m.mjs} +1 -1
- package/dist/mapicgc-gl.js +2518 -530
- package/dist/mapicgc-gl.mjs +18528 -21339
- package/dist/{webgl-device-DPB4IspV.mjs → webgl-device-B1jTrfKA.mjs} +2611 -1304
- package/dist/webgl-device-D8jkwRzb.mjs +2 -0
- package/nodeSetConfig.js +6 -6
- package/package.json +13 -12
- package/src/config-out.js +7 -7
- package/src/config.js +1068 -825
- package/src/configNode.js +1027 -18
- package/src/constants/Layers.js +31 -1
- package/src/constants/Styles.js +6 -6
- package/src/map/Map.js +81 -25
- package/src/mapicgc-config.json +8 -1058
- package/test/exemples/addBasemap.html +2 -2
- package/test/exemples/addICGCTerrain.html +1 -1
- package/dist/webgl-device-CDzrheIu.mjs +0 -2
package/nodeSetConfig.js
CHANGED
|
@@ -192,14 +192,14 @@ async function getVectorLimitsLayers() {
|
|
|
192
192
|
try {
|
|
193
193
|
|
|
194
194
|
let test= [
|
|
195
|
-
{ key: "TOPO", url: "https://geoserveis.icgc.cat/styles/
|
|
196
|
-
{ key: "ORTO", url: "https://geoserveis.icgc.cat/styles/
|
|
195
|
+
{ key: "TOPO", url: "https://geoserveis.icgc.cat/styles/mapa-base-topografic.json",image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_estandard.png" },
|
|
196
|
+
{ key: "ORTO", url: "https://geoserveis.icgc.cat/styles/mapa-base-orto.json" , image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_estandard.png"},
|
|
197
197
|
{ key: "ORTO3D", url: "https://eines.icgc.cat/recursos//styles/icgc_orto_3d.json" , image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_estandard.png"},
|
|
198
|
-
{ key: "ORTOHYBRID", url: "https://geoserveis.icgc.cat/styles/
|
|
199
|
-
{ key: "ADMIN", url: "https://geoserveis.icgc.cat/styles/
|
|
198
|
+
{ key: "ORTOHYBRID", url: "https://geoserveis.icgc.cat/styles/mapa-base-orto-hibrida.json" , image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_hibrida.png"},
|
|
199
|
+
{ key: "ADMIN", url: "https://geoserveis.icgc.cat/styles/mapa-base-administratiu.json" , image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_delimitacio_limits_administratius.png"},
|
|
200
200
|
{ key: "DARK", url: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_fosc.json" , image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_base_fosc.png"},
|
|
201
|
-
{ key: "LIGHT", url: "https://geoserveis.icgc.cat/styles/
|
|
202
|
-
{ key: "GEOLOGY", url: "https://geoserveis.icgc.cat/styles/
|
|
201
|
+
{ key: "LIGHT", url: "https://geoserveis.icgc.cat/styles/mapa-base-estandard-gris.json", image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_base_gris.png" },
|
|
202
|
+
{ key: "GEOLOGY", url: "https://geoserveis.icgc.cat/styles/mapa-base-geologic.json", image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_geologic_informacio.png" },
|
|
203
203
|
{
|
|
204
204
|
key: "RASTER",
|
|
205
205
|
substyles: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mapicgc-gl-js",
|
|
3
3
|
"homepage": "https://openicgc.github.io/mapicgc-doc/",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.7",
|
|
5
5
|
"description": "mapicgc-gl-js library",
|
|
6
6
|
"author": "Institut Cartogràfic i Geològic de Catalunya",
|
|
7
7
|
"license": "BSD-3-Clause",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"webmap",
|
|
13
13
|
"ICGC",
|
|
14
14
|
"app",
|
|
15
|
+
"mapicgc",
|
|
15
16
|
"maplibre"
|
|
16
17
|
],
|
|
17
18
|
"repository": {
|
|
@@ -45,31 +46,31 @@
|
|
|
45
46
|
"@babel/core": "^7.29.0",
|
|
46
47
|
"@babel/preset-env": "^7.29.2",
|
|
47
48
|
"@rollup/plugin-babel": "^7.0.0",
|
|
48
|
-
"axios": "^1.
|
|
49
|
-
"dotenv": "^17.
|
|
49
|
+
"axios": "^1.15.0",
|
|
50
|
+
"dotenv": "^17.4.2",
|
|
50
51
|
"jest": "30.3.0",
|
|
51
52
|
"jsdoc": "^4.0.5",
|
|
52
|
-
"jsdom": "^29.0.
|
|
53
|
+
"jsdom": "^29.0.2",
|
|
53
54
|
"npm-run-all": "^4.1.5",
|
|
54
55
|
"package-json-versionify": "^1.0.4",
|
|
55
56
|
"path": "^0.12.7",
|
|
56
57
|
"rollup-plugin-polyfill": "^4.2.0",
|
|
57
58
|
"ssh2-sftp-client": "^12.1.1",
|
|
58
|
-
"vite": "^8.0.
|
|
59
|
-
"vite-plugin-node-polyfills": "^0.
|
|
60
|
-
"vitest": "^4.1.
|
|
59
|
+
"vite": "^8.0.8",
|
|
60
|
+
"vite-plugin-node-polyfills": "^0.2.0",
|
|
61
|
+
"vitest": "^4.1.4",
|
|
61
62
|
"xml2js": "^0.6.2"
|
|
62
63
|
},
|
|
63
64
|
"dependencies": {
|
|
64
|
-
"@deck.gl/core": "^9.
|
|
65
|
-
"@deck.gl/geo-layers": "^9.
|
|
66
|
-
"@deck.gl/mapbox": "^9.
|
|
67
|
-
"@loaders.gl/3d-tiles": "~4.
|
|
65
|
+
"@deck.gl/core": "^9.3.0",
|
|
66
|
+
"@deck.gl/geo-layers": "^9.3.0",
|
|
67
|
+
"@deck.gl/mapbox": "^9.3.0",
|
|
68
|
+
"@loaders.gl/3d-tiles": "~4.4.1",
|
|
68
69
|
"@maplibre/maplibre-gl-compare": "^0.5.0",
|
|
69
70
|
"@maplibre/maplibre-gl-geocoder": "^1.9.4",
|
|
70
71
|
"@watergis/maplibre-gl-export": "^4.1.2",
|
|
71
72
|
"flatgeobuf": "^4.4.0",
|
|
72
|
-
"maplibre-gl": "^5.
|
|
73
|
+
"maplibre-gl": "^5.23.0",
|
|
73
74
|
"utm-latlng": "^1.0.8"
|
|
74
75
|
}
|
|
75
76
|
}
|
package/src/config-out.js
CHANGED
|
@@ -17,7 +17,7 @@ mapOptions: {
|
|
|
17
17
|
bearing: 0,
|
|
18
18
|
pitch: 0,
|
|
19
19
|
hash: false,
|
|
20
|
-
style: "https://geoserveis.icgc.cat/styles/
|
|
20
|
+
style: "https://geoserveis.icgc.cat/styles/mapa-base-estandard-gris.json.json",
|
|
21
21
|
maxZoom: 18,
|
|
22
22
|
maxPitch: 85,
|
|
23
23
|
},
|
|
@@ -55,12 +55,12 @@ map3dOptions: {
|
|
|
55
55
|
baseStyles: {
|
|
56
56
|
0: {
|
|
57
57
|
key: "TOPO",
|
|
58
|
-
url: "https://geoserveis.icgc.cat/styles/
|
|
58
|
+
url: "https://geoserveis.icgc.cat/styles/mapa-base-topografic.json",
|
|
59
59
|
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_estandard.png",
|
|
60
60
|
},
|
|
61
61
|
1: {
|
|
62
62
|
key: "ORTO",
|
|
63
|
-
url: "https://geoserveis.icgc.cat/styles/
|
|
63
|
+
url: "https://geoserveis.icgc.cat/styles/mapa-base-orto.json",
|
|
64
64
|
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_estandard.png",
|
|
65
65
|
},
|
|
66
66
|
2: {
|
|
@@ -70,12 +70,12 @@ baseStyles: {
|
|
|
70
70
|
},
|
|
71
71
|
3: {
|
|
72
72
|
key: "ORTOHYBRID",
|
|
73
|
-
url: "https://geoserveis.icgc.cat/styles/
|
|
73
|
+
url: "https://geoserveis.icgc.cat/styles/mapa-base-orto-hibrida.json",
|
|
74
74
|
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_hibrida.png",
|
|
75
75
|
},
|
|
76
76
|
4: {
|
|
77
77
|
key: "ADMIN",
|
|
78
|
-
url: "https://geoserveis.icgc.cat/styles/
|
|
78
|
+
url: "https://geoserveis.icgc.cat/styles/mapa-base-administratiu.json",
|
|
79
79
|
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_delimitacio_limits_administratius.png",
|
|
80
80
|
},
|
|
81
81
|
5: {
|
|
@@ -85,12 +85,12 @@ baseStyles: {
|
|
|
85
85
|
},
|
|
86
86
|
6: {
|
|
87
87
|
key: "LIGHT",
|
|
88
|
-
url: "https://geoserveis.icgc.cat/styles/
|
|
88
|
+
url: "https://geoserveis.icgc.cat/styles/mapa-base-estandard-gris.json",
|
|
89
89
|
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_base_gris.png",
|
|
90
90
|
},
|
|
91
91
|
7: {
|
|
92
92
|
key: "GEOLOGY",
|
|
93
|
-
url: "https://geoserveis.icgc.cat/styles/
|
|
93
|
+
url: "https://geoserveis.icgc.cat/styles/mapa-base-geologic.json",
|
|
94
94
|
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_geologic_informacio.png",
|
|
95
95
|
},
|
|
96
96
|
},
|