Skip to content

Commit

Permalink
canvi url styles
Browse files Browse the repository at this point in the history
  • Loading branch information
lstiz committed Jul 26, 2024
1 parent e6de1da commit 3c90cee
Show file tree
Hide file tree
Showing 14 changed files with 298 additions and 218 deletions.
36 changes: 18 additions & 18 deletions dist/index-DScdZFZm.mjs → dist/index-ChqpbeXL.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58966,7 +58966,7 @@ function(n) {
*/
function(n) {
function e() {
return (Rn.canvg ? Promise.resolve(Rn.canvg) : import("./index.es-BWyxJuJN-B8aWB3kW.mjs")).catch(function(t) {
return (Rn.canvg ? Promise.resolve(Rn.canvg) : import("./index.es-BWyxJuJN-FEZKbvRu.mjs")).catch(function(t) {
return Promise.reject(new Error("Could not load canvg: " + t));
}).then(function(t) {
return t.default ? t.default : t;
Expand Down Expand Up @@ -61494,7 +61494,7 @@ const xq = /* @__PURE__ */ Ap(bq), wq = {
bearing: 0,
pitch: 0,
hash: !1,
style: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_gris.json.json",
style: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_gris.json.json",
maxZoom: 18,
maxPitch: 85
},
Expand Down Expand Up @@ -61530,42 +61530,42 @@ const xq = /* @__PURE__ */ Ap(bq), wq = {
baseStyles: [
{
key: "TOPO",
url: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_estandard_general.json",
url: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_topografic.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_estandard.png"
},
{
key: "ORTO",
url: "https://geoserveis.icgc.cat/contextmaps/icgc_orto_estandard.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_hibrida.png"
url: "https://geoserveis.icgc.cat/styles/icgc_orto_estandard.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_estandard.png"
},
{
key: "ORTO3D",
url: "https://tilemaps.icgc.cat/cdn/styles/icgc_orto_3d.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_hibrida.png"
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_estandard.png"
},
{
key: "ORTOHYBRID",
url: "https://geoserveis.icgc.cat/contextmaps/icgc_orto_hibrida.json",
url: "https://geoserveis.icgc.cat/styles/icgc_orto_hibrida.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_hibrida.png"
},
{
key: "ADMIN",
url: "https://geoserveis.icgc.cat/contextmaps/icgc_delimitacio_limits_administratius.json",
url: "https://geoserveis.icgc.cat/styles/icgc_limits_administratius_gris.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_delimitacio_limits_administratius.png"
},
{
key: "DARK",
url: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_fosc.json",
url: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_fosc.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_base_fosc.png"
},
{
key: "LIGHT",
url: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_gris.json",
url: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_gris.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_base_gris.png"
},
{
key: "GEOLOGY",
url: "https://geoserveis.icgc.cat/contextmaps/icgc_geologic_informacio.json",
url: "https://geoserveis.icgc.cat/styles/icgc_geologic_informacio.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_geologic_informacio.png"
}
],
Expand Down Expand Up @@ -62305,14 +62305,14 @@ const xq = /* @__PURE__ */ Ap(bq), wq = {
}
]
}, Aq = {
TOPO: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_estandard_general.json",
ORTO: "https://geoserveis.icgc.cat/contextmaps/icgc_orto_estandard.json",
TOPO: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_topografic.json",
ORTO: "https://geoserveis.icgc.cat/styles/icgc_orto_estandard.json",
ORTO3D: "https://tilemaps.icgc.cat/cdn/styles/icgc_orto_3d.json",
ORTOHYBRID: "https://geoserveis.icgc.cat/contextmaps/icgc_orto_hibrida.json",
ADMIN: "https://geoserveis.icgc.cat/contextmaps/icgc_delimitacio_limits_administratius.json",
DARK: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_fosc.json",
LIGHT: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_gris.json",
GEOLOGY: "https://geoserveis.icgc.cat/contextmaps/icgc_geologic_informacio.json"
ORTOHYBRID: "https://geoserveis.icgc.cat/styles/icgc_orto_hibrida.json",
ADMIN: "https://geoserveis.icgc.cat/styles/icgc_limits_administratius_gris.json",
DARK: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_fosc.json",
LIGHT: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_gris.json",
GEOLOGY: "https://geoserveis.icgc.cat/styles/icgc_geologic_informacio.json"
}, Eq = {
ICGC5M: "https://tilemaps.icgc.cat/tileserver/tileserver/terreny-5m-30m-rgb-extent/{z}/{x}/{y}.png",
WORLD30M: "https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { p as Ui } from "./index-DScdZFZm.mjs";
import { p as Ui } from "./index-ChqpbeXL.mjs";
var Zt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function No(i) {
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
Expand Down
2 changes: 1 addition & 1 deletion dist/mapicgc-gl.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mapicgc-gl.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { C as p, a as s, M as r } from "./index-DScdZFZm.mjs";
import { C as p, a as s, M as r } from "./index-ChqpbeXL.mjs";
export {
p as CompareMaps,
s as Config,
Expand Down
2 changes: 1 addition & 1 deletion dist/mapicgc-gl.umd.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions nodeSetConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@ async function getVectorLimitsLayers() {
try {

let test= [
{ key: "TOPO", url: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_estandard.json",image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_estandard.png" },
{ key: "ORTO", url: "https://geoserveis.icgc.cat/contextmaps/icgc_orto_estandard.json" , image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_estandard.png"},
{ key: "TOPO", url: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_topografic.json",image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_estandard.png" },
{ key: "ORTO", url: "https://geoserveis.icgc.cat/styles/icgc_orto_estandard.json" , image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_estandard.png"},
{ key: "ORTO3D", url: "https://tilemaps.icgc.cat/cdn/styles/icgc_orto_3d.json" , image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_estandard.png"},
{ key: "ORTOHYBRID", url: "https://geoserveis.icgc.cat/contextmaps/icgc_orto_hibrida.json" , image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_hibrida.png"},
{ key: "ADMIN", url: "https://geoserveis.icgc.cat/contextmaps/icgc_delimitacio_limits_administratius.json" , image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_delimitacio_limits_administratius.png"},
{ key: "DARK", url: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_fosc.json" , image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_base_fosc.png"},
{ key: "LIGHT", url: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_gris.json", image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_base_gris.png" },
{ key: "GEOLOGY", url: "https://geoserveis.icgc.cat/contextmaps/icgc_geologic_informacio.json", image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_geologic_informacio.png" },
{ key: "ORTOHYBRID", url: "https://geoserveis.icgc.cat/styles/icgc_orto_hibrida.json" , image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_hibrida.png"},
{ key: "ADMIN", url: "https://geoserveis.icgc.cat/styles/icgc_limits_administratius_gris.json" , image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_delimitacio_limits_administratius.png"},
{ 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"},
{ key: "LIGHT", url: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_gris.json", image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_base_gris.png" },
{ key: "GEOLOGY", url: "https://geoserveis.icgc.cat/styles/icgc_geologic_informacio.json", image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_geologic_informacio.png" },

]
stylesOptions = test
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mapicgc-gl-js",
"homepage": "https://openicgc.github.io/mapicgc-doc/",
"version": "0.0.85",
"version": "0.0.86",
"description": "mapicgc-gl-js library",
"author": "Institut Cartogràfic i Geològic de Catalunya",
"license": "BSD-3-Clause",
Expand Down
16 changes: 8 additions & 8 deletions src/config-out.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mapOptions: {
bearing: 0,
pitch: 0,
hash: false,
style: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_gris.json.json",
style: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_gris.json.json",
maxZoom: 18,
maxPitch: 85,
},
Expand Down Expand Up @@ -53,12 +53,12 @@ map3dOptions: {
baseStyles: {
0: {
key: "TOPO",
url: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_estandard.json",
url: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_topografic.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_estandard.png",
},
1: {
key: "ORTO",
url: "https://geoserveis.icgc.cat/contextmaps/icgc_orto_estandard.json",
url: "https://geoserveis.icgc.cat/styles/icgc_orto_estandard.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_estandard.png",
},
2: {
Expand All @@ -68,27 +68,27 @@ baseStyles: {
},
3: {
key: "ORTOHYBRID",
url: "https://geoserveis.icgc.cat/contextmaps/icgc_orto_hibrida.json",
url: "https://geoserveis.icgc.cat/styles/icgc_orto_hibrida.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_orto_hibrida.png",
},
4: {
key: "ADMIN",
url: "https://geoserveis.icgc.cat/contextmaps/icgc_delimitacio_limits_administratius.json",
url: "https://geoserveis.icgc.cat/styles/icgc_limits_administratius_gris.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_delimitacio_limits_administratius.png",
},
5: {
key: "DARK",
url: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_fosc.json",
url: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_fosc.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_base_fosc.png",
},
6: {
key: "LIGHT",
url: "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_gris.json",
url: "https://geoserveis.icgc.cat/styles/icgc_mapa_base_gris.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_base_gris.png",
},
7: {
key: "GEOLOGY",
url: "https://geoserveis.icgc.cat/contextmaps/icgc_geologic_informacio.json",
url: "https://geoserveis.icgc.cat/styles/icgc_geologic_informacio.json",
image: "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_geologic_informacio.png",
},
},
Expand Down
Loading

0 comments on commit 3c90cee

Please sign in to comment.