mapicgc-gl-js 0.0.84 → 0.0.86

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 CHANGED
@@ -16,7 +16,7 @@
16
16
  # MapICGC GL JS
17
17
 
18
18
 
19
- > 🌠 __Based on MapLibre GL JS version:__ 4.3.2
19
+ > 🌠 __Based on MapLibre GL JS version:__ 4.5.0
20
20
 
21
21
  The MapICGC GL JS library builds upon the open-source library [**MapLibre GL JS**](https://github.com/maplibre/maplibre-gl-js), exposing its existing capabilities while introducing new features specific to the MapICGC ecosystem. This library is tailored to seamlessly integrate with the MapICGC Cloud service, offering a comprehensive set of data to enhance web mapping experiences, including vector tiles, satellite raster tiles, DEM with Terrain RGB, and customizable styles with an editor.
22
22
 
@@ -58966,7 +58966,7 @@ function(n) {
58966
58966
  */
58967
58967
  function(n) {
58968
58968
  function e() {
58969
- return (Rn.canvg ? Promise.resolve(Rn.canvg) : import("./index.es-BWyxJuJN-C4muY-Eb.mjs")).catch(function(t) {
58969
+ return (Rn.canvg ? Promise.resolve(Rn.canvg) : import("./index.es-BWyxJuJN-FEZKbvRu.mjs")).catch(function(t) {
58970
58970
  return Promise.reject(new Error("Could not load canvg: " + t));
58971
58971
  }).then(function(t) {
58972
58972
  return t.default ? t.default : t;
@@ -61494,7 +61494,7 @@ const xq = /* @__PURE__ */ Ap(bq), wq = {
61494
61494
  bearing: 0,
61495
61495
  pitch: 0,
61496
61496
  hash: !1,
61497
- style: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_gris.json.json",
61497
+ style: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_gris.json.json",
61498
61498
  maxZoom: 18,
61499
61499
  maxPitch: 85
61500
61500
  },
@@ -61530,42 +61530,42 @@ const xq = /* @__PURE__ */ Ap(bq), wq = {
61530
61530
  baseStyles: [
61531
61531
  {
61532
61532
  key: "TOPO",
61533
- url: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_estandard_general.json",
61533
+ url: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_topografic.json",
61534
61534
  image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_estandard.png"
61535
61535
  },
61536
61536
  {
61537
61537
  key: "ORTO",
61538
- url: "https://geoserveis.icgc.cat/contextmaps/icgc_orto_estandard.json",
61539
- image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_hibrida.png"
61538
+ url: "https://geoserveis.icgc.cat/styles/icgc_orto_estandard.json",
61539
+ image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_estandard.png"
61540
61540
  },
61541
61541
  {
61542
61542
  key: "ORTO3D",
61543
61543
  url: "https://tilemaps.icgc.cat/cdn/styles/icgc_orto_3d.json",
61544
- image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_hibrida.png"
61544
+ image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_estandard.png"
61545
61545
  },
61546
61546
  {
61547
61547
  key: "ORTOHYBRID",
61548
- url: "https://geoserveis.icgc.cat/contextmaps/icgc_orto_hibrida.json",
61548
+ url: "https://geoserveis.icgc.cat/styles/icgc_orto_hibrida.json",
61549
61549
  image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_hibrida.png"
61550
61550
  },
61551
61551
  {
61552
61552
  key: "ADMIN",
61553
- url: "https://geoserveis.icgc.cat/contextmaps/icgc_delimitacio_limits_administratius.json",
61553
+ url: "https://geoserveis.icgc.cat/styles/icgc_limits_administratius_gris.json",
61554
61554
  image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_delimitacio_limits_administratius.png"
61555
61555
  },
61556
61556
  {
61557
61557
  key: "DARK",
61558
- url: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_fosc.json",
61558
+ url: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_fosc.json",
61559
61559
  image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_base_fosc.png"
61560
61560
  },
61561
61561
  {
61562
61562
  key: "LIGHT",
61563
- url: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_gris.json",
61563
+ url: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_gris.json",
61564
61564
  image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_base_gris.png"
61565
61565
  },
61566
61566
  {
61567
61567
  key: "GEOLOGY",
61568
- url: "https://geoserveis.icgc.cat/contextmaps/icgc_geologic_informacio.json",
61568
+ url: "https://geoserveis.icgc.cat/styles/icgc_geologic_informacio.json",
61569
61569
  image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_geologic_informacio.png"
61570
61570
  }
61571
61571
  ],
@@ -62305,19 +62305,21 @@ const xq = /* @__PURE__ */ Ap(bq), wq = {
62305
62305
  }
62306
62306
  ]
62307
62307
  }, Aq = {
62308
- TOPO: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_estandard_general.json",
62309
- ORTO: "https://geoserveis.icgc.cat/contextmaps/icgc_orto_estandard.json",
62308
+ TOPO: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_topografic.json",
62309
+ ORTO: "https://geoserveis.icgc.cat/styles/icgc_orto_estandard.json",
62310
62310
  ORTO3D: "https://tilemaps.icgc.cat/cdn/styles/icgc_orto_3d.json",
62311
- ADMIN: "https://geoserveis.icgc.cat/contextmaps/icgc_delimitacio_limits_administratius.json",
62312
- DARK: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_fosc.json",
62313
- LIGHT: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_gris.json",
62314
- GEOLOGY: "https://geoserveis.icgc.cat/contextmaps/icgc_geologic_informacio.json"
62311
+ ORTOHYBRID: "https://geoserveis.icgc.cat/styles/icgc_orto_hibrida.json",
62312
+ ADMIN: "https://geoserveis.icgc.cat/styles/icgc_limits_administratius_gris.json",
62313
+ DARK: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_fosc.json",
62314
+ LIGHT: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_gris.json",
62315
+ GEOLOGY: "https://geoserveis.icgc.cat/styles/icgc_geologic_informacio.json"
62315
62316
  }, Eq = {
62316
62317
  ICGC5M: "https://tilemaps.icgc.cat/tileserver/tileserver/terreny-5m-30m-rgb-extent/{z}/{x}/{y}.png",
62317
62318
  WORLD30M: "https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png"
62318
62319
  }, Sq = {
62319
62320
  Orto: {
62320
62321
  ortofotoColorProvisional: "https://geoserveis.icgc.cat/servei/catalunya/orto-territorial/wms?&bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&STYLES=&srs=EPSG:3857&transparent=true&width=256&height=256&layers=ortofoto_color_provisional",
62322
+ ortofotoColor2023: "https://geoserveis.icgc.cat/servei/catalunya/orto-territorial/wms?&bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&STYLES=&srs=EPSG:3857&transparent=true&width=256&height=256&layers=ortofoto_color_2023",
62321
62323
  ortofotoColor2022: "https://geoserveis.icgc.cat/servei/catalunya/orto-territorial/wms?&bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&STYLES=&srs=EPSG:3857&transparent=true&width=256&height=256&layers=ortofoto_color_2022",
62322
62324
  ortofotoColor2021: "https://geoserveis.icgc.cat/servei/catalunya/orto-territorial/wms?&bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&STYLES=&srs=EPSG:3857&transparent=true&width=256&height=256&layers=ortofoto_color_2021",
62323
62325
  ortofotoColor2020: "https://geoserveis.icgc.cat/servei/catalunya/orto-territorial/wms?&bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&STYLES=&srs=EPSG:3857&transparent=true&width=256&height=256&layers=ortofoto_color_2020",
@@ -62345,6 +62347,7 @@ const xq = /* @__PURE__ */ Ap(bq), wq = {
62345
62347
  ortofotoBlancINegre1945: "https://geoserveis.icgc.cat/servei/catalunya/orto-territorial/wms?&bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&STYLES=&srs=EPSG:3857&transparent=true&width=256&height=256&layers=ortofoto_blanc_i_negre_1945",
62346
62348
  ortofotoColorSerieAnual: "https://geoserveis.icgc.cat/servei/catalunya/orto-territorial/wms?&bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&STYLES=&srs=EPSG:3857&transparent=true&width=256&height=256&layers=ortofoto_color_serie_anual",
62347
62349
  ortofotoInfraroigProvisional: "https://geoserveis.icgc.cat/servei/catalunya/orto-territorial/wms?&bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&STYLES=&srs=EPSG:3857&transparent=true&width=256&height=256&layers=ortofoto_infraroig_provisional",
62350
+ ortofotoInfraroig2023: "https://geoserveis.icgc.cat/servei/catalunya/orto-territorial/wms?&bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&STYLES=&srs=EPSG:3857&transparent=true&width=256&height=256&layers=ortofoto_infraroig_2023",
62348
62351
  ortofotoInfraroig2022: "https://geoserveis.icgc.cat/servei/catalunya/orto-territorial/wms?&bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&STYLES=&srs=EPSG:3857&transparent=true&width=256&height=256&layers=ortofoto_infraroig_2022",
62349
62352
  ortofotoInfraroig2021: "https://geoserveis.icgc.cat/servei/catalunya/orto-territorial/wms?&bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&STYLES=&srs=EPSG:3857&transparent=true&width=256&height=256&layers=ortofoto_infraroig_2021",
62350
62353
  ortofotoInfraroig2020: "https://geoserveis.icgc.cat/servei/catalunya/orto-territorial/wms?&bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&STYLES=&srs=EPSG:3857&transparent=true&width=256&height=256&layers=ortofoto_infraroig_2020",
@@ -64778,11 +64781,11 @@ let Ah, $f, Sr, gi, oW = class {
64778
64781
  setSky(e) {
64779
64782
  try {
64780
64783
  e === void 0 && (this.map.options.style.includes("orto") && (e = {
64781
- "sky-color": "#37709e",
64784
+ "sky-color": "#86bbd5",
64782
64785
  "sky-horizon-blend": 0.3,
64783
- "horizon-color": "#e1e3e3",
64784
- "horizon-fog-blend": 0.9,
64785
- "fog-ground-blend": 0.85,
64786
+ "horizon-color": "#ffffff33",
64787
+ "horizon-fog-blend": 0.1,
64788
+ "fog-ground-blend": 0.75,
64786
64789
  "fog-color": "#c5d6d6"
64787
64790
  }), this.map.options.style.includes("mapa_estandard_general") && (e = {
64788
64791
  "sky-color": "#a5f0f0",
@@ -66624,7 +66627,14 @@ let Ah, $f, Sr, gi, oW = class {
66624
66627
  const r = this._createCitiesMapboxLayer();
66625
66628
  this.map.getLayer(gi.map3dOptions.layerId3d) || (this.map.addLayer(r, gi.map3dOptions.layerIdOrder), this.map.setLayerZoomRange(gi.map3dOptions.layerId3d, gi.map3dOptions.minZoomRange, gi.map3dOptions.maxZoomRange), r.deck.setProps({
66626
66629
  effects: [i]
66627
- }), this._raiseText3DStyle());
66630
+ }), this._raiseText3DStyle()), this.map.setSky({
66631
+ "sky-color": "#86bbd5",
66632
+ "sky-horizon-blend": 0.3,
66633
+ "horizon-color": "#ffffff33",
66634
+ "horizon-fog-blend": 0.1,
66635
+ "fog-ground-blend": 0.75,
66636
+ "fog-color": "#c5d6d6"
66637
+ });
66628
66638
  } else
66629
66639
  this.map.getLayer(gi.map3dOptions.layerId3d) && (this.map.removeLayer(gi.map3dOptions.layerId3d), this.map.setTerrain(null));
66630
66640
  } catch (t) {
@@ -1,4 +1,4 @@
1
- import { p as Ui } from "./index-BFMDzCuG.mjs";
1
+ import { p as Ui } from "./index-ChqpbeXL.mjs";
2
2
  var Zt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
3
  function No(i) {
4
4
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
@@ -685,6 +685,48 @@ a.maplibregl-ctrl-logo.maplibregl-compact {
685
685
  width: 100% !important;
686
686
  z-index: 99999;
687
687
  }
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+ /* CUSTOM */
729
+
688
730
  .basemap-group {
689
731
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
690
732
  font-weight: 600;