vue-geojson-view-ts 1.2.2 → 1.2.4
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/dist/vue-geojson-view-ts.js +200 -193
- package/dist/vue-geojson-view-ts.umd.cjs +3 -3
- package/package.json +1 -1
- package/src/components/MapView.vue +30 -19
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as Gi, openBlock as qi, createElementBlock as Wi, normalizeStyle as
|
|
1
|
+
import { defineComponent as Gi, openBlock as qi, createElementBlock as Wi, normalizeStyle as To, createElementVNode as Mo, ref as Ze, onMounted as Ps } from "vue";
|
|
2
2
|
var Ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
|
-
function
|
|
3
|
+
function Es(s) {
|
|
4
4
|
if (s.__esModule)
|
|
5
5
|
return s;
|
|
6
6
|
var l = s.default;
|
|
@@ -27,7 +27,7 @@ function Ts(s) {
|
|
|
27
27
|
});
|
|
28
28
|
}), c;
|
|
29
29
|
}
|
|
30
|
-
var Ni = {},
|
|
30
|
+
var Ni = {}, Ts = {
|
|
31
31
|
get exports() {
|
|
32
32
|
return Ni;
|
|
33
33
|
},
|
|
@@ -49,7 +49,7 @@ var Ge = {}, Cs = {
|
|
|
49
49
|
const zs = {}, Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
50
50
|
__proto__: null,
|
|
51
51
|
default: zs
|
|
52
|
-
}, Symbol.toStringTag, { value: "Module" })), Ds = /* @__PURE__ */
|
|
52
|
+
}, Symbol.toStringTag, { value: "Module" })), Ds = /* @__PURE__ */ Es(Ss);
|
|
53
53
|
var fo;
|
|
54
54
|
function Co() {
|
|
55
55
|
return fo || (fo = 1, function(s, l) {
|
|
@@ -139,7 +139,7 @@ function Co() {
|
|
|
139
139
|
M.push(h());
|
|
140
140
|
return new w.init(M, b);
|
|
141
141
|
}
|
|
142
|
-
}),
|
|
142
|
+
}), T = m.enc = {}, z = T.Hex = {
|
|
143
143
|
stringify: function(b) {
|
|
144
144
|
for (var M = b.words, Z = b.sigBytes, F = [], J = 0; J < Z; J++) {
|
|
145
145
|
var it = M[J >>> 2] >>> 24 - J % 4 * 8 & 255;
|
|
@@ -152,7 +152,7 @@ function Co() {
|
|
|
152
152
|
Z[F >>> 3] |= parseInt(b.substr(F, 2), 16) << 24 - F % 8 * 4;
|
|
153
153
|
return new w.init(Z, M / 2);
|
|
154
154
|
}
|
|
155
|
-
}, P =
|
|
155
|
+
}, P = T.Latin1 = {
|
|
156
156
|
stringify: function(b) {
|
|
157
157
|
for (var M = b.words, Z = b.sigBytes, F = [], J = 0; J < Z; J++) {
|
|
158
158
|
var it = M[J >>> 2] >>> 24 - J % 4 * 8 & 255;
|
|
@@ -165,7 +165,7 @@ function Co() {
|
|
|
165
165
|
Z[F >>> 2] |= (b.charCodeAt(F) & 255) << 24 - F % 4 * 8;
|
|
166
166
|
return new w.init(Z, M);
|
|
167
167
|
}
|
|
168
|
-
},
|
|
168
|
+
}, E = T.Utf8 = {
|
|
169
169
|
stringify: function(b) {
|
|
170
170
|
try {
|
|
171
171
|
return decodeURIComponent(escape(P.stringify(b)));
|
|
@@ -181,7 +181,7 @@ function Co() {
|
|
|
181
181
|
this._data = new w.init(), this._nDataBytes = 0;
|
|
182
182
|
},
|
|
183
183
|
_append: function(b) {
|
|
184
|
-
typeof b == "string" && (b =
|
|
184
|
+
typeof b == "string" && (b = E.parse(b)), this._data.concat(b), this._nDataBytes += b.sigBytes;
|
|
185
185
|
},
|
|
186
186
|
_process: function(b) {
|
|
187
187
|
var M, Z = this._data, F = Z.words, J = Z.sigBytes, it = this.blockSize, jt = it * 4, at = J / jt;
|
|
@@ -245,21 +245,21 @@ function Co() {
|
|
|
245
245
|
stringify: function(m) {
|
|
246
246
|
var _ = m.words, v = m.sigBytes, w = this._map;
|
|
247
247
|
m.clamp();
|
|
248
|
-
for (var
|
|
249
|
-
for (var P = _[z >>> 2] >>> 24 - z % 4 * 8 & 255,
|
|
250
|
-
|
|
248
|
+
for (var T = [], z = 0; z < v; z += 3)
|
|
249
|
+
for (var P = _[z >>> 2] >>> 24 - z % 4 * 8 & 255, E = _[z + 1 >>> 2] >>> 24 - (z + 1) % 4 * 8 & 255, D = _[z + 2 >>> 2] >>> 24 - (z + 2) % 4 * 8 & 255, N = P << 16 | E << 8 | D, b = 0; b < 4 && z + b * 0.75 < v; b++)
|
|
250
|
+
T.push(w.charAt(N >>> 6 * (3 - b) & 63));
|
|
251
251
|
var M = w.charAt(64);
|
|
252
252
|
if (M)
|
|
253
|
-
for (;
|
|
254
|
-
|
|
255
|
-
return
|
|
253
|
+
for (; T.length % 4; )
|
|
254
|
+
T.push(M);
|
|
255
|
+
return T.join("");
|
|
256
256
|
},
|
|
257
257
|
parse: function(m) {
|
|
258
258
|
var _ = m.length, v = this._map, w = this._reverseMap;
|
|
259
259
|
if (!w) {
|
|
260
260
|
w = this._reverseMap = [];
|
|
261
|
-
for (var
|
|
262
|
-
w[v.charCodeAt(
|
|
261
|
+
for (var T = 0; T < v.length; T++)
|
|
262
|
+
w[v.charCodeAt(T)] = T;
|
|
263
263
|
}
|
|
264
264
|
var z = v.charAt(64);
|
|
265
265
|
if (z) {
|
|
@@ -271,16 +271,16 @@ function Co() {
|
|
|
271
271
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
272
272
|
};
|
|
273
273
|
function f(m, _, v) {
|
|
274
|
-
for (var w = [],
|
|
274
|
+
for (var w = [], T = 0, z = 0; z < _; z++)
|
|
275
275
|
if (z % 4) {
|
|
276
|
-
var P = v[m.charCodeAt(z - 1)] << z % 4 * 2,
|
|
277
|
-
w[
|
|
276
|
+
var P = v[m.charCodeAt(z - 1)] << z % 4 * 2, E = v[m.charCodeAt(z)] >>> 6 - z % 4 * 2, D = P | E;
|
|
277
|
+
w[T >>> 2] |= D << 24 - T % 4 * 8, T++;
|
|
278
278
|
}
|
|
279
|
-
return r.create(w,
|
|
279
|
+
return r.create(w, T);
|
|
280
280
|
}
|
|
281
281
|
}(), c.enc.Base64;
|
|
282
282
|
});
|
|
283
|
-
})(
|
|
283
|
+
})(Ts);
|
|
284
284
|
const Ki = Ni;
|
|
285
285
|
var Zi = {}, Os = {
|
|
286
286
|
get exports() {
|
|
@@ -421,7 +421,7 @@ var U = {}, Bs = {
|
|
|
421
421
|
function w() {
|
|
422
422
|
return !1;
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function T(t, e) {
|
|
425
425
|
if (e === !1)
|
|
426
426
|
return t;
|
|
427
427
|
var i = Math.pow(10, e === void 0 ? 6 : e);
|
|
@@ -433,7 +433,7 @@ var U = {}, Bs = {
|
|
|
433
433
|
function P(t) {
|
|
434
434
|
return z(t).split(/\s+/);
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function E(t, e) {
|
|
437
437
|
Object.prototype.hasOwnProperty.call(t, "options") || (t.options = t.options ? r(t.options) : {});
|
|
438
438
|
for (var i in e)
|
|
439
439
|
t.options[i] = e[i];
|
|
@@ -496,10 +496,10 @@ var U = {}, Bs = {
|
|
|
496
496
|
throttle: _,
|
|
497
497
|
wrapNum: v,
|
|
498
498
|
falseFn: w,
|
|
499
|
-
formatNum:
|
|
499
|
+
formatNum: T,
|
|
500
500
|
trim: z,
|
|
501
501
|
splitWords: P,
|
|
502
|
-
setOptions:
|
|
502
|
+
setOptions: E,
|
|
503
503
|
getParamString: D,
|
|
504
504
|
template: b,
|
|
505
505
|
isArray: M,
|
|
@@ -514,7 +514,7 @@ var U = {}, Bs = {
|
|
|
514
514
|
}
|
|
515
515
|
bt.extend = function(t) {
|
|
516
516
|
var e = function() {
|
|
517
|
-
|
|
517
|
+
E(this), this.initialize && this.initialize.apply(this, arguments), this.callInitHooks();
|
|
518
518
|
}, i = e.__super__ = this.prototype, o = r(i);
|
|
519
519
|
o.constructor = e, e.prototype = o;
|
|
520
520
|
for (var a in this)
|
|
@@ -751,7 +751,7 @@ var U = {}, Bs = {
|
|
|
751
751
|
return t = A(t), Math.abs(t.x) <= Math.abs(this.x) && Math.abs(t.y) <= Math.abs(this.y);
|
|
752
752
|
},
|
|
753
753
|
toString: function() {
|
|
754
|
-
return "Point(" +
|
|
754
|
+
return "Point(" + T(this.x) + ", " + T(this.y) + ")";
|
|
755
755
|
}
|
|
756
756
|
};
|
|
757
757
|
function A(t, e, i) {
|
|
@@ -925,7 +925,7 @@ var U = {}, Bs = {
|
|
|
925
925
|
return i <= (e === void 0 ? 1e-9 : e);
|
|
926
926
|
},
|
|
927
927
|
toString: function(t) {
|
|
928
|
-
return "LatLng(" +
|
|
928
|
+
return "LatLng(" + T(this.lat, t) + ", " + T(this.lng, t) + ")";
|
|
929
929
|
},
|
|
930
930
|
distanceTo: function(t) {
|
|
931
931
|
return zt.distance(this, K(t));
|
|
@@ -1171,13 +1171,13 @@ var U = {}, Bs = {
|
|
|
1171
1171
|
function Pr(t, e) {
|
|
1172
1172
|
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && rt(e), Le(t, e);
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function Er(t) {
|
|
1175
1175
|
var e = {}, i, o;
|
|
1176
1176
|
for (o in t)
|
|
1177
1177
|
i = t[o], e[o] = i && i.bind ? i.bind(t) : i;
|
|
1178
1178
|
return t = e, e.type = "dblclick", e.detail = 2, e.isTrusted = !1, e._simulated = !0, e;
|
|
1179
1179
|
}
|
|
1180
|
-
var
|
|
1180
|
+
var Tr = 200;
|
|
1181
1181
|
function Mr(t, e) {
|
|
1182
1182
|
t.addEventListener("dblclick", e);
|
|
1183
1183
|
var i = 0, o;
|
|
@@ -1194,7 +1194,7 @@ var U = {}, Bs = {
|
|
|
1194
1194
|
return y instanceof HTMLInputElement || y instanceof HTMLSelectElement;
|
|
1195
1195
|
}))) {
|
|
1196
1196
|
var g = Date.now();
|
|
1197
|
-
g - i <=
|
|
1197
|
+
g - i <= Tr ? (o++, o === 2 && e(Er(u))) : o = 1, i = g;
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
@@ -1330,7 +1330,7 @@ var U = {}, Bs = {
|
|
|
1330
1330
|
function Pe() {
|
|
1331
1331
|
xe && (xe.style.outline = _i, xe = void 0, _i = void 0, V(window, "keydown", Pe));
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function En(t) {
|
|
1334
1334
|
do
|
|
1335
1335
|
t = t.parentNode;
|
|
1336
1336
|
while ((!t.offsetWidth || !t.offsetHeight) && t !== document.body);
|
|
@@ -1376,7 +1376,7 @@ var U = {}, Bs = {
|
|
|
1376
1376
|
enableImageDrag: pi,
|
|
1377
1377
|
preventOutline: mi,
|
|
1378
1378
|
restoreOutline: Pe,
|
|
1379
|
-
getSizedParentNode:
|
|
1379
|
+
getSizedParentNode: En,
|
|
1380
1380
|
getScale: gi
|
|
1381
1381
|
};
|
|
1382
1382
|
function R(t, e, i, o) {
|
|
@@ -1393,12 +1393,12 @@ var U = {}, Bs = {
|
|
|
1393
1393
|
var vt = "_leaflet_events";
|
|
1394
1394
|
function V(t, e, i, o) {
|
|
1395
1395
|
if (arguments.length === 1)
|
|
1396
|
-
|
|
1396
|
+
Tn(t), delete t[vt];
|
|
1397
1397
|
else if (e && typeof e == "object")
|
|
1398
1398
|
for (var a in e)
|
|
1399
1399
|
Li(t, a, e[a], i);
|
|
1400
1400
|
else if (e = P(e), arguments.length === 2)
|
|
1401
|
-
|
|
1401
|
+
Tn(t, function(g) {
|
|
1402
1402
|
return Z(e, g) !== -1;
|
|
1403
1403
|
});
|
|
1404
1404
|
else
|
|
@@ -1406,7 +1406,7 @@ var U = {}, Bs = {
|
|
|
1406
1406
|
Li(t, e[u], i, o);
|
|
1407
1407
|
return this;
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function Tn(t, e) {
|
|
1410
1410
|
for (var i in t[vt]) {
|
|
1411
1411
|
var o = i.split(/\d/)[0];
|
|
1412
1412
|
(!e || e(o)) && Li(t, o, null, null, i);
|
|
@@ -1541,7 +1541,7 @@ var U = {}, Bs = {
|
|
|
1541
1541
|
trackResize: !0
|
|
1542
1542
|
},
|
|
1543
1543
|
initialize: function(t, e) {
|
|
1544
|
-
e =
|
|
1544
|
+
e = E(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = h(this._onResize, this), this._initEvents(), e.maxBounds && this.setMaxBounds(e.maxBounds), e.zoom !== void 0 && (this._zoom = this._limitZoom(e.zoom)), e.center && e.zoom !== void 0 && this.setView(K(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = ne && S.any3d && !S.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), R(this._proxy, xn, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
|
|
1545
1545
|
},
|
|
1546
1546
|
setView: function(t, e, i) {
|
|
1547
1547
|
if (e = e === void 0 ? this._zoom : this._limitZoom(e), t = this._limitCenter(K(t), e, this.options.maxBounds), i = i || {}, this._stop(), this._loaded && !i.reset && i !== !0) {
|
|
@@ -2118,7 +2118,7 @@ var U = {}, Bs = {
|
|
|
2118
2118
|
position: "topright"
|
|
2119
2119
|
},
|
|
2120
2120
|
initialize: function(t) {
|
|
2121
|
-
|
|
2121
|
+
E(this, t);
|
|
2122
2122
|
},
|
|
2123
2123
|
getPosition: function() {
|
|
2124
2124
|
return this.options.position;
|
|
@@ -2177,7 +2177,7 @@ var U = {}, Bs = {
|
|
|
2177
2177
|
}
|
|
2178
2178
|
},
|
|
2179
2179
|
initialize: function(t, e, i) {
|
|
2180
|
-
|
|
2180
|
+
E(this, i), this._layerControlInputs = [], this._layers = [], this._lastZIndex = 0, this._handlingClick = !1;
|
|
2181
2181
|
for (var o in t)
|
|
2182
2182
|
this._addLayer(t[o], o);
|
|
2183
2183
|
for (o in e)
|
|
@@ -2407,7 +2407,7 @@ var U = {}, Bs = {
|
|
|
2407
2407
|
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (S.inlineSvg ? Nr + " " : "") + "Leaflet</a>"
|
|
2408
2408
|
},
|
|
2409
2409
|
initialize: function(t) {
|
|
2410
|
-
|
|
2410
|
+
E(this, t), this._attributions = {};
|
|
2411
2411
|
},
|
|
2412
2412
|
onAdd: function(t) {
|
|
2413
2413
|
t.attributionControl = this, this._container = q("div", "leaflet-control-attribution"), le(this._container);
|
|
@@ -2473,7 +2473,7 @@ var U = {}, Bs = {
|
|
|
2473
2473
|
clickTolerance: 3
|
|
2474
2474
|
},
|
|
2475
2475
|
initialize: function(t, e, i, o) {
|
|
2476
|
-
|
|
2476
|
+
E(this, o), this._element = t, this._dragStartTarget = e || t, this._preventOutline = i;
|
|
2477
2477
|
},
|
|
2478
2478
|
enable: function() {
|
|
2479
2479
|
this._enabled || (R(this._dragStartTarget, An, this._onDown, this), this._enabled = !0);
|
|
@@ -2489,7 +2489,7 @@ var U = {}, Bs = {
|
|
|
2489
2489
|
}
|
|
2490
2490
|
if (!(St._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (St._dragging = this, this._preventOutline && mi(this._element), fi(), re(), !this._moving)) {
|
|
2491
2491
|
this.fire("down");
|
|
2492
|
-
var e = t.touches ? t.touches[0] : t, i =
|
|
2492
|
+
var e = t.touches ? t.touches[0] : t, i = En(this._element);
|
|
2493
2493
|
this._startPoint = new I(e.clientX, e.clientY), this._startPos = Bt(this._element), this._parentScale = gi(i);
|
|
2494
2494
|
var o = t.type === "mousedown";
|
|
2495
2495
|
R(document, o ? "mousemove" : "touchmove", this._onMove, this), R(document, o ? "mouseup" : "touchend touchcancel", this._onUp, this);
|
|
@@ -2559,10 +2559,10 @@ var U = {}, Bs = {
|
|
|
2559
2559
|
return [t, e];
|
|
2560
2560
|
if (u & p)
|
|
2561
2561
|
return !1;
|
|
2562
|
-
g = u || p, y =
|
|
2562
|
+
g = u || p, y = Ee(t, e, g, i, a), x = Ht(y, i), g === u ? (t = y, u = x) : (e = y, p = x);
|
|
2563
2563
|
}
|
|
2564
2564
|
}
|
|
2565
|
-
function
|
|
2565
|
+
function Ee(t, e, i, o, a) {
|
|
2566
2566
|
var u = e.x - t.x, p = e.y - t.y, g = o.min, y = o.max, x, C;
|
|
2567
2567
|
return i & 8 ? (x = t.x + u * (y.y - t.y) / p, C = y.y) : i & 4 ? (x = t.x + u * (g.y - t.y) / p, C = g.y) : i & 2 ? (x = y.x, C = t.y + p * (y.x - t.x) / u) : i & 1 && (x = g.x, C = t.y + p * (g.x - t.x) / u), new I(x, C, a);
|
|
2568
2568
|
}
|
|
@@ -2614,7 +2614,7 @@ var U = {}, Bs = {
|
|
|
2614
2614
|
pointToSegmentDistance: Rn,
|
|
2615
2615
|
closestPointOnSegment: Fr,
|
|
2616
2616
|
clipSegment: Nn,
|
|
2617
|
-
_getEdgeIntersection:
|
|
2617
|
+
_getEdgeIntersection: Ee,
|
|
2618
2618
|
_getBitCode: Ht,
|
|
2619
2619
|
_sqClosestPointOnSegment: ce,
|
|
2620
2620
|
isFlat: dt,
|
|
@@ -2627,7 +2627,7 @@ var U = {}, Bs = {
|
|
|
2627
2627
|
t[u]._code = Ht(t[u], e);
|
|
2628
2628
|
for (g = 0; g < 4; g++) {
|
|
2629
2629
|
for (O = a[g], o = [], u = 0, C = t.length, p = C - 1; u < C; p = u++)
|
|
2630
|
-
y = t[u], x = t[p], y._code & O ? x._code & O || (H =
|
|
2630
|
+
y = t[u], x = t[p], y._code & O ? x._code & O || (H = Ee(x, y, O, e, i), H._code = Ht(H, e), o.push(H)) : (x._code & O && (H = Ee(x, y, O, e, i), H._code = Ht(H, e), o.push(H)), o.push(y));
|
|
2631
2631
|
t = o;
|
|
2632
2632
|
}
|
|
2633
2633
|
return t;
|
|
@@ -2649,7 +2649,7 @@ var U = {}, Bs = {
|
|
|
2649
2649
|
__proto__: null,
|
|
2650
2650
|
clipPolygon: Fn,
|
|
2651
2651
|
polygonCenter: Un
|
|
2652
|
-
},
|
|
2652
|
+
}, Ei = {
|
|
2653
2653
|
project: function(t) {
|
|
2654
2654
|
return new I(t.lng, t.lat);
|
|
2655
2655
|
},
|
|
@@ -2657,7 +2657,7 @@ var U = {}, Bs = {
|
|
|
2657
2657
|
return new W(t.y, t.x);
|
|
2658
2658
|
},
|
|
2659
2659
|
bounds: new Y([-180, -90], [180, 90])
|
|
2660
|
-
},
|
|
2660
|
+
}, Ti = {
|
|
2661
2661
|
R: 6378137,
|
|
2662
2662
|
R_MINOR: 6356752314245179e-9,
|
|
2663
2663
|
bounds: new Y([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
|
|
@@ -2672,22 +2672,22 @@ var U = {}, Bs = {
|
|
|
2672
2672
|
}
|
|
2673
2673
|
}, Kr = {
|
|
2674
2674
|
__proto__: null,
|
|
2675
|
-
LonLat:
|
|
2676
|
-
Mercator:
|
|
2675
|
+
LonLat: Ei,
|
|
2676
|
+
Mercator: Ti,
|
|
2677
2677
|
SphericalMercator: ti
|
|
2678
2678
|
}, Vr = n({}, zt, {
|
|
2679
2679
|
code: "EPSG:3395",
|
|
2680
|
-
projection:
|
|
2680
|
+
projection: Ti,
|
|
2681
2681
|
transformation: function() {
|
|
2682
|
-
var t = 0.5 / (Math.PI *
|
|
2682
|
+
var t = 0.5 / (Math.PI * Ti.R);
|
|
2683
2683
|
return ee(t, 0.5, -t, 0.5);
|
|
2684
2684
|
}()
|
|
2685
2685
|
}), jn = n({}, zt, {
|
|
2686
2686
|
code: "EPSG:4326",
|
|
2687
|
-
projection:
|
|
2687
|
+
projection: Ei,
|
|
2688
2688
|
transformation: ee(1 / 180, 1, -1 / 180, 0.5)
|
|
2689
2689
|
}), Jr = n({}, xt, {
|
|
2690
|
-
projection:
|
|
2690
|
+
projection: Ei,
|
|
2691
2691
|
transformation: ee(1, 0, -1, 0),
|
|
2692
2692
|
scale: function(t) {
|
|
2693
2693
|
return Math.pow(2, t);
|
|
@@ -2784,7 +2784,7 @@ var U = {}, Bs = {
|
|
|
2784
2784
|
});
|
|
2785
2785
|
var Kt = mt.extend({
|
|
2786
2786
|
initialize: function(t, e) {
|
|
2787
|
-
|
|
2787
|
+
E(this, e), this._layers = {};
|
|
2788
2788
|
var i, o;
|
|
2789
2789
|
if (t)
|
|
2790
2790
|
for (i = 0, o = t.length; i < o; i++)
|
|
@@ -2870,7 +2870,7 @@ var U = {}, Bs = {
|
|
|
2870
2870
|
crossOrigin: !1
|
|
2871
2871
|
},
|
|
2872
2872
|
initialize: function(t) {
|
|
2873
|
-
|
|
2873
|
+
E(this, t);
|
|
2874
2874
|
},
|
|
2875
2875
|
createIcon: function(t) {
|
|
2876
2876
|
return this._createIcon("icon", t);
|
|
@@ -2982,7 +2982,7 @@ var U = {}, Bs = {
|
|
|
2982
2982
|
_onDragEnd: function(t) {
|
|
2983
2983
|
st(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t);
|
|
2984
2984
|
}
|
|
2985
|
-
}),
|
|
2985
|
+
}), Te = mt.extend({
|
|
2986
2986
|
options: {
|
|
2987
2987
|
icon: new ue(),
|
|
2988
2988
|
interactive: !0,
|
|
@@ -3003,7 +3003,7 @@ var U = {}, Bs = {
|
|
|
3003
3003
|
autoPanSpeed: 10
|
|
3004
3004
|
},
|
|
3005
3005
|
initialize: function(t, e) {
|
|
3006
|
-
|
|
3006
|
+
E(this, e), this._latlng = K(t);
|
|
3007
3007
|
},
|
|
3008
3008
|
onAdd: function(t) {
|
|
3009
3009
|
this._zoomAnimated = this._zoomAnimated && t.options.markerZoomAnimation, this._zoomAnimated && t.on("zoomanim", this._animateZoom, this), this._initIcon(), this.update();
|
|
@@ -3108,7 +3108,7 @@ var U = {}, Bs = {
|
|
|
3108
3108
|
}
|
|
3109
3109
|
});
|
|
3110
3110
|
function Qr(t, e) {
|
|
3111
|
-
return new
|
|
3111
|
+
return new Te(t, e);
|
|
3112
3112
|
}
|
|
3113
3113
|
var Dt = mt.extend({
|
|
3114
3114
|
options: {
|
|
@@ -3140,7 +3140,7 @@ var U = {}, Bs = {
|
|
|
3140
3140
|
return this._map && this._renderer._updatePath(this), this;
|
|
3141
3141
|
},
|
|
3142
3142
|
setStyle: function(t) {
|
|
3143
|
-
return
|
|
3143
|
+
return E(this, t), this._renderer && (this._renderer._updateStyle(this), this.options.stroke && t && Object.prototype.hasOwnProperty.call(t, "weight") && this._updateBounds()), this;
|
|
3144
3144
|
},
|
|
3145
3145
|
bringToFront: function() {
|
|
3146
3146
|
return this._renderer && this._renderer._bringToFront(this), this;
|
|
@@ -3163,7 +3163,7 @@ var U = {}, Bs = {
|
|
|
3163
3163
|
radius: 10
|
|
3164
3164
|
},
|
|
3165
3165
|
initialize: function(t, e) {
|
|
3166
|
-
|
|
3166
|
+
E(this, e), this._latlng = K(t), this._radius = this.options.radius;
|
|
3167
3167
|
},
|
|
3168
3168
|
setLatLng: function(t) {
|
|
3169
3169
|
var e = this._latlng;
|
|
@@ -3207,7 +3207,7 @@ var U = {}, Bs = {
|
|
|
3207
3207
|
}
|
|
3208
3208
|
var Mi = Me.extend({
|
|
3209
3209
|
initialize: function(t, e, i) {
|
|
3210
|
-
if (typeof e == "number" && (e = n({}, i, { radius: e })),
|
|
3210
|
+
if (typeof e == "number" && (e = n({}, i, { radius: e })), E(this, e), this._latlng = K(t), isNaN(this.options.radius))
|
|
3211
3211
|
throw new Error("Circle radius cannot be NaN");
|
|
3212
3212
|
this._mRadius = this.options.radius;
|
|
3213
3213
|
},
|
|
@@ -3240,13 +3240,13 @@ var U = {}, Bs = {
|
|
|
3240
3240
|
function es(t, e, i) {
|
|
3241
3241
|
return new Mi(t, e, i);
|
|
3242
3242
|
}
|
|
3243
|
-
var
|
|
3243
|
+
var Et = Dt.extend({
|
|
3244
3244
|
options: {
|
|
3245
3245
|
smoothFactor: 1,
|
|
3246
3246
|
noClip: !1
|
|
3247
3247
|
},
|
|
3248
3248
|
initialize: function(t, e) {
|
|
3249
|
-
|
|
3249
|
+
E(this, e), this._setLatLngs(t);
|
|
3250
3250
|
},
|
|
3251
3251
|
getLatLngs: function() {
|
|
3252
3252
|
return this._latlngs;
|
|
@@ -3344,10 +3344,10 @@ var U = {}, Bs = {
|
|
|
3344
3344
|
}
|
|
3345
3345
|
});
|
|
3346
3346
|
function is(t, e) {
|
|
3347
|
-
return new
|
|
3347
|
+
return new Et(t, e);
|
|
3348
3348
|
}
|
|
3349
|
-
|
|
3350
|
-
var Jt =
|
|
3349
|
+
Et._flat = Zn;
|
|
3350
|
+
var Jt = Et.extend({
|
|
3351
3351
|
options: {
|
|
3352
3352
|
fill: !0
|
|
3353
3353
|
},
|
|
@@ -3360,11 +3360,11 @@ var U = {}, Bs = {
|
|
|
3360
3360
|
return Un(this._defaultShape(), this._map.options.crs);
|
|
3361
3361
|
},
|
|
3362
3362
|
_convertLatLngs: function(t) {
|
|
3363
|
-
var e =
|
|
3363
|
+
var e = Et.prototype._convertLatLngs.call(this, t), i = e.length;
|
|
3364
3364
|
return i >= 2 && e[0] instanceof W && e[0].equals(e[i - 1]) && e.pop(), e;
|
|
3365
3365
|
},
|
|
3366
3366
|
_setLatLngs: function(t) {
|
|
3367
|
-
|
|
3367
|
+
Et.prototype._setLatLngs.call(this, t), dt(this._latlngs) && (this._latlngs = [this._latlngs]);
|
|
3368
3368
|
},
|
|
3369
3369
|
_defaultShape: function() {
|
|
3370
3370
|
return dt(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0];
|
|
@@ -3390,15 +3390,15 @@ var U = {}, Bs = {
|
|
|
3390
3390
|
for (u = 0, y = this._parts.length; u < y; u++)
|
|
3391
3391
|
for (i = this._parts[u], p = 0, x = i.length, g = x - 1; p < x; g = p++)
|
|
3392
3392
|
o = i[p], a = i[g], o.y > t.y != a.y > t.y && t.x < (a.x - o.x) * (t.y - o.y) / (a.y - o.y) + o.x && (e = !e);
|
|
3393
|
-
return e ||
|
|
3393
|
+
return e || Et.prototype._containsPoint.call(this, t, !0);
|
|
3394
3394
|
}
|
|
3395
3395
|
});
|
|
3396
3396
|
function ns(t, e) {
|
|
3397
3397
|
return new Jt(t, e);
|
|
3398
3398
|
}
|
|
3399
|
-
var
|
|
3399
|
+
var Tt = Pt.extend({
|
|
3400
3400
|
initialize: function(t, e) {
|
|
3401
|
-
|
|
3401
|
+
E(this, e), this._layers = {}, t && this.addData(t);
|
|
3402
3402
|
},
|
|
3403
3403
|
addData: function(t) {
|
|
3404
3404
|
var e = M(t) ? t : t.features, i, o, a;
|
|
@@ -3438,7 +3438,7 @@ var U = {}, Bs = {
|
|
|
3438
3438
|
return new Pt(a);
|
|
3439
3439
|
case "LineString":
|
|
3440
3440
|
case "MultiLineString":
|
|
3441
|
-
return y = ze(o, i.type === "LineString" ? 0 : 1, p), new
|
|
3441
|
+
return y = ze(o, i.type === "LineString" ? 0 : 1, p), new Et(y, e);
|
|
3442
3442
|
case "Polygon":
|
|
3443
3443
|
case "MultiPolygon":
|
|
3444
3444
|
return y = ze(o, i.type === "Polygon" ? 1 : 2, p), new Jt(y, e);
|
|
@@ -3463,7 +3463,7 @@ var U = {}, Bs = {
|
|
|
3463
3463
|
}
|
|
3464
3464
|
}
|
|
3465
3465
|
function qn(t, e, i, o) {
|
|
3466
|
-
return t ? t(e, i) : new
|
|
3466
|
+
return t ? t(e, i) : new Te(i, o && o.markersInheritOptions && o);
|
|
3467
3467
|
}
|
|
3468
3468
|
function Ci(t) {
|
|
3469
3469
|
return new W(t[1], t[0], t[2]);
|
|
@@ -3474,7 +3474,7 @@ var U = {}, Bs = {
|
|
|
3474
3474
|
return o;
|
|
3475
3475
|
}
|
|
3476
3476
|
function zi(t, e) {
|
|
3477
|
-
return t = K(t), t.alt !== void 0 ? [
|
|
3477
|
+
return t = K(t), t.alt !== void 0 ? [T(t.lng, e), T(t.lat, e), T(t.alt, e)] : [T(t.lng, e), T(t.lat, e)];
|
|
3478
3478
|
}
|
|
3479
3479
|
function Se(t, e, i, o) {
|
|
3480
3480
|
for (var a = [], u = 0, p = t.length; u < p; u++)
|
|
@@ -3499,7 +3499,7 @@ var U = {}, Bs = {
|
|
|
3499
3499
|
});
|
|
3500
3500
|
}
|
|
3501
3501
|
};
|
|
3502
|
-
|
|
3502
|
+
Te.include(Si), Mi.include(Si), Me.include(Si), Et.include({
|
|
3503
3503
|
toGeoJSON: function(t) {
|
|
3504
3504
|
var e = !dt(this._latlngs), i = Se(this._latlngs, e ? 1 : 0, !1, t);
|
|
3505
3505
|
return Yt(this, {
|
|
@@ -3550,7 +3550,7 @@ var U = {}, Bs = {
|
|
|
3550
3550
|
}
|
|
3551
3551
|
});
|
|
3552
3552
|
function Wn(t, e) {
|
|
3553
|
-
return new
|
|
3553
|
+
return new Tt(t, e);
|
|
3554
3554
|
}
|
|
3555
3555
|
var os = Wn, Oe = mt.extend({
|
|
3556
3556
|
options: {
|
|
@@ -3563,7 +3563,7 @@ var U = {}, Bs = {
|
|
|
3563
3563
|
className: ""
|
|
3564
3564
|
},
|
|
3565
3565
|
initialize: function(t, e, i) {
|
|
3566
|
-
this._url = t, this._bounds = nt(e),
|
|
3566
|
+
this._url = t, this._bounds = nt(e), E(this, i);
|
|
3567
3567
|
},
|
|
3568
3568
|
onAdd: function() {
|
|
3569
3569
|
this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (B(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
|
|
@@ -3684,7 +3684,7 @@ var U = {}, Bs = {
|
|
|
3684
3684
|
content: ""
|
|
3685
3685
|
},
|
|
3686
3686
|
initialize: function(t, e) {
|
|
3687
|
-
t && (t instanceof W || M(t)) ? (this._latlng = K(t),
|
|
3687
|
+
t && (t instanceof W || M(t)) ? (this._latlng = K(t), E(this, e)) : (E(this, t), this._source = e), this.options.content && (this._content = this.options.content);
|
|
3688
3688
|
},
|
|
3689
3689
|
openOn: function(t) {
|
|
3690
3690
|
return t = arguments.length ? t : this._source._map, t.hasLayer(this) || t.addLayer(this), this;
|
|
@@ -3795,7 +3795,7 @@ var U = {}, Bs = {
|
|
|
3795
3795
|
}), mt.include({
|
|
3796
3796
|
_initOverlay: function(t, e, i, o) {
|
|
3797
3797
|
var a = i;
|
|
3798
|
-
return a instanceof t ? (
|
|
3798
|
+
return a instanceof t ? (E(a, o), a._source = this) : (a = e && !o ? e : new t(o, this), a.setContent(i)), a;
|
|
3799
3799
|
}
|
|
3800
3800
|
});
|
|
3801
3801
|
var Ae = Lt.extend({
|
|
@@ -4085,7 +4085,7 @@ var U = {}, Bs = {
|
|
|
4085
4085
|
keepBuffer: 2
|
|
4086
4086
|
},
|
|
4087
4087
|
initialize: function(t) {
|
|
4088
|
-
|
|
4088
|
+
E(this, t);
|
|
4089
4089
|
},
|
|
4090
4090
|
onAdd: function() {
|
|
4091
4091
|
this._initContainer(), this._levels = {}, this._tiles = {}, this._resetView();
|
|
@@ -4414,7 +4414,7 @@ var U = {}, Bs = {
|
|
|
4414
4414
|
referrerPolicy: !1
|
|
4415
4415
|
},
|
|
4416
4416
|
initialize: function(t, e) {
|
|
4417
|
-
this._url = t, e =
|
|
4417
|
+
this._url = t, e = E(this, e), e.detectRetina && S.retina && e.maxZoom > 0 ? (e.tileSize = Math.floor(e.tileSize / 2), e.zoomReverse ? (e.zoomOffset--, e.minZoom = Math.min(e.maxZoom, e.minZoom + 1)) : (e.zoomOffset++, e.maxZoom = Math.max(e.minZoom, e.maxZoom - 1)), e.minZoom = Math.max(0, e.minZoom)) : e.zoomReverse ? e.minZoom = Math.min(e.maxZoom, e.minZoom) : e.maxZoom = Math.max(e.minZoom, e.maxZoom), typeof e.subdomains == "string" && (e.subdomains = e.subdomains.split("")), this.on("tileunload", this._onTileRemove);
|
|
4418
4418
|
},
|
|
4419
4419
|
setUrl: function(t, e) {
|
|
4420
4420
|
return this._url === t && e === void 0 && (e = !0), this._url = t, e || this.redraw(), this;
|
|
@@ -4499,7 +4499,7 @@ var U = {}, Bs = {
|
|
|
4499
4499
|
var i = n({}, this.defaultWmsParams);
|
|
4500
4500
|
for (var o in e)
|
|
4501
4501
|
o in this.options || (i[o] = e[o]);
|
|
4502
|
-
e =
|
|
4502
|
+
e = E(this, e);
|
|
4503
4503
|
var a = e.detectRetina && S.retina ? 2 : 1, u = this.getTileSize();
|
|
4504
4504
|
i.width = u.x * a, i.height = u.y * a, this.wmsParams = i;
|
|
4505
4505
|
},
|
|
@@ -4525,7 +4525,7 @@ var U = {}, Bs = {
|
|
|
4525
4525
|
padding: 0.1
|
|
4526
4526
|
},
|
|
4527
4527
|
initialize: function(t) {
|
|
4528
|
-
|
|
4528
|
+
E(this, t), m(this), this._layers = this._layers || {};
|
|
4529
4529
|
},
|
|
4530
4530
|
onAdd: function() {
|
|
4531
4531
|
this._container || (this._initContainer(), this._zoomAnimated && B(this._container, "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this._update(), this.on("update", this._updatePaths, this);
|
|
@@ -4882,7 +4882,7 @@ var U = {}, Bs = {
|
|
|
4882
4882
|
function ps(t, e) {
|
|
4883
4883
|
return new eo(t, e);
|
|
4884
4884
|
}
|
|
4885
|
-
pe.create = Re, pe.pointsToPath = on,
|
|
4885
|
+
pe.create = Re, pe.pointsToPath = on, Tt.geometryToLayer = Ce, Tt.coordsToLatLng = Ci, Tt.coordsToLatLngs = ze, Tt.latLngToCoords = zi, Tt.latLngsToCoords = Se, Tt.getFeature = Yt, Tt.asFeature = De, j.mergeOptions({
|
|
4886
4886
|
boxZoom: !0
|
|
4887
4887
|
});
|
|
4888
4888
|
var io = yt.extend({
|
|
@@ -5255,7 +5255,7 @@ var U = {}, Bs = {
|
|
|
5255
5255
|
this._zooming = !1, st(this._animRequest), V(document, "touchmove", this._onTouchMove, this), V(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
|
|
5256
5256
|
}
|
|
5257
5257
|
});
|
|
5258
|
-
j.addInitHook("addHandler", "touchZoom", lo), j.BoxZoom = io, j.DoubleClickZoom = no, j.Drag = oo, j.Keyboard = ro, j.ScrollWheelZoom = so, j.TapHold = ao, j.TouchZoom = lo, c.Bounds = Y, c.Browser = S, c.CRS = xt, c.Canvas = $n, c.Circle = Mi, c.CircleMarker = Me, c.Class = bt, c.Control = _t, c.DivIcon = Jn, c.DivOverlay = Lt, c.DomEvent = Or, c.DomUtil = Sr, c.Draggable = St, c.Evented = te, c.FeatureGroup = Pt, c.GeoJSON =
|
|
5258
|
+
j.addInitHook("addHandler", "touchZoom", lo), j.BoxZoom = io, j.DoubleClickZoom = no, j.Drag = oo, j.Keyboard = ro, j.ScrollWheelZoom = so, j.TapHold = ao, j.TouchZoom = lo, c.Bounds = Y, c.Browser = S, c.CRS = xt, c.Canvas = $n, c.Circle = Mi, c.CircleMarker = Me, c.Class = bt, c.Control = _t, c.DivIcon = Jn, c.DivOverlay = Lt, c.DomEvent = Or, c.DomUtil = Sr, c.Draggable = St, c.Evented = te, c.FeatureGroup = Pt, c.GeoJSON = Tt, c.GridLayer = de, c.Handler = yt, c.Icon = Vt, c.ImageOverlay = Oe, c.LatLng = W, c.LatLngBounds = ht, c.Layer = mt, c.LayerGroup = Kt, c.LineUtil = qr, c.Map = j, c.Marker = Te, c.Mixin = Hr, c.Path = Dt, c.Point = I, c.PolyUtil = Wr, c.Polygon = Jt, c.Polyline = Et, c.Popup = Ae, c.PosAnimation = Sn, c.Projection = Kr, c.Rectangle = eo, c.Renderer = Mt, c.SVG = pe, c.SVGOverlay = Vn, c.TileLayer = Xt, c.Tooltip = Ie, c.Transformation = ei, c.Util = Qo, c.VideoOverlay = Kn, c.bind = h, c.bounds = lt, c.canvas = Qn, c.circle = es, c.circleMarker = ts, c.control = he, c.divIcon = cs, c.extend = n, c.featureGroup = Xr, c.geoJSON = Wn, c.geoJson = os, c.gridLayer = us, c.icon = $r, c.imageOverlay = rs, c.latLng = K, c.latLngBounds = nt, c.layerGroup = Yr, c.map = Ar, c.marker = Qr, c.point = A, c.polygon = ns, c.polyline = is, c.popup = ls, c.rectangle = ps, c.setOptions = E, c.stamp = m, c.svg = to, c.svgOverlay = as, c.tileLayer = Yn, c.tooltip = hs, c.transformation = ee, c.version = d, c.videoOverlay = ss;
|
|
5259
5259
|
var ms = window.L;
|
|
5260
5260
|
c.noConflict = function() {
|
|
5261
5261
|
return window.L = ms, this;
|
|
@@ -5504,9 +5504,9 @@ const Nl = /* @__PURE__ */ Oo(Gs, [["render", Ws]]);
|
|
|
5504
5504
|
var r = this._getTooltipText();
|
|
5505
5505
|
n && this._tooltip.updatePosition(n), this._errorShown || this._tooltip.updateContent(r);
|
|
5506
5506
|
}, _drawGuide: function(n, r) {
|
|
5507
|
-
var h, f, m, _ = Math.floor(Math.sqrt(Math.pow(r.x - n.x, 2) + Math.pow(r.y - n.y, 2))), v = this.options.guidelineDistance, w = this.options.maxGuideLineLength,
|
|
5508
|
-
for (this._guidesContainer || (this._guidesContainer = L.DomUtil.create("div", "leaflet-draw-guides", this._overlayPane));
|
|
5509
|
-
h =
|
|
5507
|
+
var h, f, m, _ = Math.floor(Math.sqrt(Math.pow(r.x - n.x, 2) + Math.pow(r.y - n.y, 2))), v = this.options.guidelineDistance, w = this.options.maxGuideLineLength, T = _ > w ? _ - w : v;
|
|
5508
|
+
for (this._guidesContainer || (this._guidesContainer = L.DomUtil.create("div", "leaflet-draw-guides", this._overlayPane)); T < _; T += this.options.guidelineDistance)
|
|
5509
|
+
h = T / _, f = { x: Math.floor(n.x * (1 - h) + h * r.x), y: Math.floor(n.y * (1 - h) + h * r.y) }, m = L.DomUtil.create("div", "leaflet-draw-guide-dash", this._guidesContainer), m.style.backgroundColor = this._errorShown ? this.options.drawError.color : this.options.shapeOptions.color, L.DomUtil.setPosition(m, f);
|
|
5510
5510
|
}, _updateGuideColor: function(n) {
|
|
5511
5511
|
if (this._guidesContainer)
|
|
5512
5512
|
for (var r = 0, h = this._guidesContainer.childNodes.length; r < h; r++)
|
|
@@ -5963,8 +5963,8 @@ const Nl = /* @__PURE__ */ Oo(Gs, [["render", Ws]]);
|
|
|
5963
5963
|
}, formattedNumber: function(r, h) {
|
|
5964
5964
|
var f = parseFloat(r).toFixed(h), m = L.drawLocal.format && L.drawLocal.format.numeric, _ = m && m.delimiters, v = _ && _.thousands, w = _ && _.decimal;
|
|
5965
5965
|
if (v || w) {
|
|
5966
|
-
var
|
|
5967
|
-
f = v ?
|
|
5966
|
+
var T = f.split(".");
|
|
5967
|
+
f = v ? T[0].replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + v) : T[0], w = w || ".", T.length > 1 && (f = f + w + T[1]);
|
|
5968
5968
|
}
|
|
5969
5969
|
return f;
|
|
5970
5970
|
}, readableArea: function(r, h, v) {
|
|
@@ -6094,8 +6094,8 @@ const Nl = /* @__PURE__ */ Oo(Gs, [["render", Ws]]);
|
|
|
6094
6094
|
this._disposeButton(this._actionButtons[h].button, this._actionButtons[h].callback);
|
|
6095
6095
|
for (this._actionButtons = []; _.firstChild; )
|
|
6096
6096
|
_.removeChild(_.firstChild);
|
|
6097
|
-
for (var
|
|
6098
|
-
"enabled" in v[
|
|
6097
|
+
for (var T = 0; T < w; T++)
|
|
6098
|
+
"enabled" in v[T] && !v[T].enabled || (r = L.DomUtil.create("li", "", _), m = this._createButton({ title: v[T].title, text: v[T].text, container: r, callback: v[T].callback, context: v[T].context }), this._actionButtons.push({ button: m, callback: v[T].callback }));
|
|
6099
6099
|
}, _showActionsToolbar: function() {
|
|
6100
6100
|
var n = this._activeMode.buttonIndex, r = this._lastButtonIndex, h = this._activeMode.button.offsetTop - 1;
|
|
6101
6101
|
this._createActions(this._activeMode.handler), this._actionsContainer.style.top = h + "px", n === 0 && (L.DomUtil.addClass(this._toolbarContainer, "leaflet-draw-toolbar-notop"), L.DomUtil.addClass(this._actionsContainer, "leaflet-draw-actions-top")), n === r && (L.DomUtil.addClass(this._toolbarContainer, "leaflet-draw-toolbar-nobottom"), L.DomUtil.addClass(this._actionsContainer, "leaflet-draw-actions-bottom")), this._actionsContainer.style.display = "block", this._map.fire(L.Draw.Event.TOOLBAROPENED);
|
|
@@ -6439,7 +6439,7 @@ const fa = Gi({
|
|
|
6439
6439
|
const s = U.geoJSON().addTo(this.mapRender);
|
|
6440
6440
|
return this.featuresData.eachLayer((c) => {
|
|
6441
6441
|
s.addLayer(c);
|
|
6442
|
-
}), JSON.stringify(s.toGeoJSON());
|
|
6442
|
+
}), JSON.stringify([s.toGeoJSON()]);
|
|
6443
6443
|
},
|
|
6444
6444
|
triggerSaveEdit() {
|
|
6445
6445
|
var l, c, d;
|
|
@@ -6459,7 +6459,7 @@ const fa = Gi({
|
|
|
6459
6459
|
}, 500);
|
|
6460
6460
|
},
|
|
6461
6461
|
createMap() {
|
|
6462
|
-
var h, f, m, _, v, w,
|
|
6462
|
+
var h, f, m, _, v, w, T, z;
|
|
6463
6463
|
const s = this.configurationMap ? this.configurationMap.iconMarker ? this.configurationMap.iconMarker : this.markerIcon : this.markerIcon;
|
|
6464
6464
|
window.type = !0;
|
|
6465
6465
|
const l = U.map(this.idMap).setView([this.renderCoordinates ? this.renderCoordinates[0] : 0, this.renderCoordinates ? this.renderCoordinates[1] : 0], this.renderCoordinates ? this.renderCoordinates[2] : 0);
|
|
@@ -6470,8 +6470,8 @@ const fa = Gi({
|
|
|
6470
6470
|
icon: U.icon(s),
|
|
6471
6471
|
draggable: this.configurationMap.dragMarker
|
|
6472
6472
|
}).addTo(l);
|
|
6473
|
-
this.markerRender = P, this.getCoodMarker && P.on("dragend", (
|
|
6474
|
-
const D =
|
|
6473
|
+
this.markerRender = P, this.getCoodMarker && P.on("dragend", (E) => {
|
|
6474
|
+
const D = E.target.getLatLng(), N = D.lat, b = D.lng;
|
|
6475
6475
|
this.getCoodMarker && this.getCoodMarker(N, b);
|
|
6476
6476
|
});
|
|
6477
6477
|
}
|
|
@@ -6493,7 +6493,7 @@ const fa = Gi({
|
|
|
6493
6493
|
draw: {
|
|
6494
6494
|
polygon: (w = this.configurationMap) == null ? void 0 : w.createFigures.polygon,
|
|
6495
6495
|
circle: !1,
|
|
6496
|
-
rectangle: (
|
|
6496
|
+
rectangle: (T = this.configurationMap) != null && T.createFigures.rectangle ? {
|
|
6497
6497
|
shapeOptions: {
|
|
6498
6498
|
color: "blue"
|
|
6499
6499
|
}
|
|
@@ -6507,9 +6507,9 @@ const fa = Gi({
|
|
|
6507
6507
|
edit: n
|
|
6508
6508
|
});
|
|
6509
6509
|
l.addControl(r), l.on("draw:created", (P) => {
|
|
6510
|
-
const
|
|
6511
|
-
d.addLayer(
|
|
6512
|
-
const D =
|
|
6510
|
+
const E = P.layer;
|
|
6511
|
+
d.addLayer(E);
|
|
6512
|
+
const D = E.toGeoJSON();
|
|
6513
6513
|
this.getGeoJSON && this.getGeoJSON([D]);
|
|
6514
6514
|
}), l.on("draw:edited", (P) => {
|
|
6515
6515
|
P.layers.eachLayer((D) => {
|
|
@@ -6519,7 +6519,7 @@ const fa = Gi({
|
|
|
6519
6519
|
});
|
|
6520
6520
|
},
|
|
6521
6521
|
viewMap() {
|
|
6522
|
-
var f, m, _, v, w,
|
|
6522
|
+
var f, m, _, v, w, T, z, P;
|
|
6523
6523
|
const s = this.configurationMap ? this.configurationMap.iconMarker ? this.configurationMap.iconMarker : this.markerIcon : this.markerIcon, l = U.map(this.idMap).setView([this.renderCoordinates ? this.renderCoordinates[0] : 0, this.renderCoordinates ? this.renderCoordinates[1] : 0], this.renderCoordinates ? this.renderCoordinates[2] : 0);
|
|
6524
6524
|
this.mapRender = l, U.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
|
|
6525
6525
|
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
|
@@ -6537,10 +6537,28 @@ const fa = Gi({
|
|
|
6537
6537
|
...(v = this.configurationMap) == null ? void 0 : v.editFigures.edit,
|
|
6538
6538
|
remove: (w = this.configurationMap) == null ? void 0 : w.editFigures.remove
|
|
6539
6539
|
});
|
|
6540
|
-
const r =
|
|
6540
|
+
const r = this.renderGeojson;
|
|
6541
|
+
if (r && r.length) {
|
|
6542
|
+
r.forEach((D) => {
|
|
6543
|
+
D.type === "FeatureCollection" ? D.features.forEach((N) => {
|
|
6544
|
+
(N.geometry.type === "Polygon" || N.geometry.type === "MultiPolygon") && U.geoJson(N, {
|
|
6545
|
+
onEachFeature: function(b, M) {
|
|
6546
|
+
d.addLayer(M);
|
|
6547
|
+
}
|
|
6548
|
+
});
|
|
6549
|
+
}) : D.type === "Feature" && (D.geometry.type === "Polygon" || D.geometry.type === "MultiPolygon") && U.geoJson(D, {
|
|
6550
|
+
onEachFeature: function(N, b) {
|
|
6551
|
+
d.addLayer(b);
|
|
6552
|
+
}
|
|
6553
|
+
});
|
|
6554
|
+
});
|
|
6555
|
+
const E = d.getBounds();
|
|
6556
|
+
l.fitBounds(E);
|
|
6557
|
+
}
|
|
6558
|
+
const h = new U.Control.Draw({
|
|
6541
6559
|
position: "topleft",
|
|
6542
6560
|
draw: {
|
|
6543
|
-
polygon: (
|
|
6561
|
+
polygon: (T = this.configurationMap) == null ? void 0 : T.createFigures.polygon,
|
|
6544
6562
|
circle: !1,
|
|
6545
6563
|
rectangle: (z = this.configurationMap) != null && z.createFigures.rectangle ? {
|
|
6546
6564
|
shapeOptions: {
|
|
@@ -6555,24 +6573,13 @@ const fa = Gi({
|
|
|
6555
6573
|
},
|
|
6556
6574
|
edit: n
|
|
6557
6575
|
});
|
|
6558
|
-
l.addControl(
|
|
6559
|
-
|
|
6560
|
-
if (h && h.length) {
|
|
6561
|
-
h.forEach((D) => {
|
|
6562
|
-
D.type === "FeatureCollection" ? D.features.forEach((N) => {
|
|
6563
|
-
(N.geometry.type === "Polygon" || N.geometry.type === "MultiPolygon") && U.geoJSON(N).addTo(d);
|
|
6564
|
-
}) : D.type === "Feature" && (D.geometry.type === "Polygon" || D.geometry.type === "MultiPolygon") && U.geoJSON(D).addTo(d);
|
|
6565
|
-
});
|
|
6566
|
-
const T = d.getBounds();
|
|
6567
|
-
l.fitBounds(T);
|
|
6568
|
-
}
|
|
6569
|
-
l.on("draw:created", (T) => {
|
|
6570
|
-
const D = T.layer;
|
|
6576
|
+
l.addControl(h), l.on("draw:created", (E) => {
|
|
6577
|
+
const D = E.layer;
|
|
6571
6578
|
d.addLayer(D);
|
|
6572
6579
|
const N = D.toGeoJSON();
|
|
6573
6580
|
this.getGeoJSON && this.getGeoJSON(N);
|
|
6574
|
-
}), l.on("draw:edited", (
|
|
6575
|
-
|
|
6581
|
+
}), l.on("draw:edited", (E) => {
|
|
6582
|
+
E.layers.eachLayer((N) => {
|
|
6576
6583
|
const b = N.toGeoJSON();
|
|
6577
6584
|
this.getGeoJSON && this.getGeoJSON(b);
|
|
6578
6585
|
});
|
|
@@ -6595,7 +6602,7 @@ function _a(s, l, c, d, n, r) {
|
|
|
6595
6602
|
var h;
|
|
6596
6603
|
return qi(), Wi("div", {
|
|
6597
6604
|
class: "map-container",
|
|
6598
|
-
style:
|
|
6605
|
+
style: To(`height:${(h = s.configurationMap) == null ? void 0 : h.height}`)
|
|
6599
6606
|
}, [
|
|
6600
6607
|
Mo("div", {
|
|
6601
6608
|
id: s.idMap,
|
|
@@ -6626,10 +6633,10 @@ const ya = Je("string"), pt = Je("function"), Ro = Je("number"), Ye = (s) => s !
|
|
|
6626
6633
|
return !1;
|
|
6627
6634
|
const l = Ji(s);
|
|
6628
6635
|
return (l === null || l === Object.prototype || Object.getPrototypeOf(l) === null) && !(Symbol.toStringTag in s) && !(Symbol.iterator in s);
|
|
6629
|
-
}, wa = kt("Date"), ka = kt("File"), ba = kt("Blob"), xa = kt("FileList"), Pa = (s) => Ye(s) && pt(s.pipe),
|
|
6636
|
+
}, wa = kt("Date"), ka = kt("File"), ba = kt("Blob"), xa = kt("FileList"), Pa = (s) => Ye(s) && pt(s.pipe), Ea = (s) => {
|
|
6630
6637
|
let l;
|
|
6631
6638
|
return s && (typeof FormData == "function" && s instanceof FormData || pt(s.append) && ((l = Ve(s)) === "formdata" || l === "object" && pt(s.toString) && s.toString() === "[object FormData]"));
|
|
6632
|
-
},
|
|
6639
|
+
}, Ta = kt("URLSearchParams"), Ma = (s) => s.trim ? s.trim() : s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
6633
6640
|
function ge(s, l, { allOwnKeys: c = !1 } = {}) {
|
|
6634
6641
|
if (s === null || typeof s > "u")
|
|
6635
6642
|
return;
|
|
@@ -6777,7 +6784,7 @@ const Ka = (s) => {
|
|
|
6777
6784
|
isArray: Qt,
|
|
6778
6785
|
isArrayBuffer: Io,
|
|
6779
6786
|
isBuffer: ga,
|
|
6780
|
-
isFormData:
|
|
6787
|
+
isFormData: Ea,
|
|
6781
6788
|
isArrayBufferView: va,
|
|
6782
6789
|
isString: ya,
|
|
6783
6790
|
isNumber: Ro,
|
|
@@ -6791,7 +6798,7 @@ const Ka = (s) => {
|
|
|
6791
6798
|
isRegExp: Ha,
|
|
6792
6799
|
isFunction: pt,
|
|
6793
6800
|
isStream: Pa,
|
|
6794
|
-
isURLSearchParams:
|
|
6801
|
+
isURLSearchParams: Ta,
|
|
6795
6802
|
isTypedArray: Ia,
|
|
6796
6803
|
isFileList: xa,
|
|
6797
6804
|
forEach: ge,
|
|
@@ -6896,8 +6903,8 @@ function Xe(s, l, c) {
|
|
|
6896
6903
|
metaTokens: !0,
|
|
6897
6904
|
dots: !1,
|
|
6898
6905
|
indexes: !1
|
|
6899
|
-
}, !1, function(
|
|
6900
|
-
return !k.isUndefined(D[
|
|
6906
|
+
}, !1, function(E, D) {
|
|
6907
|
+
return !k.isUndefined(D[E]);
|
|
6901
6908
|
});
|
|
6902
6909
|
const d = c.metaTokens, n = c.visitor || v, r = c.dots, h = c.indexes, m = (c.Blob || typeof Blob < "u" && Blob) && k.isSpecCompliantForm(l);
|
|
6903
6910
|
if (!k.isFunction(n))
|
|
@@ -6911,38 +6918,38 @@ function Xe(s, l, c) {
|
|
|
6911
6918
|
throw new G("Blob is not supported. Use a Buffer instead.");
|
|
6912
6919
|
return k.isArrayBuffer(P) || k.isTypedArray(P) ? m && typeof Blob == "function" ? new Blob([P]) : Buffer.from(P) : P;
|
|
6913
6920
|
}
|
|
6914
|
-
function v(P,
|
|
6921
|
+
function v(P, E, D) {
|
|
6915
6922
|
let N = P;
|
|
6916
6923
|
if (P && !D && typeof P == "object") {
|
|
6917
|
-
if (k.endsWith(
|
|
6918
|
-
|
|
6919
|
-
else if (k.isArray(P) && Xa(P) || (k.isFileList(P) || k.endsWith(
|
|
6920
|
-
return
|
|
6924
|
+
if (k.endsWith(E, "{}"))
|
|
6925
|
+
E = d ? E : E.slice(0, -2), P = JSON.stringify(P);
|
|
6926
|
+
else if (k.isArray(P) && Xa(P) || (k.isFileList(P) || k.endsWith(E, "[]")) && (N = k.toArray(P)))
|
|
6927
|
+
return E = Go(E), N.forEach(function(M, Z) {
|
|
6921
6928
|
!(k.isUndefined(M) || M === null) && l.append(
|
|
6922
|
-
h === !0 ? yo([
|
|
6929
|
+
h === !0 ? yo([E], Z, r) : h === null ? E : E + "[]",
|
|
6923
6930
|
_(M)
|
|
6924
6931
|
);
|
|
6925
6932
|
}), !1;
|
|
6926
6933
|
}
|
|
6927
|
-
return Fi(P) ? !0 : (l.append(yo(D,
|
|
6934
|
+
return Fi(P) ? !0 : (l.append(yo(D, E, r), _(P)), !1);
|
|
6928
6935
|
}
|
|
6929
|
-
const w = [],
|
|
6936
|
+
const w = [], T = Object.assign($a, {
|
|
6930
6937
|
defaultVisitor: v,
|
|
6931
6938
|
convertValue: _,
|
|
6932
6939
|
isVisitable: Fi
|
|
6933
6940
|
});
|
|
6934
|
-
function z(P,
|
|
6941
|
+
function z(P, E) {
|
|
6935
6942
|
if (!k.isUndefined(P)) {
|
|
6936
6943
|
if (w.indexOf(P) !== -1)
|
|
6937
|
-
throw Error("Circular reference detected in " +
|
|
6944
|
+
throw Error("Circular reference detected in " + E.join("."));
|
|
6938
6945
|
w.push(P), k.forEach(P, function(N, b) {
|
|
6939
6946
|
(!(k.isUndefined(N) || N === null) && n.call(
|
|
6940
6947
|
l,
|
|
6941
6948
|
N,
|
|
6942
6949
|
k.isString(b) ? b.trim() : b,
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
)) === !0 && z(N,
|
|
6950
|
+
E,
|
|
6951
|
+
T
|
|
6952
|
+
)) === !0 && z(N, E ? E.concat(b) : [b]);
|
|
6946
6953
|
}), w.pop();
|
|
6947
6954
|
}
|
|
6948
6955
|
}
|
|
@@ -7419,13 +7426,13 @@ function bl(s, l) {
|
|
|
7419
7426
|
return l = l !== void 0 ? l : 1e3, function(m) {
|
|
7420
7427
|
const _ = Date.now(), v = d[r];
|
|
7421
7428
|
h || (h = _), c[n] = m, d[n] = _;
|
|
7422
|
-
let w = r,
|
|
7429
|
+
let w = r, T = 0;
|
|
7423
7430
|
for (; w !== n; )
|
|
7424
|
-
|
|
7431
|
+
T += c[w++], w = w % s;
|
|
7425
7432
|
if (n = (n + 1) % s, n === r && (r = (r + 1) % s), _ - h < l)
|
|
7426
7433
|
return;
|
|
7427
7434
|
const z = v && _ - v;
|
|
7428
|
-
return z ? Math.round(
|
|
7435
|
+
return z ? Math.round(T * 1e3 / z) : void 0;
|
|
7429
7436
|
};
|
|
7430
7437
|
}
|
|
7431
7438
|
function bo(s, l) {
|
|
@@ -7467,7 +7474,7 @@ const xl = typeof XMLHttpRequest < "u", Pl = xl && function(s) {
|
|
|
7467
7474
|
return;
|
|
7468
7475
|
const z = Ct.from(
|
|
7469
7476
|
"getAllResponseHeaders" in _ && _.getAllResponseHeaders()
|
|
7470
|
-
),
|
|
7477
|
+
), E = {
|
|
7471
7478
|
data: !h || h === "text" || h === "json" ? _.responseText : _.response,
|
|
7472
7479
|
status: _.status,
|
|
7473
7480
|
statusText: _.statusText,
|
|
@@ -7479,7 +7486,7 @@ const xl = typeof XMLHttpRequest < "u", Pl = xl && function(s) {
|
|
|
7479
7486
|
c(N), m();
|
|
7480
7487
|
}, function(N) {
|
|
7481
7488
|
d(N), m();
|
|
7482
|
-
},
|
|
7489
|
+
}, E), _ = null;
|
|
7483
7490
|
}
|
|
7484
7491
|
if ("onloadend" in _ ? _.onloadend = w : _.onreadystatechange = function() {
|
|
7485
7492
|
!_ || _.readyState !== 4 || _.status === 0 && !(_.responseURL && _.responseURL.indexOf("file:") === 0) || setTimeout(w);
|
|
@@ -7489,10 +7496,10 @@ const xl = typeof XMLHttpRequest < "u", Pl = xl && function(s) {
|
|
|
7489
7496
|
d(new G("Network Error", G.ERR_NETWORK, s, _)), _ = null;
|
|
7490
7497
|
}, _.ontimeout = function() {
|
|
7491
7498
|
let P = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
7492
|
-
const
|
|
7499
|
+
const E = s.transitional || Ko;
|
|
7493
7500
|
s.timeoutErrorMessage && (P = s.timeoutErrorMessage), d(new G(
|
|
7494
7501
|
P,
|
|
7495
|
-
|
|
7502
|
+
E.clarifyTimeoutError ? G.ETIMEDOUT : G.ECONNABORTED,
|
|
7496
7503
|
s,
|
|
7497
7504
|
_
|
|
7498
7505
|
)), _ = null;
|
|
@@ -7500,14 +7507,14 @@ const xl = typeof XMLHttpRequest < "u", Pl = xl && function(s) {
|
|
|
7500
7507
|
const z = (s.withCredentials || wl(v)) && s.xsrfCookieName && vl.read(s.xsrfCookieName);
|
|
7501
7508
|
z && r.set(s.xsrfHeaderName, z);
|
|
7502
7509
|
}
|
|
7503
|
-
n === void 0 && r.setContentType(null), "setRequestHeader" in _ && k.forEach(r.toJSON(), function(P,
|
|
7504
|
-
_.setRequestHeader(
|
|
7510
|
+
n === void 0 && r.setContentType(null), "setRequestHeader" in _ && k.forEach(r.toJSON(), function(P, E) {
|
|
7511
|
+
_.setRequestHeader(E, P);
|
|
7505
7512
|
}), k.isUndefined(s.withCredentials) || (_.withCredentials = !!s.withCredentials), h && h !== "json" && (_.responseType = s.responseType), typeof s.onDownloadProgress == "function" && _.addEventListener("progress", bo(s.onDownloadProgress, !0)), typeof s.onUploadProgress == "function" && _.upload && _.upload.addEventListener("progress", bo(s.onUploadProgress)), (s.cancelToken || s.signal) && (f = (z) => {
|
|
7506
7513
|
_ && (d(!z || z.type ? new ve(null, s, _) : z), _.abort(), _ = null);
|
|
7507
7514
|
}, s.cancelToken && s.cancelToken.subscribe(f), s.signal && (s.signal.aborted ? f() : s.signal.addEventListener("abort", f)));
|
|
7508
|
-
const
|
|
7509
|
-
if (
|
|
7510
|
-
d(new G("Unsupported protocol " +
|
|
7515
|
+
const T = kl(v);
|
|
7516
|
+
if (T && wt.protocols.indexOf(T) === -1) {
|
|
7517
|
+
d(new G("Unsupported protocol " + T + ":", G.ERR_BAD_REQUEST, s));
|
|
7511
7518
|
return;
|
|
7512
7519
|
}
|
|
7513
7520
|
_.send(n || null);
|
|
@@ -7525,7 +7532,7 @@ k.forEach(Ue, (s, l) => {
|
|
|
7525
7532
|
Object.defineProperty(s, "adapterName", { value: l });
|
|
7526
7533
|
}
|
|
7527
7534
|
});
|
|
7528
|
-
const
|
|
7535
|
+
const El = {
|
|
7529
7536
|
getAdapter: (s) => {
|
|
7530
7537
|
s = k.isArray(s) ? s : [s];
|
|
7531
7538
|
const { length: l } = s;
|
|
@@ -7553,7 +7560,7 @@ function xo(s) {
|
|
|
7553
7560
|
return Bi(s), s.headers = Ct.from(s.headers), s.data = Ri.call(
|
|
7554
7561
|
s,
|
|
7555
7562
|
s.transformRequest
|
|
7556
|
-
), ["post", "put", "patch"].indexOf(s.method) !== -1 && s.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
7563
|
+
), ["post", "put", "patch"].indexOf(s.method) !== -1 && s.headers.setContentType("application/x-www-form-urlencoded", !1), El.getAdapter(s.adapter || Xi.adapter)(s).then(function(d) {
|
|
7557
7564
|
return Bi(s), d.data = Ri.call(
|
|
7558
7565
|
s,
|
|
7559
7566
|
s.transformResponse,
|
|
@@ -7629,8 +7636,8 @@ function $t(s, l) {
|
|
|
7629
7636
|
headers: (_, v) => n(Po(_), Po(v), !0)
|
|
7630
7637
|
};
|
|
7631
7638
|
return k.forEach(Object.keys(Object.assign({}, s, l)), function(v) {
|
|
7632
|
-
const w = m[v] || n,
|
|
7633
|
-
k.isUndefined(
|
|
7639
|
+
const w = m[v] || n, T = w(s[v], l[v], v);
|
|
7640
|
+
k.isUndefined(T) && w !== f || (c[v] = T);
|
|
7634
7641
|
}), c;
|
|
7635
7642
|
}
|
|
7636
7643
|
const Xo = "1.4.0", $i = {};
|
|
@@ -7639,7 +7646,7 @@ const Xo = "1.4.0", $i = {};
|
|
|
7639
7646
|
return typeof d === s || "a" + (l < 1 ? "n " : " ") + s;
|
|
7640
7647
|
};
|
|
7641
7648
|
});
|
|
7642
|
-
const
|
|
7649
|
+
const Eo = {};
|
|
7643
7650
|
$i.transitional = function(l, c, d) {
|
|
7644
7651
|
function n(r, h) {
|
|
7645
7652
|
return "[Axios v" + Xo + "] Transitional option '" + r + "'" + h + (d ? ". " + d : "");
|
|
@@ -7650,7 +7657,7 @@ $i.transitional = function(l, c, d) {
|
|
|
7650
7657
|
n(h, " has been removed" + (c ? " in " + c : "")),
|
|
7651
7658
|
G.ERR_DEPRECATED
|
|
7652
7659
|
);
|
|
7653
|
-
return c && !
|
|
7660
|
+
return c && !Eo[h] && (Eo[h] = !0, console.warn(
|
|
7654
7661
|
n(
|
|
7655
7662
|
h,
|
|
7656
7663
|
" has been deprecated since v" + c + " and will be removed in the near future"
|
|
@@ -7658,7 +7665,7 @@ $i.transitional = function(l, c, d) {
|
|
|
7658
7665
|
)), l ? l(r, h, f) : !0;
|
|
7659
7666
|
};
|
|
7660
7667
|
};
|
|
7661
|
-
function
|
|
7668
|
+
function Tl(s, l, c) {
|
|
7662
7669
|
if (typeof s != "object")
|
|
7663
7670
|
throw new G("options must be an object", G.ERR_BAD_OPTION_VALUE);
|
|
7664
7671
|
const d = Object.keys(s);
|
|
@@ -7676,7 +7683,7 @@ function El(s, l, c) {
|
|
|
7676
7683
|
}
|
|
7677
7684
|
}
|
|
7678
7685
|
const Ui = {
|
|
7679
|
-
assertOptions:
|
|
7686
|
+
assertOptions: Tl,
|
|
7680
7687
|
validators: $i
|
|
7681
7688
|
}, At = Ui.validators;
|
|
7682
7689
|
class Ke {
|
|
@@ -7711,28 +7718,28 @@ class Ke {
|
|
|
7711
7718
|
), c.headers = Ct.concat(h, r);
|
|
7712
7719
|
const f = [];
|
|
7713
7720
|
let m = !0;
|
|
7714
|
-
this.interceptors.request.forEach(function(
|
|
7715
|
-
typeof
|
|
7721
|
+
this.interceptors.request.forEach(function(E) {
|
|
7722
|
+
typeof E.runWhen == "function" && E.runWhen(c) === !1 || (m = m && E.synchronous, f.unshift(E.fulfilled, E.rejected));
|
|
7716
7723
|
});
|
|
7717
7724
|
const _ = [];
|
|
7718
|
-
this.interceptors.response.forEach(function(
|
|
7719
|
-
_.push(
|
|
7725
|
+
this.interceptors.response.forEach(function(E) {
|
|
7726
|
+
_.push(E.fulfilled, E.rejected);
|
|
7720
7727
|
});
|
|
7721
|
-
let v, w = 0,
|
|
7728
|
+
let v, w = 0, T;
|
|
7722
7729
|
if (!m) {
|
|
7723
7730
|
const P = [xo.bind(this), void 0];
|
|
7724
|
-
for (P.unshift.apply(P, f), P.push.apply(P, _),
|
|
7731
|
+
for (P.unshift.apply(P, f), P.push.apply(P, _), T = P.length, v = Promise.resolve(c); w < T; )
|
|
7725
7732
|
v = v.then(P[w++], P[w++]);
|
|
7726
7733
|
return v;
|
|
7727
7734
|
}
|
|
7728
|
-
|
|
7735
|
+
T = f.length;
|
|
7729
7736
|
let z = c;
|
|
7730
|
-
for (w = 0; w <
|
|
7731
|
-
const P = f[w++],
|
|
7737
|
+
for (w = 0; w < T; ) {
|
|
7738
|
+
const P = f[w++], E = f[w++];
|
|
7732
7739
|
try {
|
|
7733
7740
|
z = P(z);
|
|
7734
7741
|
} catch (D) {
|
|
7735
|
-
|
|
7742
|
+
E.call(this, D);
|
|
7736
7743
|
break;
|
|
7737
7744
|
}
|
|
7738
7745
|
}
|
|
@@ -7741,7 +7748,7 @@ class Ke {
|
|
|
7741
7748
|
} catch (P) {
|
|
7742
7749
|
return Promise.reject(P);
|
|
7743
7750
|
}
|
|
7744
|
-
for (w = 0,
|
|
7751
|
+
for (w = 0, T = _.length; w < T; )
|
|
7745
7752
|
v = v.then(_[w++], _[w++]);
|
|
7746
7753
|
return v;
|
|
7747
7754
|
}
|
|
@@ -7962,24 +7969,24 @@ const Dl = et, Ol = ["id"], Hl = /* @__PURE__ */ Gi({
|
|
|
7962
7969
|
await m(10), await _();
|
|
7963
7970
|
});
|
|
7964
7971
|
const m = async (P) => {
|
|
7965
|
-
let
|
|
7972
|
+
let E = "";
|
|
7966
7973
|
const D = "abcdefghijklmnopqrstuvwxyz", N = D.length;
|
|
7967
7974
|
let b = 0;
|
|
7968
7975
|
for (; b < P; )
|
|
7969
|
-
|
|
7970
|
-
n.value =
|
|
7976
|
+
E += D.charAt(Math.floor(Math.random() * N)), b += 1;
|
|
7977
|
+
n.value = E;
|
|
7971
7978
|
}, _ = async () => {
|
|
7972
7979
|
await v();
|
|
7973
7980
|
}, v = async () => {
|
|
7974
7981
|
var D, N;
|
|
7975
|
-
const P = (D = d.configurationMap) == null ? void 0 : D.iconMarker,
|
|
7982
|
+
const P = (D = d.configurationMap) == null ? void 0 : D.iconMarker, E = U.map(n.value).setView(
|
|
7976
7983
|
[r.value.lat, r.value.lng],
|
|
7977
7984
|
r.value.zoom
|
|
7978
7985
|
);
|
|
7979
|
-
if (h.value =
|
|
7986
|
+
if (h.value = E, U.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
|
|
7980
7987
|
maxZoom: (N = d.configurationMap) == null ? void 0 : N.maxZoom,
|
|
7981
7988
|
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
|
7982
|
-
}).addTo(
|
|
7989
|
+
}).addTo(E), P.type === "image") {
|
|
7983
7990
|
const b = U.marker([r.value.lat, r.value.lng], {
|
|
7984
7991
|
icon: U.icon({
|
|
7985
7992
|
iconUrl: P.iconUrl,
|
|
@@ -7988,10 +7995,10 @@ const Dl = et, Ol = ["id"], Hl = /* @__PURE__ */ Gi({
|
|
|
7988
7995
|
className: P.class
|
|
7989
7996
|
}),
|
|
7990
7997
|
draggable: d.configurationMap.dragMarker
|
|
7991
|
-
}).addTo(
|
|
7998
|
+
}).addTo(E);
|
|
7992
7999
|
f.value = b, b.on("dragend", (M) => {
|
|
7993
8000
|
const Z = M.target.getLatLng(), F = Z.lat, J = Z.lng;
|
|
7994
|
-
|
|
8001
|
+
T({
|
|
7995
8002
|
lat: F,
|
|
7996
8003
|
lng: J
|
|
7997
8004
|
});
|
|
@@ -8005,17 +8012,17 @@ const Dl = et, Ol = ["id"], Hl = /* @__PURE__ */ Gi({
|
|
|
8005
8012
|
className: P.class
|
|
8006
8013
|
}),
|
|
8007
8014
|
draggable: d.configurationMap.dragMarker
|
|
8008
|
-
}).addTo(
|
|
8015
|
+
}).addTo(E);
|
|
8009
8016
|
f.value = b, b.on("dragend", (M) => {
|
|
8010
8017
|
const Z = M.target.getLatLng(), F = Z.lat, J = Z.lng;
|
|
8011
|
-
|
|
8018
|
+
T({
|
|
8012
8019
|
lat: F,
|
|
8013
8020
|
lng: J
|
|
8014
8021
|
});
|
|
8015
8022
|
});
|
|
8016
8023
|
}
|
|
8017
8024
|
}, w = async (P) => {
|
|
8018
|
-
const
|
|
8025
|
+
const E = await Dl.get(
|
|
8019
8026
|
location.protocol + "//nominatim.openstreetmap.org/search?",
|
|
8020
8027
|
{
|
|
8021
8028
|
params: {
|
|
@@ -8025,32 +8032,32 @@ const Dl = et, Ol = ["id"], Hl = /* @__PURE__ */ Gi({
|
|
|
8025
8032
|
}
|
|
8026
8033
|
}
|
|
8027
8034
|
);
|
|
8028
|
-
if (
|
|
8029
|
-
const D = parseFloat(
|
|
8030
|
-
return
|
|
8035
|
+
if (E.data.length === 1) {
|
|
8036
|
+
const D = parseFloat(E.data[0].lat), b = { lng: parseFloat(E.data[0].lon), lat: D };
|
|
8037
|
+
return T({ ...b, moveMarker: !0 }), E.data[0];
|
|
8031
8038
|
}
|
|
8032
|
-
return
|
|
8033
|
-
},
|
|
8039
|
+
return E.data;
|
|
8040
|
+
}, T = ({
|
|
8034
8041
|
lat: P,
|
|
8035
|
-
lng:
|
|
8042
|
+
lng: E,
|
|
8036
8043
|
moveMarker: D = !1
|
|
8037
8044
|
}) => {
|
|
8038
8045
|
var N;
|
|
8039
8046
|
c("updated:coordsMarker", {
|
|
8040
8047
|
lat: P,
|
|
8041
|
-
lng:
|
|
8042
|
-
}), D && ((N = f.value) == null || N.setLatLng({ lat: P, lng:
|
|
8043
|
-
}, z = ({ lat: P, lng:
|
|
8044
|
-
const D = U.latLng(P,
|
|
8048
|
+
lng: E
|
|
8049
|
+
}), D && ((N = f.value) == null || N.setLatLng({ lat: P, lng: E })), z({ lat: P, lng: E });
|
|
8050
|
+
}, z = ({ lat: P, lng: E }) => {
|
|
8051
|
+
const D = U.latLng(P, E);
|
|
8045
8052
|
h.value.panTo(D, { animate: !0, duration: 0.5 });
|
|
8046
8053
|
};
|
|
8047
8054
|
return l({
|
|
8048
8055
|
searchAddress: w
|
|
8049
|
-
}), (P,
|
|
8056
|
+
}), (P, E) => {
|
|
8050
8057
|
var D;
|
|
8051
8058
|
return qi(), Wi("div", {
|
|
8052
8059
|
class: "map-container",
|
|
8053
|
-
style:
|
|
8060
|
+
style: To(`height:${(D = s.configurationMap) == null ? void 0 : D.height}`)
|
|
8054
8061
|
}, [
|
|
8055
8062
|
Mo("div", {
|
|
8056
8063
|
id: n.value,
|