mapicgc-gl-js 0.0.78 → 0.0.80
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/.github/workflows/npm-publish.yml +2 -2
- package/README.md +13 -10
- package/dist/{html2canvas.esm-DbilGY6A-DB3xAFLF.mjs → html2canvas.esm-CKxSAI8P-DSC9_HHp.mjs} +2 -2
- package/dist/{index-k0DrX4BJ.mjs → index-58U3KmRv.mjs} +20029 -20169
- package/dist/{index.es-BR8y8uSW-D6xEGnjs.mjs → index.es-BWyxJuJN-BMkqIbwq.mjs} +3 -4
- package/dist/mapicgc-gl.js +206 -206
- package/dist/mapicgc-gl.mjs +1 -1
- package/dist/mapicgc-gl.umd.js +206 -206
- package/dist/purify.es-CLxMp-4V-DmiRgNNX.mjs +476 -0
- package/package.json +2 -2
- package/src/map/Map.js +1 -0
- package/src/mapicgc-config.json +13 -3
- package/test/exemples/addVectorLayerICGC.html +6 -6
- package/dist/purify.es-C-d0AVPf-BZqXIm-R.mjs +0 -464
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
/*! @license DOMPurify 2.5.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.3/LICENSE */
|
|
2
|
+
function O(n) {
|
|
3
|
+
"@babel/helpers - typeof";
|
|
4
|
+
return O = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
|
|
5
|
+
return typeof o;
|
|
6
|
+
} : function(o) {
|
|
7
|
+
return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
+
}, O(n);
|
|
9
|
+
}
|
|
10
|
+
function It(n, o) {
|
|
11
|
+
return It = Object.setPrototypeOf || function(a, c) {
|
|
12
|
+
return a.__proto__ = c, a;
|
|
13
|
+
}, It(n, o);
|
|
14
|
+
}
|
|
15
|
+
function je() {
|
|
16
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
17
|
+
return !1;
|
|
18
|
+
if (typeof Proxy == "function")
|
|
19
|
+
return !0;
|
|
20
|
+
try {
|
|
21
|
+
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
22
|
+
})), !0;
|
|
23
|
+
} catch {
|
|
24
|
+
return !1;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function ct(n, o, a) {
|
|
28
|
+
return je() ? ct = Reflect.construct : ct = function(c, p, _) {
|
|
29
|
+
var E = [null];
|
|
30
|
+
E.push.apply(E, p);
|
|
31
|
+
var X = Function.bind.apply(c, E), R = new X();
|
|
32
|
+
return _ && It(R, _.prototype), R;
|
|
33
|
+
}, ct.apply(null, arguments);
|
|
34
|
+
}
|
|
35
|
+
function w(n) {
|
|
36
|
+
return Be(n) || Ge(n) || We(n) || qe();
|
|
37
|
+
}
|
|
38
|
+
function Be(n) {
|
|
39
|
+
if (Array.isArray(n))
|
|
40
|
+
return Ft(n);
|
|
41
|
+
}
|
|
42
|
+
function Ge(n) {
|
|
43
|
+
if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null)
|
|
44
|
+
return Array.from(n);
|
|
45
|
+
}
|
|
46
|
+
function We(n, o) {
|
|
47
|
+
if (n) {
|
|
48
|
+
if (typeof n == "string")
|
|
49
|
+
return Ft(n, o);
|
|
50
|
+
var a = Object.prototype.toString.call(n).slice(8, -1);
|
|
51
|
+
if (a === "Object" && n.constructor && (a = n.constructor.name), a === "Map" || a === "Set")
|
|
52
|
+
return Array.from(n);
|
|
53
|
+
if (a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))
|
|
54
|
+
return Ft(n, o);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function Ft(n, o) {
|
|
58
|
+
(o == null || o > n.length) && (o = n.length);
|
|
59
|
+
for (var a = 0, c = new Array(o); a < o; a++)
|
|
60
|
+
c[a] = n[a];
|
|
61
|
+
return c;
|
|
62
|
+
}
|
|
63
|
+
function qe() {
|
|
64
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
65
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
66
|
+
}
|
|
67
|
+
var Ye = Object.hasOwnProperty, ue = Object.setPrototypeOf, $e = Object.isFrozen, Ke = Object.getPrototypeOf, Ve = Object.getOwnPropertyDescriptor, y = Object.freeze, N = Object.seal, Xe = Object.create, ye = typeof Reflect < "u" && Reflect, st = ye.apply, Ht = ye.construct;
|
|
68
|
+
st || (st = function(n, o, a) {
|
|
69
|
+
return n.apply(o, a);
|
|
70
|
+
});
|
|
71
|
+
y || (y = function(n) {
|
|
72
|
+
return n;
|
|
73
|
+
});
|
|
74
|
+
N || (N = function(n) {
|
|
75
|
+
return n;
|
|
76
|
+
});
|
|
77
|
+
Ht || (Ht = function(n, o) {
|
|
78
|
+
return ct(n, w(o));
|
|
79
|
+
});
|
|
80
|
+
var Ze = T(Array.prototype.forEach), se = T(Array.prototype.pop), V = T(Array.prototype.push), ut = T(String.prototype.toLowerCase), xt = T(String.prototype.toString), me = T(String.prototype.match), S = T(String.prototype.replace), Je = T(String.prototype.indexOf), Qe = T(String.prototype.trim), g = T(RegExp.prototype.test), Lt = tn(TypeError), pe = T(Number.isNaN);
|
|
81
|
+
function T(n) {
|
|
82
|
+
return function(o) {
|
|
83
|
+
for (var a = arguments.length, c = new Array(a > 1 ? a - 1 : 0), p = 1; p < a; p++)
|
|
84
|
+
c[p - 1] = arguments[p];
|
|
85
|
+
return st(n, o, c);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function tn(n) {
|
|
89
|
+
return function() {
|
|
90
|
+
for (var o = arguments.length, a = new Array(o), c = 0; c < o; c++)
|
|
91
|
+
a[c] = arguments[c];
|
|
92
|
+
return Ht(n, a);
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function i(n, o, a) {
|
|
96
|
+
var c;
|
|
97
|
+
a = (c = a) !== null && c !== void 0 ? c : ut, ue && ue(n, null);
|
|
98
|
+
for (var p = o.length; p--; ) {
|
|
99
|
+
var _ = o[p];
|
|
100
|
+
if (typeof _ == "string") {
|
|
101
|
+
var E = a(_);
|
|
102
|
+
E !== _ && ($e(o) || (o[p] = E), _ = E);
|
|
103
|
+
}
|
|
104
|
+
n[_] = !0;
|
|
105
|
+
}
|
|
106
|
+
return n;
|
|
107
|
+
}
|
|
108
|
+
function U(n) {
|
|
109
|
+
var o = Xe(null), a;
|
|
110
|
+
for (a in n)
|
|
111
|
+
st(Ye, n, [a]) === !0 && (o[a] = n[a]);
|
|
112
|
+
return o;
|
|
113
|
+
}
|
|
114
|
+
function it(n, o) {
|
|
115
|
+
for (; n !== null; ) {
|
|
116
|
+
var a = Ve(n, o);
|
|
117
|
+
if (a) {
|
|
118
|
+
if (a.get)
|
|
119
|
+
return T(a.get);
|
|
120
|
+
if (typeof a.value == "function")
|
|
121
|
+
return T(a.value);
|
|
122
|
+
}
|
|
123
|
+
n = Ke(n);
|
|
124
|
+
}
|
|
125
|
+
function c(p) {
|
|
126
|
+
return console.warn("fallback value for", p), null;
|
|
127
|
+
}
|
|
128
|
+
return c;
|
|
129
|
+
}
|
|
130
|
+
var fe = y(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Dt = y(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Rt = y(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), en = y(["animate", "color-profile", "cursor", "discard", "fedropshadow", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Mt = y(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover"]), nn = y(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), de = y(["#text"]), he = y(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), Ot = y(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), ge = y(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), lt = y(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), rn = N(/\{\{[\w\W]*|[\w\W]*\}\}/gm), on = N(/<%[\w\W]*|[\w\W]*%>/gm), an = N(/\${[\w\W]*}/gm), ln = N(/^data-[\-\w.\u00B7-\uFFFF]/), cn = N(/^aria-[\-\w]+$/), un = N(
|
|
131
|
+
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
132
|
+
// eslint-disable-line no-useless-escape
|
|
133
|
+
), sn = N(/^(?:\w+script|data):/i), mn = N(
|
|
134
|
+
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
135
|
+
// eslint-disable-line no-control-regex
|
|
136
|
+
), pn = N(/^html$/i), fn = N(/^[a-z][.\w]*(-[.\w]+)+$/i), dn = function() {
|
|
137
|
+
return typeof window > "u" ? null : window;
|
|
138
|
+
}, hn = function(n, o) {
|
|
139
|
+
if (O(n) !== "object" || typeof n.createPolicy != "function")
|
|
140
|
+
return null;
|
|
141
|
+
var a = null, c = "data-tt-policy-suffix";
|
|
142
|
+
o.currentScript && o.currentScript.hasAttribute(c) && (a = o.currentScript.getAttribute(c));
|
|
143
|
+
var p = "dompurify" + (a ? "#" + a : "");
|
|
144
|
+
try {
|
|
145
|
+
return n.createPolicy(p, {
|
|
146
|
+
createHTML: function(_) {
|
|
147
|
+
return _;
|
|
148
|
+
},
|
|
149
|
+
createScriptURL: function(_) {
|
|
150
|
+
return _;
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
} catch {
|
|
154
|
+
return console.warn("TrustedTypes policy " + p + " could not be created."), null;
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
function _e() {
|
|
158
|
+
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : dn(), o = function(t) {
|
|
159
|
+
return _e(t);
|
|
160
|
+
};
|
|
161
|
+
if (o.version = "2.5.3", o.removed = [], !n || !n.document || n.document.nodeType !== 9)
|
|
162
|
+
return o.isSupported = !1, o;
|
|
163
|
+
var a = n.document, c = n.document, p = n.DocumentFragment, _ = n.HTMLTemplateElement, E = n.Node, X = n.Element, R = n.NodeFilter, Ut = n.NamedNodeMap, be = Ut === void 0 ? n.NamedNodeMap || n.MozNamedAttrMap : Ut, ve = n.HTMLFormElement, Te = n.DOMParser, Z = n.trustedTypes, J = X.prototype, Ne = it(J, "cloneNode"), Ee = it(J, "nextSibling"), Ae = it(J, "childNodes"), q = it(J, "parentNode");
|
|
164
|
+
if (typeof _ == "function") {
|
|
165
|
+
var mt = c.createElement("template");
|
|
166
|
+
mt.content && mt.content.ownerDocument && (c = mt.content.ownerDocument);
|
|
167
|
+
}
|
|
168
|
+
var A = hn(Z, a), pt = A ? A.createHTML("") : "", Q = c, ft = Q.implementation, Se = Q.createNodeIterator, we = Q.createDocumentFragment, ke = Q.getElementsByTagName, Ce = a.importNode, zt = {};
|
|
169
|
+
try {
|
|
170
|
+
zt = U(c).documentMode ? c.documentMode : {};
|
|
171
|
+
} catch {
|
|
172
|
+
}
|
|
173
|
+
var k = {};
|
|
174
|
+
o.isSupported = typeof q == "function" && ft && ft.createHTMLDocument !== void 0 && zt !== 9;
|
|
175
|
+
var dt = rn, ht = on, gt = an, xe = ln, Le = cn, De = sn, Pt = mn, Re = fn, yt = un, f = null, jt = i({}, [].concat(w(fe), w(Dt), w(Rt), w(Mt), w(de))), d = null, Bt = i({}, [].concat(w(he), w(Ot), w(ge), w(lt))), s = Object.seal(Object.create(null, {
|
|
176
|
+
tagNameCheck: {
|
|
177
|
+
writable: !0,
|
|
178
|
+
configurable: !1,
|
|
179
|
+
enumerable: !0,
|
|
180
|
+
value: null
|
|
181
|
+
},
|
|
182
|
+
attributeNameCheck: {
|
|
183
|
+
writable: !0,
|
|
184
|
+
configurable: !1,
|
|
185
|
+
enumerable: !0,
|
|
186
|
+
value: null
|
|
187
|
+
},
|
|
188
|
+
allowCustomizedBuiltInElements: {
|
|
189
|
+
writable: !0,
|
|
190
|
+
configurable: !1,
|
|
191
|
+
enumerable: !0,
|
|
192
|
+
value: !1
|
|
193
|
+
}
|
|
194
|
+
})), Y = null, _t = null, Gt = !0, bt = !0, Wt = !1, qt = !0, z = !1, vt = !0, I = !1, Tt = !1, Nt = !1, P = !1, tt = !1, et = !1, Yt = !0, $t = !1, Me = "user-content-", Et = !0, $ = !1, j = {}, B = null, Kt = i({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Vt = null, Xt = i({}, ["audio", "video", "img", "source", "image", "track"]), At = null, Zt = i({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), nt = "http://www.w3.org/1998/Math/MathML", rt = "http://www.w3.org/2000/svg", x = "http://www.w3.org/1999/xhtml", G = x, St = !1, wt = null, Oe = i({}, [nt, rt, x], xt), F, Ie = ["application/xhtml+xml", "text/html"], Fe = "text/html", h, W = null, Jt = 255, He = c.createElement("form"), Qt = function(t) {
|
|
195
|
+
return t instanceof RegExp || t instanceof Function;
|
|
196
|
+
}, kt = function(t) {
|
|
197
|
+
W && W === t || ((!t || O(t) !== "object") && (t = {}), t = U(t), F = // eslint-disable-next-line unicorn/prefer-includes
|
|
198
|
+
Ie.indexOf(t.PARSER_MEDIA_TYPE) === -1 ? F = Fe : F = t.PARSER_MEDIA_TYPE, h = F === "application/xhtml+xml" ? xt : ut, f = "ALLOWED_TAGS" in t ? i({}, t.ALLOWED_TAGS, h) : jt, d = "ALLOWED_ATTR" in t ? i({}, t.ALLOWED_ATTR, h) : Bt, wt = "ALLOWED_NAMESPACES" in t ? i({}, t.ALLOWED_NAMESPACES, xt) : Oe, At = "ADD_URI_SAFE_ATTR" in t ? i(
|
|
199
|
+
U(Zt),
|
|
200
|
+
// eslint-disable-line indent
|
|
201
|
+
t.ADD_URI_SAFE_ATTR,
|
|
202
|
+
// eslint-disable-line indent
|
|
203
|
+
h
|
|
204
|
+
// eslint-disable-line indent
|
|
205
|
+
) : Zt, Vt = "ADD_DATA_URI_TAGS" in t ? i(
|
|
206
|
+
U(Xt),
|
|
207
|
+
// eslint-disable-line indent
|
|
208
|
+
t.ADD_DATA_URI_TAGS,
|
|
209
|
+
// eslint-disable-line indent
|
|
210
|
+
h
|
|
211
|
+
// eslint-disable-line indent
|
|
212
|
+
) : Xt, B = "FORBID_CONTENTS" in t ? i({}, t.FORBID_CONTENTS, h) : Kt, Y = "FORBID_TAGS" in t ? i({}, t.FORBID_TAGS, h) : {}, _t = "FORBID_ATTR" in t ? i({}, t.FORBID_ATTR, h) : {}, j = "USE_PROFILES" in t ? t.USE_PROFILES : !1, Gt = t.ALLOW_ARIA_ATTR !== !1, bt = t.ALLOW_DATA_ATTR !== !1, Wt = t.ALLOW_UNKNOWN_PROTOCOLS || !1, qt = t.ALLOW_SELF_CLOSE_IN_ATTR !== !1, z = t.SAFE_FOR_TEMPLATES || !1, vt = t.SAFE_FOR_XML !== !1, I = t.WHOLE_DOCUMENT || !1, P = t.RETURN_DOM || !1, tt = t.RETURN_DOM_FRAGMENT || !1, et = t.RETURN_TRUSTED_TYPE || !1, Nt = t.FORCE_BODY || !1, Yt = t.SANITIZE_DOM !== !1, $t = t.SANITIZE_NAMED_PROPS || !1, Et = t.KEEP_CONTENT !== !1, $ = t.IN_PLACE || !1, yt = t.ALLOWED_URI_REGEXP || yt, G = t.NAMESPACE || x, s = t.CUSTOM_ELEMENT_HANDLING || {}, t.CUSTOM_ELEMENT_HANDLING && Qt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (s.tagNameCheck = t.CUSTOM_ELEMENT_HANDLING.tagNameCheck), t.CUSTOM_ELEMENT_HANDLING && Qt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (s.attributeNameCheck = t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), t.CUSTOM_ELEMENT_HANDLING && typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (s.allowCustomizedBuiltInElements = t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), z && (bt = !1), tt && (P = !0), j && (f = i({}, w(de)), d = [], j.html === !0 && (i(f, fe), i(d, he)), j.svg === !0 && (i(f, Dt), i(d, Ot), i(d, lt)), j.svgFilters === !0 && (i(f, Rt), i(d, Ot), i(d, lt)), j.mathMl === !0 && (i(f, Mt), i(d, ge), i(d, lt))), t.ADD_TAGS && (f === jt && (f = U(f)), i(f, t.ADD_TAGS, h)), t.ADD_ATTR && (d === Bt && (d = U(d)), i(d, t.ADD_ATTR, h)), t.ADD_URI_SAFE_ATTR && i(At, t.ADD_URI_SAFE_ATTR, h), t.FORBID_CONTENTS && (B === Kt && (B = U(B)), i(B, t.FORBID_CONTENTS, h)), Et && (f["#text"] = !0), I && i(f, ["html", "head", "body"]), f.table && (i(f, ["tbody"]), delete Y.tbody), y && y(t), W = t);
|
|
213
|
+
}, te = i({}, ["mi", "mo", "mn", "ms", "mtext"]), ee = i({}, ["foreignobject", "annotation-xml"]), Ue = i({}, ["title", "style", "font", "a", "script"]), ot = i({}, Dt);
|
|
214
|
+
i(ot, Rt), i(ot, en);
|
|
215
|
+
var Ct = i({}, Mt);
|
|
216
|
+
i(Ct, nn);
|
|
217
|
+
var ze = function(t) {
|
|
218
|
+
var r = q(t);
|
|
219
|
+
(!r || !r.tagName) && (r = {
|
|
220
|
+
namespaceURI: G,
|
|
221
|
+
tagName: "template"
|
|
222
|
+
});
|
|
223
|
+
var e = ut(t.tagName), u = ut(r.tagName);
|
|
224
|
+
return wt[t.namespaceURI] ? t.namespaceURI === rt ? r.namespaceURI === x ? e === "svg" : r.namespaceURI === nt ? e === "svg" && (u === "annotation-xml" || te[u]) : !!ot[e] : t.namespaceURI === nt ? r.namespaceURI === x ? e === "math" : r.namespaceURI === rt ? e === "math" && ee[u] : !!Ct[e] : t.namespaceURI === x ? r.namespaceURI === rt && !ee[u] || r.namespaceURI === nt && !te[u] ? !1 : !Ct[e] && (Ue[e] || !ot[e]) : !!(F === "application/xhtml+xml" && wt[t.namespaceURI]) : !1;
|
|
225
|
+
}, L = function(t) {
|
|
226
|
+
V(o.removed, {
|
|
227
|
+
element: t
|
|
228
|
+
});
|
|
229
|
+
try {
|
|
230
|
+
t.parentNode.removeChild(t);
|
|
231
|
+
} catch {
|
|
232
|
+
try {
|
|
233
|
+
t.outerHTML = pt;
|
|
234
|
+
} catch {
|
|
235
|
+
t.remove();
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}, at = function(t, r) {
|
|
239
|
+
try {
|
|
240
|
+
V(o.removed, {
|
|
241
|
+
attribute: r.getAttributeNode(t),
|
|
242
|
+
from: r
|
|
243
|
+
});
|
|
244
|
+
} catch {
|
|
245
|
+
V(o.removed, {
|
|
246
|
+
attribute: null,
|
|
247
|
+
from: r
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
if (r.removeAttribute(t), t === "is" && !d[t])
|
|
251
|
+
if (P || tt)
|
|
252
|
+
try {
|
|
253
|
+
L(r);
|
|
254
|
+
} catch {
|
|
255
|
+
}
|
|
256
|
+
else
|
|
257
|
+
try {
|
|
258
|
+
r.setAttribute(t, "");
|
|
259
|
+
} catch {
|
|
260
|
+
}
|
|
261
|
+
}, ne = function(t) {
|
|
262
|
+
var r, e;
|
|
263
|
+
if (Nt)
|
|
264
|
+
t = "<remove></remove>" + t;
|
|
265
|
+
else {
|
|
266
|
+
var u = me(t, /^[\r\n\t ]+/);
|
|
267
|
+
e = u && u[0];
|
|
268
|
+
}
|
|
269
|
+
F === "application/xhtml+xml" && G === x && (t = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + t + "</body></html>");
|
|
270
|
+
var l = A ? A.createHTML(t) : t;
|
|
271
|
+
if (G === x)
|
|
272
|
+
try {
|
|
273
|
+
r = new Te().parseFromString(l, F);
|
|
274
|
+
} catch {
|
|
275
|
+
}
|
|
276
|
+
if (!r || !r.documentElement) {
|
|
277
|
+
r = ft.createDocument(G, "template", null);
|
|
278
|
+
try {
|
|
279
|
+
r.documentElement.innerHTML = St ? pt : l;
|
|
280
|
+
} catch {
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
var b = r.body || r.documentElement;
|
|
284
|
+
return t && e && b.insertBefore(c.createTextNode(e), b.childNodes[0] || null), G === x ? ke.call(r, I ? "html" : "body")[0] : I ? r.documentElement : b;
|
|
285
|
+
}, re = function(t) {
|
|
286
|
+
return Se.call(
|
|
287
|
+
t.ownerDocument || t,
|
|
288
|
+
t,
|
|
289
|
+
// eslint-disable-next-line no-bitwise
|
|
290
|
+
R.SHOW_ELEMENT | R.SHOW_COMMENT | R.SHOW_TEXT | R.SHOW_PROCESSING_INSTRUCTION | R.SHOW_CDATA_SECTION,
|
|
291
|
+
null,
|
|
292
|
+
!1
|
|
293
|
+
);
|
|
294
|
+
}, oe = function(t) {
|
|
295
|
+
return t instanceof ve && (typeof t.__depth < "u" && typeof t.__depth != "number" || typeof t.__removalCount < "u" && typeof t.__removalCount != "number" || typeof t.nodeName != "string" || typeof t.textContent != "string" || typeof t.removeChild != "function" || !(t.attributes instanceof be) || typeof t.removeAttribute != "function" || typeof t.setAttribute != "function" || typeof t.namespaceURI != "string" || typeof t.insertBefore != "function" || typeof t.hasChildNodes != "function");
|
|
296
|
+
}, K = function(t) {
|
|
297
|
+
return O(E) === "object" ? t instanceof E : t && O(t) === "object" && typeof t.nodeType == "number" && typeof t.nodeName == "string";
|
|
298
|
+
}, D = function(t, r, e) {
|
|
299
|
+
k[t] && Ze(k[t], function(u) {
|
|
300
|
+
u.call(o, r, e, W);
|
|
301
|
+
});
|
|
302
|
+
}, ae = function(t) {
|
|
303
|
+
var r;
|
|
304
|
+
if (D("beforeSanitizeElements", t, null), oe(t) || g(/[\u0080-\uFFFF]/, t.nodeName))
|
|
305
|
+
return L(t), !0;
|
|
306
|
+
var e = h(t.nodeName);
|
|
307
|
+
if (D("uponSanitizeElement", t, {
|
|
308
|
+
tagName: e,
|
|
309
|
+
allowedTags: f
|
|
310
|
+
}), t.hasChildNodes() && !K(t.firstElementChild) && (!K(t.content) || !K(t.content.firstElementChild)) && g(/<[/\w]/g, t.innerHTML) && g(/<[/\w]/g, t.textContent) || e === "select" && g(/<template/i, t.innerHTML) || t.nodeType === 7 || vt && t.nodeType === 8 && g(/<[/\w]/g, t.data))
|
|
311
|
+
return L(t), !0;
|
|
312
|
+
if (!f[e] || Y[e]) {
|
|
313
|
+
if (!Y[e] && le(e) && (s.tagNameCheck instanceof RegExp && g(s.tagNameCheck, e) || s.tagNameCheck instanceof Function && s.tagNameCheck(e)))
|
|
314
|
+
return !1;
|
|
315
|
+
if (Et && !B[e]) {
|
|
316
|
+
var u = q(t) || t.parentNode, l = Ae(t) || t.childNodes;
|
|
317
|
+
if (l && u)
|
|
318
|
+
for (var b = l.length, m = b - 1; m >= 0; --m) {
|
|
319
|
+
var M = Ne(l[m], !0);
|
|
320
|
+
M.__removalCount = (t.__removalCount || 0) + 1, u.insertBefore(M, Ee(t));
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
return L(t), !0;
|
|
324
|
+
}
|
|
325
|
+
return t instanceof X && !ze(t) || (e === "noscript" || e === "noembed" || e === "noframes") && g(/<\/no(script|embed|frames)/i, t.innerHTML) ? (L(t), !0) : (z && t.nodeType === 3 && (r = t.textContent, r = S(r, dt, " "), r = S(r, ht, " "), r = S(r, gt, " "), t.textContent !== r && (V(o.removed, {
|
|
326
|
+
element: t.cloneNode()
|
|
327
|
+
}), t.textContent = r)), D("afterSanitizeElements", t, null), !1);
|
|
328
|
+
}, ie = function(t, r, e) {
|
|
329
|
+
if (Yt && (r === "id" || r === "name") && (e in c || e in He || e === "__depth" || e === "__removalCount"))
|
|
330
|
+
return !1;
|
|
331
|
+
if (!(bt && !_t[r] && g(xe, r)) && !(Gt && g(Le, r))) {
|
|
332
|
+
if (!d[r] || _t[r]) {
|
|
333
|
+
if (
|
|
334
|
+
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
335
|
+
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
336
|
+
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
337
|
+
!(le(t) && (s.tagNameCheck instanceof RegExp && g(s.tagNameCheck, t) || s.tagNameCheck instanceof Function && s.tagNameCheck(t)) && (s.attributeNameCheck instanceof RegExp && g(s.attributeNameCheck, r) || s.attributeNameCheck instanceof Function && s.attributeNameCheck(r)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
338
|
+
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
339
|
+
r === "is" && s.allowCustomizedBuiltInElements && (s.tagNameCheck instanceof RegExp && g(s.tagNameCheck, e) || s.tagNameCheck instanceof Function && s.tagNameCheck(e)))
|
|
340
|
+
)
|
|
341
|
+
return !1;
|
|
342
|
+
} else if (!At[r] && !g(yt, S(e, Pt, "")) && !((r === "src" || r === "xlink:href" || r === "href") && t !== "script" && Je(e, "data:") === 0 && Vt[t]) && !(Wt && !g(De, S(e, Pt, ""))) && e)
|
|
343
|
+
return !1;
|
|
344
|
+
}
|
|
345
|
+
return !0;
|
|
346
|
+
}, le = function(t) {
|
|
347
|
+
return t !== "annotation-xml" && me(t, Re);
|
|
348
|
+
}, ce = function(t) {
|
|
349
|
+
var r, e, u, l;
|
|
350
|
+
D("beforeSanitizeAttributes", t, null);
|
|
351
|
+
var b = t.attributes;
|
|
352
|
+
if (b) {
|
|
353
|
+
var m = {
|
|
354
|
+
attrName: "",
|
|
355
|
+
attrValue: "",
|
|
356
|
+
keepAttr: !0,
|
|
357
|
+
allowedAttributes: d
|
|
358
|
+
};
|
|
359
|
+
for (l = b.length; l--; ) {
|
|
360
|
+
r = b[l];
|
|
361
|
+
var M = r, C = M.name, H = M.namespaceURI;
|
|
362
|
+
if (e = C === "value" ? r.value : Qe(r.value), u = h(C), m.attrName = u, m.attrValue = e, m.keepAttr = !0, m.forceKeepAttr = void 0, D("uponSanitizeAttribute", t, m), e = m.attrValue, !m.forceKeepAttr && (at(C, t), !!m.keepAttr)) {
|
|
363
|
+
if (!qt && g(/\/>/i, e)) {
|
|
364
|
+
at(C, t);
|
|
365
|
+
continue;
|
|
366
|
+
}
|
|
367
|
+
if (vt && g(/((--!?|])>)|<\/(style|title)/i, e)) {
|
|
368
|
+
at(C, t);
|
|
369
|
+
continue;
|
|
370
|
+
}
|
|
371
|
+
z && (e = S(e, dt, " "), e = S(e, ht, " "), e = S(e, gt, " "));
|
|
372
|
+
var v = h(t.nodeName);
|
|
373
|
+
if (ie(v, u, e)) {
|
|
374
|
+
if ($t && (u === "id" || u === "name") && (at(C, t), e = Me + e), A && O(Z) === "object" && typeof Z.getAttributeType == "function" && !H)
|
|
375
|
+
switch (Z.getAttributeType(v, u)) {
|
|
376
|
+
case "TrustedHTML": {
|
|
377
|
+
e = A.createHTML(e);
|
|
378
|
+
break;
|
|
379
|
+
}
|
|
380
|
+
case "TrustedScriptURL": {
|
|
381
|
+
e = A.createScriptURL(e);
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
try {
|
|
386
|
+
H ? t.setAttributeNS(H, C, e) : t.setAttribute(C, e), oe(t) ? L(t) : se(o.removed);
|
|
387
|
+
} catch {
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
D("afterSanitizeAttributes", t, null);
|
|
393
|
+
}
|
|
394
|
+
}, Pe = function t(r) {
|
|
395
|
+
var e, u = re(r);
|
|
396
|
+
for (D("beforeSanitizeShadowDOM", r, null); e = u.nextNode(); )
|
|
397
|
+
if (D("uponSanitizeShadowNode", e, null), !ae(e)) {
|
|
398
|
+
var l = q(e);
|
|
399
|
+
e.nodeType === 1 && (l && l.__depth ? e.__depth = (e.__removalCount || 0) + l.__depth + 1 : e.__depth = 1), (e.__depth >= Jt || pe(e.__depth)) && L(e), e.content instanceof p && (e.content.__depth = e.__depth, t(e.content)), ce(e);
|
|
400
|
+
}
|
|
401
|
+
D("afterSanitizeShadowDOM", r, null);
|
|
402
|
+
};
|
|
403
|
+
return o.sanitize = function(t) {
|
|
404
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, e, u, l, b, m;
|
|
405
|
+
if (St = !t, St && (t = "<!-->"), typeof t != "string" && !K(t))
|
|
406
|
+
if (typeof t.toString == "function") {
|
|
407
|
+
if (t = t.toString(), typeof t != "string")
|
|
408
|
+
throw Lt("dirty is not a string, aborting");
|
|
409
|
+
} else
|
|
410
|
+
throw Lt("toString is not a function");
|
|
411
|
+
if (!o.isSupported) {
|
|
412
|
+
if (O(n.toStaticHTML) === "object" || typeof n.toStaticHTML == "function") {
|
|
413
|
+
if (typeof t == "string")
|
|
414
|
+
return n.toStaticHTML(t);
|
|
415
|
+
if (K(t))
|
|
416
|
+
return n.toStaticHTML(t.outerHTML);
|
|
417
|
+
}
|
|
418
|
+
return t;
|
|
419
|
+
}
|
|
420
|
+
if (Tt || kt(r), o.removed = [], typeof t == "string" && ($ = !1), $) {
|
|
421
|
+
if (t.nodeName) {
|
|
422
|
+
var M = h(t.nodeName);
|
|
423
|
+
if (!f[M] || Y[M])
|
|
424
|
+
throw Lt("root node is forbidden and cannot be sanitized in-place");
|
|
425
|
+
}
|
|
426
|
+
} else if (t instanceof E)
|
|
427
|
+
e = ne("<!---->"), u = e.ownerDocument.importNode(t, !0), u.nodeType === 1 && u.nodeName === "BODY" || u.nodeName === "HTML" ? e = u : e.appendChild(u);
|
|
428
|
+
else {
|
|
429
|
+
if (!P && !z && !I && // eslint-disable-next-line unicorn/prefer-includes
|
|
430
|
+
t.indexOf("<") === -1)
|
|
431
|
+
return A && et ? A.createHTML(t) : t;
|
|
432
|
+
if (e = ne(t), !e)
|
|
433
|
+
return P ? null : et ? pt : "";
|
|
434
|
+
}
|
|
435
|
+
e && Nt && L(e.firstChild);
|
|
436
|
+
for (var C = re($ ? t : e); l = C.nextNode(); )
|
|
437
|
+
if (!(l.nodeType === 3 && l === b) && !ae(l)) {
|
|
438
|
+
var H = q(l);
|
|
439
|
+
l.nodeType === 1 && (H && H.__depth ? l.__depth = (l.__removalCount || 0) + H.__depth + 1 : l.__depth = 1), (l.__depth >= Jt || pe(l.__depth)) && L(l), l.content instanceof p && (l.content.__depth = l.__depth, Pe(l.content)), ce(l), b = l;
|
|
440
|
+
}
|
|
441
|
+
if (b = null, $)
|
|
442
|
+
return t;
|
|
443
|
+
if (P) {
|
|
444
|
+
if (tt)
|
|
445
|
+
for (m = we.call(e.ownerDocument); e.firstChild; )
|
|
446
|
+
m.appendChild(e.firstChild);
|
|
447
|
+
else
|
|
448
|
+
m = e;
|
|
449
|
+
return (d.shadowroot || d.shadowrootmod) && (m = Ce.call(a, m, !0)), m;
|
|
450
|
+
}
|
|
451
|
+
var v = I ? e.outerHTML : e.innerHTML;
|
|
452
|
+
return I && f["!doctype"] && e.ownerDocument && e.ownerDocument.doctype && e.ownerDocument.doctype.name && g(pn, e.ownerDocument.doctype.name) && (v = "<!DOCTYPE " + e.ownerDocument.doctype.name + `>
|
|
453
|
+
` + v), z && (v = S(v, dt, " "), v = S(v, ht, " "), v = S(v, gt, " ")), A && et ? A.createHTML(v) : v;
|
|
454
|
+
}, o.setConfig = function(t) {
|
|
455
|
+
kt(t), Tt = !0;
|
|
456
|
+
}, o.clearConfig = function() {
|
|
457
|
+
W = null, Tt = !1;
|
|
458
|
+
}, o.isValidAttribute = function(t, r, e) {
|
|
459
|
+
W || kt({});
|
|
460
|
+
var u = h(t), l = h(r);
|
|
461
|
+
return ie(u, l, e);
|
|
462
|
+
}, o.addHook = function(t, r) {
|
|
463
|
+
typeof r == "function" && (k[t] = k[t] || [], V(k[t], r));
|
|
464
|
+
}, o.removeHook = function(t) {
|
|
465
|
+
if (k[t])
|
|
466
|
+
return se(k[t]);
|
|
467
|
+
}, o.removeHooks = function(t) {
|
|
468
|
+
k[t] && (k[t] = []);
|
|
469
|
+
}, o.removeAllHooks = function() {
|
|
470
|
+
k = {};
|
|
471
|
+
}, o;
|
|
472
|
+
}
|
|
473
|
+
var gn = _e();
|
|
474
|
+
export {
|
|
475
|
+
gn as default
|
|
476
|
+
};
|
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": "0.0.
|
|
4
|
+
"version": "0.0.80",
|
|
5
5
|
"description": "mapicgc-gl-js library",
|
|
6
6
|
"author": "Institut Cartogràfic i Geològic de Catalunya",
|
|
7
7
|
"license": "BSD-3-Clause",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@loaders.gl/3d-tiles": "~3.4.14",
|
|
63
63
|
"@maplibre/maplibre-gl-compare": "^0.5.0",
|
|
64
64
|
"@maplibre/maplibre-gl-geocoder": "^1.5.0",
|
|
65
|
-
"@watergis/maplibre-gl-export": "^3.
|
|
65
|
+
"@watergis/maplibre-gl-export": "^3.7.0",
|
|
66
66
|
"axios": "^1.6.7",
|
|
67
67
|
"flatgeobuf": "^3.31.1",
|
|
68
68
|
"maplibre-gl": "^4.1.3",
|
package/src/map/Map.js
CHANGED
package/src/mapicgc-config.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"bearing": 0,
|
|
16
16
|
"pitch": 0,
|
|
17
17
|
"hash": false,
|
|
18
|
-
"style": "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_gris.json",
|
|
18
|
+
"style": "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_base_gris.json.json",
|
|
19
19
|
"maxZoom": 18,
|
|
20
20
|
"maxPitch": 85
|
|
21
21
|
},
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"baseStyles": [
|
|
52
52
|
{
|
|
53
53
|
"key": "TOPO",
|
|
54
|
-
"url": "https://geoserveis.icgc.cat/contextmaps/
|
|
54
|
+
"url": "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_estandard_general.json",
|
|
55
55
|
"image": "https://visors.icgc.cat/contextmaps/imatges_estil/icgc_mapa_estandard.png"
|
|
56
56
|
},
|
|
57
57
|
{
|
|
@@ -457,6 +457,10 @@
|
|
|
457
457
|
"name": "districtesCensals2022",
|
|
458
458
|
"key": "districtes_censals_2022"
|
|
459
459
|
},
|
|
460
|
+
{
|
|
461
|
+
"name": "districtesCensals2023",
|
|
462
|
+
"key": "districtes_censals_2023"
|
|
463
|
+
},
|
|
460
464
|
{
|
|
461
465
|
"name": "districtesCensalsVigent",
|
|
462
466
|
"key": "districtes_censals_vigent"
|
|
@@ -565,6 +569,10 @@
|
|
|
565
569
|
"name": "seccionsCensals2022",
|
|
566
570
|
"key": "seccions_censals_2022"
|
|
567
571
|
},
|
|
572
|
+
{
|
|
573
|
+
"name": "seccionsCensals2023",
|
|
574
|
+
"key": "seccions_censals_2023"
|
|
575
|
+
},
|
|
568
576
|
{
|
|
569
577
|
"name": "seccionsCensalsVigent",
|
|
570
578
|
"key": "seccions_censals_vigent"
|
|
@@ -804,7 +812,7 @@
|
|
|
804
812
|
]
|
|
805
813
|
},
|
|
806
814
|
"Styles": {
|
|
807
|
-
"TOPO": "https://geoserveis.icgc.cat/contextmaps/
|
|
815
|
+
"TOPO": "https://geoserveis.icgc.cat/contextmaps/icgc_mapa_estandard_general.json",
|
|
808
816
|
"ORTO": "https://geoserveis.icgc.cat/contextmaps/icgc_orto_estandard.json",
|
|
809
817
|
"ORTO3D": "https://tilemaps.icgc.cat/cdn/styles/icgc_orto_3d.json",
|
|
810
818
|
"ADMIN": "https://geoserveis.icgc.cat/contextmaps/icgc_delimitacio_limits_administratius.json",
|
|
@@ -898,6 +906,7 @@
|
|
|
898
906
|
"districtesCensals2020": "districtes_censals_2020",
|
|
899
907
|
"districtesCensals2021": "districtes_censals_2021",
|
|
900
908
|
"districtesCensals2022": "districtes_censals_2022",
|
|
909
|
+
"districtesCensals2023": "districtes_censals_2023",
|
|
901
910
|
"districtesCensalsVigent": "districtes_censals_vigent",
|
|
902
911
|
"districtesCensalsVigentText": "districtes_censals_vigent_text",
|
|
903
912
|
"incendisForestalsVigent": "incendis_forestals_vigent",
|
|
@@ -925,6 +934,7 @@
|
|
|
925
934
|
"seccionsCensals2020": "seccions_censals_2020",
|
|
926
935
|
"seccionsCensals2021": "seccions_censals_2021",
|
|
927
936
|
"seccionsCensals2022": "seccions_censals_2022",
|
|
937
|
+
"seccionsCensals2023": "seccions_censals_2023",
|
|
928
938
|
"seccionsCensalsVigent": "seccions_censals_vigent",
|
|
929
939
|
"seccionsCensalsVigentText": "seccions_censals_vigent_text",
|
|
930
940
|
"sectorsSanitarisVigent": "sectors_sanitaris_vigent",
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
},
|
|
61
61
|
layerPosition: "top"
|
|
62
62
|
};
|
|
63
|
-
map.addVectorLayerICGC(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
);
|
|
68
|
-
map.addVectorLayerICGC(data.Layers.VectorAdmin.
|
|
63
|
+
// map.addVectorLayerICGC(
|
|
64
|
+
// data.Layers.Vector.cobertes2018,
|
|
65
|
+
// "Cobertes",
|
|
66
|
+
// optionsVector
|
|
67
|
+
// );
|
|
68
|
+
map.addVectorLayerICGC(data.Layers.VectorAdmin.seccionsCensals2023,
|
|
69
69
|
'municipisVigent', optionsVectorAdmin);
|
|
70
70
|
});
|
|
71
71
|
}
|