vue-geojson-view-ts 1.3.15 → 1.3.16
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 +433 -423
- package/dist/vue-geojson-view-ts.umd.cjs +11 -11
- package/package.json +1 -1
- package/src/components/MapView.vue +25 -2
|
@@ -64,8 +64,8 @@ function pd() {
|
|
|
64
64
|
function y() {
|
|
65
65
|
}
|
|
66
66
|
return function(x) {
|
|
67
|
-
var
|
|
68
|
-
return y.prototype = x,
|
|
67
|
+
var b;
|
|
68
|
+
return y.prototype = x, b = new y(), y.prototype = null, b;
|
|
69
69
|
};
|
|
70
70
|
}(), c = {}, d = c.lib = {}, f = d.Base = function() {
|
|
71
71
|
return {
|
|
@@ -196,15 +196,15 @@ function pd() {
|
|
|
196
196
|
* wordArray1.concat(wordArray2);
|
|
197
197
|
*/
|
|
198
198
|
concat: function(y) {
|
|
199
|
-
var x = this.words,
|
|
199
|
+
var x = this.words, b = y.words, T = this.sigBytes, k = y.sigBytes;
|
|
200
200
|
if (this.clamp(), T % 4)
|
|
201
201
|
for (var R = 0; R < k; R++) {
|
|
202
|
-
var I =
|
|
202
|
+
var I = b[R >>> 2] >>> 24 - R % 4 * 8 & 255;
|
|
203
203
|
x[T + R >>> 2] |= I << 24 - (T + R) % 4 * 8;
|
|
204
204
|
}
|
|
205
205
|
else
|
|
206
206
|
for (var z = 0; z < k; z += 4)
|
|
207
|
-
x[T + z >>> 2] =
|
|
207
|
+
x[T + z >>> 2] = b[z >>> 2];
|
|
208
208
|
return this.sigBytes += k, this;
|
|
209
209
|
},
|
|
210
210
|
/**
|
|
@@ -245,7 +245,7 @@ function pd() {
|
|
|
245
245
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
246
246
|
*/
|
|
247
247
|
random: function(y) {
|
|
248
|
-
for (var x = [],
|
|
248
|
+
for (var x = [], b = 0; b < y; b += 4)
|
|
249
249
|
x.push(a());
|
|
250
250
|
return new p.init(x, y);
|
|
251
251
|
}
|
|
@@ -264,7 +264,7 @@ function pd() {
|
|
|
264
264
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
265
265
|
*/
|
|
266
266
|
stringify: function(y) {
|
|
267
|
-
for (var x = y.words,
|
|
267
|
+
for (var x = y.words, b = y.sigBytes, T = [], k = 0; k < b; k++) {
|
|
268
268
|
var R = x[k >>> 2] >>> 24 - k % 4 * 8 & 255;
|
|
269
269
|
T.push((R >>> 4).toString(16)), T.push((R & 15).toString(16));
|
|
270
270
|
}
|
|
@@ -284,9 +284,9 @@ function pd() {
|
|
|
284
284
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
285
285
|
*/
|
|
286
286
|
parse: function(y) {
|
|
287
|
-
for (var x = y.length,
|
|
288
|
-
|
|
289
|
-
return new p.init(
|
|
287
|
+
for (var x = y.length, b = [], T = 0; T < x; T += 2)
|
|
288
|
+
b[T >>> 3] |= parseInt(y.substr(T, 2), 16) << 24 - T % 8 * 4;
|
|
289
|
+
return new p.init(b, x / 2);
|
|
290
290
|
}
|
|
291
291
|
}, E = m.Latin1 = {
|
|
292
292
|
/**
|
|
@@ -303,7 +303,7 @@ function pd() {
|
|
|
303
303
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
304
304
|
*/
|
|
305
305
|
stringify: function(y) {
|
|
306
|
-
for (var x = y.words,
|
|
306
|
+
for (var x = y.words, b = y.sigBytes, T = [], k = 0; k < b; k++) {
|
|
307
307
|
var R = x[k >>> 2] >>> 24 - k % 4 * 8 & 255;
|
|
308
308
|
T.push(String.fromCharCode(R));
|
|
309
309
|
}
|
|
@@ -323,11 +323,11 @@ function pd() {
|
|
|
323
323
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
324
324
|
*/
|
|
325
325
|
parse: function(y) {
|
|
326
|
-
for (var x = y.length,
|
|
327
|
-
|
|
328
|
-
return new p.init(
|
|
326
|
+
for (var x = y.length, b = [], T = 0; T < x; T++)
|
|
327
|
+
b[T >>> 2] |= (y.charCodeAt(T) & 255) << 24 - T % 4 * 8;
|
|
328
|
+
return new p.init(b, x);
|
|
329
329
|
}
|
|
330
|
-
},
|
|
330
|
+
}, C = m.Utf8 = {
|
|
331
331
|
/**
|
|
332
332
|
* Converts a word array to a UTF-8 string.
|
|
333
333
|
*
|
|
@@ -386,7 +386,7 @@ function pd() {
|
|
|
386
386
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
387
387
|
*/
|
|
388
388
|
_append: function(y) {
|
|
389
|
-
typeof y == "string" && (y =
|
|
389
|
+
typeof y == "string" && (y = C.parse(y)), this._data.concat(y), this._nDataBytes += y.sigBytes;
|
|
390
390
|
},
|
|
391
391
|
/**
|
|
392
392
|
* Processes available data blocks.
|
|
@@ -403,13 +403,13 @@ function pd() {
|
|
|
403
403
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
404
404
|
*/
|
|
405
405
|
_process: function(y) {
|
|
406
|
-
var x,
|
|
406
|
+
var x, b = this._data, T = b.words, k = b.sigBytes, R = this.blockSize, I = R * 4, z = k / I;
|
|
407
407
|
y ? z = n.ceil(z) : z = n.max((z | 0) - this._minBufferSize, 0);
|
|
408
408
|
var G = z * R, j = n.min(G * 4, k);
|
|
409
409
|
if (G) {
|
|
410
410
|
for (var W = 0; W < G; W += R)
|
|
411
411
|
this._doProcessBlock(T, W);
|
|
412
|
-
x = T.splice(0, G),
|
|
412
|
+
x = T.splice(0, G), b.sigBytes -= j;
|
|
413
413
|
}
|
|
414
414
|
return new p.init(x, j);
|
|
415
415
|
},
|
|
@@ -504,8 +504,8 @@ function pd() {
|
|
|
504
504
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
505
505
|
*/
|
|
506
506
|
_createHelper: function(y) {
|
|
507
|
-
return function(x,
|
|
508
|
-
return new y.init(
|
|
507
|
+
return function(x, b) {
|
|
508
|
+
return new y.init(b).finalize(x);
|
|
509
509
|
};
|
|
510
510
|
},
|
|
511
511
|
/**
|
|
@@ -522,8 +522,8 @@ function pd() {
|
|
|
522
522
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
523
523
|
*/
|
|
524
524
|
_createHmacHelper: function(y) {
|
|
525
|
-
return function(x,
|
|
526
|
-
return new S.HMAC.init(y,
|
|
525
|
+
return function(x, b) {
|
|
526
|
+
return new S.HMAC.init(y, b).finalize(x);
|
|
527
527
|
};
|
|
528
528
|
}
|
|
529
529
|
});
|
|
@@ -558,7 +558,7 @@ function pd() {
|
|
|
558
558
|
var d = c.words, f = c.sigBytes, p = this._map;
|
|
559
559
|
c.clamp();
|
|
560
560
|
for (var m = [], v = 0; v < f; v += 3)
|
|
561
|
-
for (var E = d[v >>> 2] >>> 24 - v % 4 * 8 & 255,
|
|
561
|
+
for (var E = d[v >>> 2] >>> 24 - v % 4 * 8 & 255, C = d[v + 1 >>> 2] >>> 24 - (v + 1) % 4 * 8 & 255, M = d[v + 2 >>> 2] >>> 24 - (v + 2) % 4 * 8 & 255, S = E << 16 | C << 8 | M, y = 0; y < 4 && v + y * 0.75 < f; y++)
|
|
562
562
|
m.push(p.charAt(S >>> 6 * (3 - y) & 63));
|
|
563
563
|
var x = p.charAt(64);
|
|
564
564
|
if (x)
|
|
@@ -598,7 +598,7 @@ function pd() {
|
|
|
598
598
|
function h(c, d, f) {
|
|
599
599
|
for (var p = [], m = 0, v = 0; v < d; v++)
|
|
600
600
|
if (v % 4) {
|
|
601
|
-
var E = f[c.charCodeAt(v - 1)] << v % 4 * 2,
|
|
601
|
+
var E = f[c.charCodeAt(v - 1)] << v % 4 * 2, C = f[c.charCodeAt(v)] >>> 6 - v % 4 * 2, M = E | C;
|
|
602
602
|
p[m >>> 2] |= M << 24 - m % 4 * 8, m++;
|
|
603
603
|
}
|
|
604
604
|
return s.create(p, m);
|
|
@@ -748,7 +748,7 @@ function vd() {
|
|
|
748
748
|
function E(o) {
|
|
749
749
|
return v(o).split(/\s+/);
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function C(o, l) {
|
|
752
752
|
Object.prototype.hasOwnProperty.call(o, "options") || (o.options = o.options ? s(o.options) : {});
|
|
753
753
|
for (var u in l)
|
|
754
754
|
o.options[u] = l[u];
|
|
@@ -772,7 +772,7 @@ function vd() {
|
|
|
772
772
|
var x = Array.isArray || function(o) {
|
|
773
773
|
return Object.prototype.toString.call(o) === "[object Array]";
|
|
774
774
|
};
|
|
775
|
-
function
|
|
775
|
+
function b(o, l) {
|
|
776
776
|
for (var u = 0; u < o.length; u++)
|
|
777
777
|
if (o[u] === l)
|
|
778
778
|
return u;
|
|
@@ -814,11 +814,11 @@ function vd() {
|
|
|
814
814
|
formatNum: m,
|
|
815
815
|
trim: v,
|
|
816
816
|
splitWords: E,
|
|
817
|
-
setOptions:
|
|
817
|
+
setOptions: C,
|
|
818
818
|
getParamString: M,
|
|
819
819
|
template: y,
|
|
820
820
|
isArray: x,
|
|
821
|
-
indexOf:
|
|
821
|
+
indexOf: b,
|
|
822
822
|
emptyImageUrl: T,
|
|
823
823
|
requestFn: z,
|
|
824
824
|
cancelFn: G,
|
|
@@ -829,7 +829,7 @@ function vd() {
|
|
|
829
829
|
}
|
|
830
830
|
J.extend = function(o) {
|
|
831
831
|
var l = function() {
|
|
832
|
-
|
|
832
|
+
C(this), this.initialize && this.initialize.apply(this, arguments), this.callInitHooks();
|
|
833
833
|
}, u = l.__super__ = this.prototype, g = s(u);
|
|
834
834
|
g.constructor = l, l.prototype = g;
|
|
835
835
|
for (var _ in this)
|
|
@@ -1924,7 +1924,7 @@ function vd() {
|
|
|
1924
1924
|
Sa(o, _, l[_], u);
|
|
1925
1925
|
else if (l = E(l), arguments.length === 2)
|
|
1926
1926
|
Jh(o, function(A) {
|
|
1927
|
-
return
|
|
1927
|
+
return b(l, A) !== -1;
|
|
1928
1928
|
});
|
|
1929
1929
|
else
|
|
1930
1930
|
for (var w = 0, P = l.length; w < P; w++)
|
|
@@ -2157,7 +2157,7 @@ function vd() {
|
|
|
2157
2157
|
trackResize: !0
|
|
2158
2158
|
},
|
|
2159
2159
|
initialize: function(o, l) {
|
|
2160
|
-
l =
|
|
2160
|
+
l = C(this, l), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(o), this._initLayout(), this._onResize = a(this._onResize, this), this._initEvents(), l.maxBounds && this.setMaxBounds(l.maxBounds), l.zoom !== void 0 && (this._zoom = this._limitZoom(l.zoom)), l.center && l.zoom !== void 0 && this.setView(at(l.center), l.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = wr && q.any3d && !q.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), ht(this._proxy, Vh, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
|
|
2161
2161
|
},
|
|
2162
2162
|
// @section Methods for modifying map state
|
|
2163
2163
|
// @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
|
|
@@ -2789,7 +2789,7 @@ function vd() {
|
|
|
2789
2789
|
D.containerPoint = N ? this.latLngToContainerPoint(A.getLatLng()) : this.mouseEventToContainerPoint(o), D.layerPoint = this.containerPointToLayerPoint(D.containerPoint), D.latlng = N ? A.getLatLng() : this.layerPointToLatLng(D.layerPoint);
|
|
2790
2790
|
}
|
|
2791
2791
|
for (P = 0; P < _.length; P++)
|
|
2792
|
-
if (_[P].fire(l, D, !0), D.originalEvent._stopped || _[P].options.bubblingMouseEvents === !1 &&
|
|
2792
|
+
if (_[P].fire(l, D, !0), D.originalEvent._stopped || _[P].options.bubblingMouseEvents === !1 && b(this._mouseEvents, l) !== -1)
|
|
2793
2793
|
return;
|
|
2794
2794
|
}
|
|
2795
2795
|
},
|
|
@@ -2938,7 +2938,7 @@ function vd() {
|
|
|
2938
2938
|
position: "topright"
|
|
2939
2939
|
},
|
|
2940
2940
|
initialize: function(o) {
|
|
2941
|
-
|
|
2941
|
+
C(this, o);
|
|
2942
2942
|
},
|
|
2943
2943
|
/* @section
|
|
2944
2944
|
* Classes extending L.Control will inherit the following methods:
|
|
@@ -3032,7 +3032,7 @@ function vd() {
|
|
|
3032
3032
|
}
|
|
3033
3033
|
},
|
|
3034
3034
|
initialize: function(o, l, u) {
|
|
3035
|
-
|
|
3035
|
+
C(this, u), this._layerControlInputs = [], this._layers = [], this._lastZIndex = 0, this._handlingClick = !1, this._preventClick = !1;
|
|
3036
3036
|
for (var g in o)
|
|
3037
3037
|
this._addLayer(o[g], g);
|
|
3038
3038
|
for (g in l)
|
|
@@ -3302,7 +3302,7 @@ function vd() {
|
|
|
3302
3302
|
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (q.inlineSvg ? Hg + " " : "") + "Leaflet</a>"
|
|
3303
3303
|
},
|
|
3304
3304
|
initialize: function(o) {
|
|
3305
|
-
|
|
3305
|
+
C(this, o), this._attributions = {};
|
|
3306
3306
|
},
|
|
3307
3307
|
onAdd: function(o) {
|
|
3308
3308
|
o.attributionControl = this, this._container = wt("div", "leaflet-control-attribution"), Tr(this._container);
|
|
@@ -3393,7 +3393,7 @@ function vd() {
|
|
|
3393
3393
|
// @constructor L.Draggable(el: HTMLElement, dragHandle?: HTMLElement, preventOutline?: Boolean, options?: Draggable options)
|
|
3394
3394
|
// Creates a `Draggable` object for moving `el` when you start dragging the `dragHandle` element (equals `el` itself by default).
|
|
3395
3395
|
initialize: function(o, l, u, g) {
|
|
3396
|
-
|
|
3396
|
+
C(this, g), this._element = o, this._dragStartTarget = l || o, this._preventOutline = u;
|
|
3397
3397
|
},
|
|
3398
3398
|
// @method enable()
|
|
3399
3399
|
// Enables the dragging ability
|
|
@@ -3764,7 +3764,7 @@ function vd() {
|
|
|
3764
3764
|
});
|
|
3765
3765
|
var Dn = Oe.extend({
|
|
3766
3766
|
initialize: function(o, l) {
|
|
3767
|
-
|
|
3767
|
+
C(this, l), this._layers = {};
|
|
3768
3768
|
var u, g;
|
|
3769
3769
|
if (o)
|
|
3770
3770
|
for (u = 0, g = o.length; u < g; u++)
|
|
@@ -3934,7 +3934,7 @@ function vd() {
|
|
|
3934
3934
|
crossOrigin: !1
|
|
3935
3935
|
},
|
|
3936
3936
|
initialize: function(o) {
|
|
3937
|
-
|
|
3937
|
+
C(this, o);
|
|
3938
3938
|
},
|
|
3939
3939
|
// @method createIcon(oldIcon?: HTMLElement): HTMLElement
|
|
3940
3940
|
// Called internally when the icon has to be shown, returns a `<img>` HTML element
|
|
@@ -4120,7 +4120,7 @@ function vd() {
|
|
|
4120
4120
|
* In addition to [shared layer methods](#Layer) like `addTo()` and `remove()` and [popup methods](#Popup) like bindPopup() you can also use the following methods:
|
|
4121
4121
|
*/
|
|
4122
4122
|
initialize: function(o, l) {
|
|
4123
|
-
|
|
4123
|
+
C(this, l), this._latlng = at(o);
|
|
4124
4124
|
},
|
|
4125
4125
|
onAdd: function(o) {
|
|
4126
4126
|
this._zoomAnimated = this._zoomAnimated && o.options.markerZoomAnimation, this._zoomAnimated && o.on("zoomanim", this._animateZoom, this), this._initIcon(), this.update();
|
|
@@ -4304,7 +4304,7 @@ function vd() {
|
|
|
4304
4304
|
// @method setStyle(style: Path options): this
|
|
4305
4305
|
// Changes the appearance of a Path based on the options in the `Path options` object.
|
|
4306
4306
|
setStyle: function(o) {
|
|
4307
|
-
return
|
|
4307
|
+
return C(this, o), this._renderer && (this._renderer._updateStyle(this), this.options.stroke && o && Object.prototype.hasOwnProperty.call(o, "weight") && this._updateBounds()), this;
|
|
4308
4308
|
},
|
|
4309
4309
|
// @method bringToFront(): this
|
|
4310
4310
|
// Brings the layer to the top of all path layers.
|
|
@@ -4335,7 +4335,7 @@ function vd() {
|
|
|
4335
4335
|
radius: 10
|
|
4336
4336
|
},
|
|
4337
4337
|
initialize: function(o, l) {
|
|
4338
|
-
|
|
4338
|
+
C(this, l), this._latlng = at(o), this._radius = this.options.radius;
|
|
4339
4339
|
},
|
|
4340
4340
|
// @method setLatLng(latLng: LatLng): this
|
|
4341
4341
|
// Sets the position of a circle marker to a new location.
|
|
@@ -4388,7 +4388,7 @@ function vd() {
|
|
|
4388
4388
|
}
|
|
4389
4389
|
var za = Ps.extend({
|
|
4390
4390
|
initialize: function(o, l, u) {
|
|
4391
|
-
if (typeof l == "number" && (l = i({}, u, { radius: l })),
|
|
4391
|
+
if (typeof l == "number" && (l = i({}, u, { radius: l })), C(this, l), this._latlng = at(o), isNaN(this.options.radius))
|
|
4392
4392
|
throw new Error("Circle radius cannot be NaN");
|
|
4393
4393
|
this._mRadius = this.options.radius;
|
|
4394
4394
|
},
|
|
@@ -4440,7 +4440,7 @@ function vd() {
|
|
|
4440
4440
|
noClip: !1
|
|
4441
4441
|
},
|
|
4442
4442
|
initialize: function(o, l) {
|
|
4443
|
-
|
|
4443
|
+
C(this, l), this._setLatLngs(o);
|
|
4444
4444
|
},
|
|
4445
4445
|
// @method getLatLngs(): LatLng[]
|
|
4446
4446
|
// Returns an array of the points in the path, or nested arrays of points in case of multi-polyline.
|
|
@@ -4665,7 +4665,7 @@ function vd() {
|
|
|
4665
4665
|
* Whether default Markers for "Point" type Features inherit from group options.
|
|
4666
4666
|
*/
|
|
4667
4667
|
initialize: function(o, l) {
|
|
4668
|
-
|
|
4668
|
+
C(this, l), this._layers = {}, o && this.addData(o);
|
|
4669
4669
|
},
|
|
4670
4670
|
// @method addData( <GeoJSON> data ): this
|
|
4671
4671
|
// Adds a GeoJSON object to the layer.
|
|
@@ -4858,7 +4858,7 @@ function vd() {
|
|
|
4858
4858
|
className: ""
|
|
4859
4859
|
},
|
|
4860
4860
|
initialize: function(o, l, u) {
|
|
4861
|
-
this._url = o, this._bounds = $(l),
|
|
4861
|
+
this._url = o, this._bounds = $(l), C(this, u);
|
|
4862
4862
|
},
|
|
4863
4863
|
onAdd: function() {
|
|
4864
4864
|
this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (ut(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
|
|
@@ -5031,7 +5031,7 @@ function vd() {
|
|
|
5031
5031
|
content: ""
|
|
5032
5032
|
},
|
|
5033
5033
|
initialize: function(o, l) {
|
|
5034
|
-
o && (o instanceof tt || x(o)) ? (this._latlng = at(o),
|
|
5034
|
+
o && (o instanceof tt || x(o)) ? (this._latlng = at(o), C(this, l)) : (C(this, o), this._source = l), this.options.content && (this._content = this.options.content);
|
|
5035
5035
|
},
|
|
5036
5036
|
// @method openOn(map: Map): this
|
|
5037
5037
|
// Adds the overlay to the map.
|
|
@@ -5174,7 +5174,7 @@ function vd() {
|
|
|
5174
5174
|
}), Oe.include({
|
|
5175
5175
|
_initOverlay: function(o, l, u, g) {
|
|
5176
5176
|
var _ = u;
|
|
5177
|
-
return _ instanceof o ? (
|
|
5177
|
+
return _ instanceof o ? (C(_, g), _._source = this) : (_ = l && !g ? l : new o(g, this), _.setContent(u)), _;
|
|
5178
5178
|
}
|
|
5179
5179
|
});
|
|
5180
5180
|
var Os = Ye.extend({
|
|
@@ -5640,7 +5640,7 @@ function vd() {
|
|
|
5640
5640
|
keepBuffer: 2
|
|
5641
5641
|
},
|
|
5642
5642
|
initialize: function(o) {
|
|
5643
|
-
|
|
5643
|
+
C(this, o);
|
|
5644
5644
|
},
|
|
5645
5645
|
onAdd: function() {
|
|
5646
5646
|
this._initContainer(), this._levels = {}, this._tiles = {}, this._resetView();
|
|
@@ -6024,7 +6024,7 @@ function vd() {
|
|
|
6024
6024
|
referrerPolicy: !1
|
|
6025
6025
|
},
|
|
6026
6026
|
initialize: function(o, l) {
|
|
6027
|
-
this._url = o, l =
|
|
6027
|
+
this._url = o, l = C(this, l), l.detectRetina && q.retina && l.maxZoom > 0 ? (l.tileSize = Math.floor(l.tileSize / 2), l.zoomReverse ? (l.zoomOffset--, l.minZoom = Math.min(l.maxZoom, l.minZoom + 1)) : (l.zoomOffset++, l.maxZoom = Math.max(l.minZoom, l.maxZoom - 1)), l.minZoom = Math.max(0, l.minZoom)) : l.zoomReverse ? l.minZoom = Math.min(l.maxZoom, l.minZoom) : l.maxZoom = Math.max(l.minZoom, l.maxZoom), typeof l.subdomains == "string" && (l.subdomains = l.subdomains.split("")), this.on("tileunload", this._onTileRemove);
|
|
6028
6028
|
},
|
|
6029
6029
|
// @method setUrl(url: String, noRedraw?: Boolean): this
|
|
6030
6030
|
// Updates the layer's URL template and redraws it (unless `noRedraw` is set to `true`).
|
|
@@ -6144,7 +6144,7 @@ function vd() {
|
|
|
6144
6144
|
var u = i({}, this.defaultWmsParams);
|
|
6145
6145
|
for (var g in l)
|
|
6146
6146
|
g in this.options || (u[g] = l[g]);
|
|
6147
|
-
l =
|
|
6147
|
+
l = C(this, l);
|
|
6148
6148
|
var _ = l.detectRetina && q.retina ? 2 : 1, w = this.getTileSize();
|
|
6149
6149
|
u.width = w.x * _, u.height = w.y * _, this.wmsParams = u;
|
|
6150
6150
|
},
|
|
@@ -6177,7 +6177,7 @@ function vd() {
|
|
|
6177
6177
|
padding: 0.1
|
|
6178
6178
|
},
|
|
6179
6179
|
initialize: function(o) {
|
|
6180
|
-
|
|
6180
|
+
C(this, o), c(this), this._layers = this._layers || {};
|
|
6181
6181
|
},
|
|
6182
6182
|
onAdd: function() {
|
|
6183
6183
|
this._container || (this._initContainer(), ut(this._container, "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this._update(), this.on("update", this._updatePaths, this);
|
|
@@ -6989,7 +6989,7 @@ function vd() {
|
|
|
6989
6989
|
this._zooming = !1, W(this._animRequest), St(document, "touchmove", this._onTouchMove, this), St(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));
|
|
6990
6990
|
}
|
|
6991
6991
|
});
|
|
6992
|
-
mt.addInitHook("addHandler", "touchZoom", Ac), mt.BoxZoom = Tc, mt.DoubleClickZoom = Mc, mt.Drag = Sc, mt.Keyboard = Pc, mt.ScrollWheelZoom = kc, mt.TapHold = Rc, mt.TouchZoom = Ac, e.Bounds = ot, e.Browser = q, e.CRS = kt, e.Canvas = Ec, e.Circle = za, e.CircleMarker = Ps, e.Class = J, e.Control = De, e.DivIcon = vc, e.DivOverlay = Ye, e.DomEvent = Gg, e.DomUtil = Ng, e.Draggable = Fi, e.Evented = Z, e.FeatureGroup = ai, e.GeoJSON = hi, e.GridLayer = kr, e.Handler = Xe, e.Icon = On, e.ImageOverlay = Ds, e.LatLng = tt, e.LatLngBounds = xt, e.Layer = Oe, e.LayerGroup = Dn, e.LineUtil = $g, e.Map = mt, e.Marker = Ss, e.Mixin = Yg, e.Path = zi, e.Point = U, e.PolyUtil = Vg, e.Polygon = Fn, e.Polyline = li, e.Popup = Os, e.PosAnimation = ec, e.Projection = tp, e.Rectangle = Cc, e.Renderer = ci, e.SVG = Ar, e.SVGOverlay = yc, e.TileLayer = Nn, e.Tooltip = Fs, e.Transformation = Mi, e.Util = Y, e.VideoOverlay = mc, e.bind = a, e.bounds = F, e.canvas = Lc, e.circle = lp, e.circleMarker = ap, e.control = Mr, e.divIcon = mp, e.extend = i, e.featureGroup = rp, e.geoJSON = _c, e.geoJson = up, e.gridLayer = yp, e.icon = sp, e.imageOverlay = dp, e.latLng = at, e.latLngBounds = $, e.layerGroup = np, e.map = Ug, e.marker = op, e.point = H, e.polygon = cp, e.polyline = hp, e.popup = pp, e.rectangle = wp, e.setOptions =
|
|
6992
|
+
mt.addInitHook("addHandler", "touchZoom", Ac), mt.BoxZoom = Tc, mt.DoubleClickZoom = Mc, mt.Drag = Sc, mt.Keyboard = Pc, mt.ScrollWheelZoom = kc, mt.TapHold = Rc, mt.TouchZoom = Ac, e.Bounds = ot, e.Browser = q, e.CRS = kt, e.Canvas = Ec, e.Circle = za, e.CircleMarker = Ps, e.Class = J, e.Control = De, e.DivIcon = vc, e.DivOverlay = Ye, e.DomEvent = Gg, e.DomUtil = Ng, e.Draggable = Fi, e.Evented = Z, e.FeatureGroup = ai, e.GeoJSON = hi, e.GridLayer = kr, e.Handler = Xe, e.Icon = On, e.ImageOverlay = Ds, e.LatLng = tt, e.LatLngBounds = xt, e.Layer = Oe, e.LayerGroup = Dn, e.LineUtil = $g, e.Map = mt, e.Marker = Ss, e.Mixin = Yg, e.Path = zi, e.Point = U, e.PolyUtil = Vg, e.Polygon = Fn, e.Polyline = li, e.Popup = Os, e.PosAnimation = ec, e.Projection = tp, e.Rectangle = Cc, e.Renderer = ci, e.SVG = Ar, e.SVGOverlay = yc, e.TileLayer = Nn, e.Tooltip = Fs, e.Transformation = Mi, e.Util = Y, e.VideoOverlay = mc, e.bind = a, e.bounds = F, e.canvas = Lc, e.circle = lp, e.circleMarker = ap, e.control = Mr, e.divIcon = mp, e.extend = i, e.featureGroup = rp, e.geoJSON = _c, e.geoJson = up, e.gridLayer = yp, e.icon = sp, e.imageOverlay = dp, e.latLng = at, e.latLngBounds = $, e.layerGroup = np, e.map = Ug, e.marker = op, e.point = H, e.polygon = cp, e.polyline = hp, e.popup = pp, e.rectangle = wp, e.setOptions = C, e.stamp = c, e.svg = bc, e.svgOverlay = gp, e.tileLayer = xc, e.tooltip = _p, e.transformation = Ce, e.version = n, e.videoOverlay = fp;
|
|
6993
6993
|
var Lp = window.L;
|
|
6994
6994
|
e.noConflict = function() {
|
|
6995
6995
|
return window.L = Lp, this;
|
|
@@ -7058,7 +7058,7 @@ var wd = { exports: {} };
|
|
|
7058
7058
|
(function(e, n) {
|
|
7059
7059
|
r.exports = n();
|
|
7060
7060
|
})(Je, function() {
|
|
7061
|
-
function e(y, x,
|
|
7061
|
+
function e(y, x, b, T, k) {
|
|
7062
7062
|
(function R(I, z, G, j, W) {
|
|
7063
7063
|
for (; j > G; ) {
|
|
7064
7064
|
if (j - G > 600) {
|
|
@@ -7074,11 +7074,11 @@ var wd = { exports: {} };
|
|
|
7074
7074
|
}
|
|
7075
7075
|
W(I[G], H) === 0 ? n(I, G, F) : n(I, ++F, j), F <= z && (G = F + 1), z <= F && (j = F - 1);
|
|
7076
7076
|
}
|
|
7077
|
-
})(y, x,
|
|
7077
|
+
})(y, x, b || 0, T || y.length - 1, k || i);
|
|
7078
7078
|
}
|
|
7079
|
-
function n(y, x,
|
|
7079
|
+
function n(y, x, b) {
|
|
7080
7080
|
var T = y[x];
|
|
7081
|
-
y[x] = y[
|
|
7081
|
+
y[x] = y[b], y[b] = T;
|
|
7082
7082
|
}
|
|
7083
7083
|
function i(y, x) {
|
|
7084
7084
|
return y < x ? -1 : y > x ? 1 : 0;
|
|
@@ -7086,20 +7086,20 @@ var wd = { exports: {} };
|
|
|
7086
7086
|
var s = function(y) {
|
|
7087
7087
|
y === void 0 && (y = 9), this._maxEntries = Math.max(4, y), this._minEntries = Math.max(2, Math.ceil(0.4 * this._maxEntries)), this.clear();
|
|
7088
7088
|
};
|
|
7089
|
-
function a(y, x,
|
|
7090
|
-
if (!
|
|
7089
|
+
function a(y, x, b) {
|
|
7090
|
+
if (!b)
|
|
7091
7091
|
return x.indexOf(y);
|
|
7092
7092
|
for (var T = 0; T < x.length; T++)
|
|
7093
|
-
if (
|
|
7093
|
+
if (b(y, x[T]))
|
|
7094
7094
|
return T;
|
|
7095
7095
|
return -1;
|
|
7096
7096
|
}
|
|
7097
7097
|
function h(y, x) {
|
|
7098
7098
|
c(y, 0, y.children.length, x, y);
|
|
7099
7099
|
}
|
|
7100
|
-
function c(y, x,
|
|
7100
|
+
function c(y, x, b, T, k) {
|
|
7101
7101
|
k || (k = M(null)), k.minX = 1 / 0, k.minY = 1 / 0, k.maxX = -1 / 0, k.maxY = -1 / 0;
|
|
7102
|
-
for (var R = x; R <
|
|
7102
|
+
for (var R = x; R < b; R++) {
|
|
7103
7103
|
var I = y.children[R];
|
|
7104
7104
|
d(k, y.leaf ? T(I) : I);
|
|
7105
7105
|
}
|
|
@@ -7123,47 +7123,47 @@ var wd = { exports: {} };
|
|
|
7123
7123
|
function E(y, x) {
|
|
7124
7124
|
return y.minX <= x.minX && y.minY <= x.minY && x.maxX <= y.maxX && x.maxY <= y.maxY;
|
|
7125
7125
|
}
|
|
7126
|
-
function
|
|
7126
|
+
function C(y, x) {
|
|
7127
7127
|
return x.minX <= y.maxX && x.minY <= y.maxY && x.maxX >= y.minX && x.maxY >= y.minY;
|
|
7128
7128
|
}
|
|
7129
7129
|
function M(y) {
|
|
7130
7130
|
return { children: y, height: 1, leaf: !0, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
|
|
7131
7131
|
}
|
|
7132
|
-
function S(y, x,
|
|
7133
|
-
for (var R = [x,
|
|
7134
|
-
if (!((
|
|
7135
|
-
var I = x + Math.ceil((
|
|
7136
|
-
e(y, I, x,
|
|
7132
|
+
function S(y, x, b, T, k) {
|
|
7133
|
+
for (var R = [x, b]; R.length; )
|
|
7134
|
+
if (!((b = R.pop()) - (x = R.pop()) <= T)) {
|
|
7135
|
+
var I = x + Math.ceil((b - x) / T / 2) * T;
|
|
7136
|
+
e(y, I, x, b, k), R.push(x, I, I, b);
|
|
7137
7137
|
}
|
|
7138
7138
|
}
|
|
7139
7139
|
return s.prototype.all = function() {
|
|
7140
7140
|
return this._all(this.data, []);
|
|
7141
7141
|
}, s.prototype.search = function(y) {
|
|
7142
|
-
var x = this.data,
|
|
7143
|
-
if (!
|
|
7144
|
-
return
|
|
7142
|
+
var x = this.data, b = [];
|
|
7143
|
+
if (!C(y, x))
|
|
7144
|
+
return b;
|
|
7145
7145
|
for (var T = this.toBBox, k = []; x; ) {
|
|
7146
7146
|
for (var R = 0; R < x.children.length; R++) {
|
|
7147
7147
|
var I = x.children[R], z = x.leaf ? T(I) : I;
|
|
7148
|
-
|
|
7148
|
+
C(y, z) && (x.leaf ? b.push(I) : E(y, z) ? this._all(I, b) : k.push(I));
|
|
7149
7149
|
}
|
|
7150
7150
|
x = k.pop();
|
|
7151
7151
|
}
|
|
7152
|
-
return
|
|
7152
|
+
return b;
|
|
7153
7153
|
}, s.prototype.collides = function(y) {
|
|
7154
7154
|
var x = this.data;
|
|
7155
|
-
if (!
|
|
7155
|
+
if (!C(y, x))
|
|
7156
7156
|
return !1;
|
|
7157
|
-
for (var
|
|
7157
|
+
for (var b = []; x; ) {
|
|
7158
7158
|
for (var T = 0; T < x.children.length; T++) {
|
|
7159
7159
|
var k = x.children[T], R = x.leaf ? this.toBBox(k) : k;
|
|
7160
|
-
if (
|
|
7160
|
+
if (C(y, R)) {
|
|
7161
7161
|
if (x.leaf || E(y, R))
|
|
7162
7162
|
return !0;
|
|
7163
|
-
|
|
7163
|
+
b.push(k);
|
|
7164
7164
|
}
|
|
7165
7165
|
}
|
|
7166
|
-
x =
|
|
7166
|
+
x = b.pop();
|
|
7167
7167
|
}
|
|
7168
7168
|
return !1;
|
|
7169
7169
|
}, s.prototype.load = function(y) {
|
|
@@ -7174,19 +7174,19 @@ var wd = { exports: {} };
|
|
|
7174
7174
|
this.insert(y[x]);
|
|
7175
7175
|
return this;
|
|
7176
7176
|
}
|
|
7177
|
-
var
|
|
7177
|
+
var b = this._build(y.slice(), 0, y.length - 1, 0);
|
|
7178
7178
|
if (this.data.children.length)
|
|
7179
|
-
if (this.data.height ===
|
|
7180
|
-
this._splitRoot(this.data,
|
|
7179
|
+
if (this.data.height === b.height)
|
|
7180
|
+
this._splitRoot(this.data, b);
|
|
7181
7181
|
else {
|
|
7182
|
-
if (this.data.height <
|
|
7182
|
+
if (this.data.height < b.height) {
|
|
7183
7183
|
var T = this.data;
|
|
7184
|
-
this.data =
|
|
7184
|
+
this.data = b, b = T;
|
|
7185
7185
|
}
|
|
7186
|
-
this._insert(
|
|
7186
|
+
this._insert(b, this.data.height - b.height - 1, !0);
|
|
7187
7187
|
}
|
|
7188
7188
|
else
|
|
7189
|
-
this.data =
|
|
7189
|
+
this.data = b;
|
|
7190
7190
|
return this;
|
|
7191
7191
|
}, s.prototype.insert = function(y) {
|
|
7192
7192
|
return y && this._insert(y, this.data.height - 1), this;
|
|
@@ -7195,13 +7195,13 @@ var wd = { exports: {} };
|
|
|
7195
7195
|
}, s.prototype.remove = function(y, x) {
|
|
7196
7196
|
if (!y)
|
|
7197
7197
|
return this;
|
|
7198
|
-
for (var
|
|
7199
|
-
if (R || (R = z.pop(), T = z[z.length - 1],
|
|
7198
|
+
for (var b, T, k, R = this.data, I = this.toBBox(y), z = [], G = []; R || z.length; ) {
|
|
7199
|
+
if (R || (R = z.pop(), T = z[z.length - 1], b = G.pop(), k = !0), R.leaf) {
|
|
7200
7200
|
var j = a(y, R.children, x);
|
|
7201
7201
|
if (j !== -1)
|
|
7202
7202
|
return R.children.splice(j, 1), z.push(R), this._condense(z), this;
|
|
7203
7203
|
}
|
|
7204
|
-
k || R.leaf || !E(R, I) ? T ? (
|
|
7204
|
+
k || R.leaf || !E(R, I) ? T ? (b++, R = T.children[b], k = !1) : R = null : (z.push(R), G.push(b), b = 0, T = R, R = R.children[0]);
|
|
7205
7205
|
}
|
|
7206
7206
|
return this;
|
|
7207
7207
|
}, s.prototype.toBBox = function(y) {
|
|
@@ -7215,18 +7215,18 @@ var wd = { exports: {} };
|
|
|
7215
7215
|
}, s.prototype.fromJSON = function(y) {
|
|
7216
7216
|
return this.data = y, this;
|
|
7217
7217
|
}, s.prototype._all = function(y, x) {
|
|
7218
|
-
for (var
|
|
7219
|
-
y.leaf ? x.push.apply(x, y.children) :
|
|
7218
|
+
for (var b = []; y; )
|
|
7219
|
+
y.leaf ? x.push.apply(x, y.children) : b.push.apply(b, y.children), y = b.pop();
|
|
7220
7220
|
return x;
|
|
7221
|
-
}, s.prototype._build = function(y, x,
|
|
7222
|
-
var k, R =
|
|
7221
|
+
}, s.prototype._build = function(y, x, b, T) {
|
|
7222
|
+
var k, R = b - x + 1, I = this._maxEntries;
|
|
7223
7223
|
if (R <= I)
|
|
7224
|
-
return h(k = M(y.slice(x,
|
|
7224
|
+
return h(k = M(y.slice(x, b + 1)), this.toBBox), k;
|
|
7225
7225
|
T || (T = Math.ceil(Math.log(R) / Math.log(I)), I = Math.ceil(R / Math.pow(I, T - 1))), (k = M([])).leaf = !1, k.height = T;
|
|
7226
7226
|
var z = Math.ceil(R / I), G = z * Math.ceil(Math.sqrt(I));
|
|
7227
|
-
S(y, x,
|
|
7228
|
-
for (var j = x; j <=
|
|
7229
|
-
var W = Math.min(j + G - 1,
|
|
7227
|
+
S(y, x, b, G, this.compareMinX);
|
|
7228
|
+
for (var j = x; j <= b; j += G) {
|
|
7229
|
+
var W = Math.min(j + G - 1, b);
|
|
7230
7230
|
S(y, j, W, z, this.compareMinY);
|
|
7231
7231
|
for (var Y = j; Y <= W; Y += z) {
|
|
7232
7232
|
var J = Math.min(Y + z - 1, W);
|
|
@@ -7234,8 +7234,8 @@ var wd = { exports: {} };
|
|
|
7234
7234
|
}
|
|
7235
7235
|
}
|
|
7236
7236
|
return h(k, this.toBBox), k;
|
|
7237
|
-
}, s.prototype._chooseSubtree = function(y, x,
|
|
7238
|
-
for (; T.push(x), !x.leaf && T.length - 1 !==
|
|
7237
|
+
}, s.prototype._chooseSubtree = function(y, x, b, T) {
|
|
7238
|
+
for (; T.push(x), !x.leaf && T.length - 1 !== b; ) {
|
|
7239
7239
|
for (var k = 1 / 0, R = 1 / 0, I = void 0, z = 0; z < x.children.length; z++) {
|
|
7240
7240
|
var G = x.children[z], j = m(G), W = (Y = y, J = G, (Math.max(J.maxX, Y.maxX) - Math.min(J.minX, Y.minX)) * (Math.max(J.maxY, Y.maxY) - Math.min(J.minY, Y.minY)) - j);
|
|
7241
7241
|
W < R ? (R = W, k = j < k ? j : k, I = G) : W === R && j < k && (k = j, I = G);
|
|
@@ -7244,44 +7244,44 @@ var wd = { exports: {} };
|
|
|
7244
7244
|
}
|
|
7245
7245
|
var Y, J;
|
|
7246
7246
|
return x;
|
|
7247
|
-
}, s.prototype._insert = function(y, x,
|
|
7248
|
-
var T =
|
|
7247
|
+
}, s.prototype._insert = function(y, x, b) {
|
|
7248
|
+
var T = b ? y : this.toBBox(y), k = [], R = this._chooseSubtree(T, this.data, x, k);
|
|
7249
7249
|
for (R.children.push(y), d(R, T); x >= 0 && k[x].children.length > this._maxEntries; )
|
|
7250
7250
|
this._split(k, x), x--;
|
|
7251
7251
|
this._adjustParentBBoxes(T, k, x);
|
|
7252
7252
|
}, s.prototype._split = function(y, x) {
|
|
7253
|
-
var
|
|
7254
|
-
this._chooseSplitAxis(
|
|
7255
|
-
var R = this._chooseSplitIndex(
|
|
7256
|
-
I.height =
|
|
7253
|
+
var b = y[x], T = b.children.length, k = this._minEntries;
|
|
7254
|
+
this._chooseSplitAxis(b, k, T);
|
|
7255
|
+
var R = this._chooseSplitIndex(b, k, T), I = M(b.children.splice(R, b.children.length - R));
|
|
7256
|
+
I.height = b.height, I.leaf = b.leaf, h(b, this.toBBox), h(I, this.toBBox), x ? y[x - 1].children.push(I) : this._splitRoot(b, I);
|
|
7257
7257
|
}, s.prototype._splitRoot = function(y, x) {
|
|
7258
7258
|
this.data = M([y, x]), this.data.height = y.height + 1, this.data.leaf = !1, h(this.data, this.toBBox);
|
|
7259
|
-
}, s.prototype._chooseSplitIndex = function(y, x,
|
|
7260
|
-
for (var T, k, R, I, z, G, j, W = 1 / 0, Y = 1 / 0, J = x; J <=
|
|
7261
|
-
var V = c(y, 0, J, this.toBBox), X = c(y, J,
|
|
7259
|
+
}, s.prototype._chooseSplitIndex = function(y, x, b) {
|
|
7260
|
+
for (var T, k, R, I, z, G, j, W = 1 / 0, Y = 1 / 0, J = x; J <= b - x; J++) {
|
|
7261
|
+
var V = c(y, 0, J, this.toBBox), X = c(y, J, b, this.toBBox), Z = (k = V, R = X, I = void 0, z = void 0, G = void 0, j = void 0, I = Math.max(k.minX, R.minX), z = Math.max(k.minY, R.minY), G = Math.min(k.maxX, R.maxX), j = Math.min(k.maxY, R.maxY), Math.max(0, G - I) * Math.max(0, j - z)), U = m(V) + m(X);
|
|
7262
7262
|
Z < W ? (W = Z, T = J, Y = U < Y ? U : Y) : Z === W && U < Y && (Y = U, T = J);
|
|
7263
7263
|
}
|
|
7264
|
-
return T ||
|
|
7265
|
-
}, s.prototype._chooseSplitAxis = function(y, x,
|
|
7264
|
+
return T || b - x;
|
|
7265
|
+
}, s.prototype._chooseSplitAxis = function(y, x, b) {
|
|
7266
7266
|
var T = y.leaf ? this.compareMinX : f, k = y.leaf ? this.compareMinY : p;
|
|
7267
|
-
this._allDistMargin(y, x,
|
|
7268
|
-
}, s.prototype._allDistMargin = function(y, x,
|
|
7267
|
+
this._allDistMargin(y, x, b, T) < this._allDistMargin(y, x, b, k) && y.children.sort(T);
|
|
7268
|
+
}, s.prototype._allDistMargin = function(y, x, b, T) {
|
|
7269
7269
|
y.children.sort(T);
|
|
7270
|
-
for (var k = this.toBBox, R = c(y, 0, x, k), I = c(y,
|
|
7270
|
+
for (var k = this.toBBox, R = c(y, 0, x, k), I = c(y, b - x, b, k), z = v(R) + v(I), G = x; G < b - x; G++) {
|
|
7271
7271
|
var j = y.children[G];
|
|
7272
7272
|
d(R, y.leaf ? k(j) : j), z += v(R);
|
|
7273
7273
|
}
|
|
7274
|
-
for (var W =
|
|
7274
|
+
for (var W = b - x - 1; W >= x; W--) {
|
|
7275
7275
|
var Y = y.children[W];
|
|
7276
7276
|
d(I, y.leaf ? k(Y) : Y), z += v(I);
|
|
7277
7277
|
}
|
|
7278
7278
|
return z;
|
|
7279
|
-
}, s.prototype._adjustParentBBoxes = function(y, x,
|
|
7280
|
-
for (var T =
|
|
7279
|
+
}, s.prototype._adjustParentBBoxes = function(y, x, b) {
|
|
7280
|
+
for (var T = b; T >= 0; T--)
|
|
7281
7281
|
d(x[T], y);
|
|
7282
7282
|
}, s.prototype._condense = function(y) {
|
|
7283
|
-
for (var x = y.length - 1,
|
|
7284
|
-
y[x].children.length === 0 ? x > 0 ? (
|
|
7283
|
+
for (var x = y.length - 1, b = void 0; x >= 0; x--)
|
|
7284
|
+
y[x].children.length === 0 ? x > 0 ? (b = y[x - 1].children).splice(b.indexOf(y[x]), 1) : this.clear() : h(y[x], this.toBBox);
|
|
7285
7285
|
}, s;
|
|
7286
7286
|
});
|
|
7287
7287
|
})(wd);
|
|
@@ -7391,20 +7391,20 @@ function t_(r, t, e, n) {
|
|
|
7391
7391
|
var i = r.prev, s = r, a = r.next;
|
|
7392
7392
|
if (At(i, s, a) >= 0)
|
|
7393
7393
|
return !1;
|
|
7394
|
-
for (var h = i.x, c = s.x, d = a.x, f = i.y, p = s.y, m = a.y, v = h < c ? h < d ? h : d : c < d ? c : d, E = f < p ? f < m ? f : m : p < m ? p : m,
|
|
7395
|
-
if (x.x >= v && x.x <=
|
|
7394
|
+
for (var h = i.x, c = s.x, d = a.x, f = i.y, p = s.y, m = a.y, v = h < c ? h < d ? h : d : c < d ? c : d, E = f < p ? f < m ? f : m : p < m ? p : m, C = h > c ? h > d ? h : d : c > d ? c : d, M = f > p ? f > m ? f : m : p > m ? p : m, S = cl(v, E, t, e, n), y = cl(C, M, t, e, n), x = r.prevZ, b = r.nextZ; x && x.z >= S && b && b.z <= y; ) {
|
|
7395
|
+
if (x.x >= v && x.x <= C && x.y >= E && x.y <= M && x !== i && x !== a && Qn(h, f, c, p, d, m, x.x, x.y) && At(x.prev, x, x.next) >= 0 || (x = x.prevZ, b.x >= v && b.x <= C && b.y >= E && b.y <= M && b !== i && b !== a && Qn(h, f, c, p, d, m, b.x, b.y) && At(b.prev, b, b.next) >= 0))
|
|
7396
7396
|
return !1;
|
|
7397
|
-
|
|
7397
|
+
b = b.nextZ;
|
|
7398
7398
|
}
|
|
7399
7399
|
for (; x && x.z >= S; ) {
|
|
7400
|
-
if (x.x >= v && x.x <=
|
|
7400
|
+
if (x.x >= v && x.x <= C && x.y >= E && x.y <= M && x !== i && x !== a && Qn(h, f, c, p, d, m, x.x, x.y) && At(x.prev, x, x.next) >= 0)
|
|
7401
7401
|
return !1;
|
|
7402
7402
|
x = x.prevZ;
|
|
7403
7403
|
}
|
|
7404
|
-
for (;
|
|
7405
|
-
if (
|
|
7404
|
+
for (; b && b.z <= y; ) {
|
|
7405
|
+
if (b.x >= v && b.x <= C && b.y >= E && b.y <= M && b !== i && b !== a && Qn(h, f, c, p, d, m, b.x, b.y) && At(b.prev, b, b.next) >= 0)
|
|
7406
7406
|
return !1;
|
|
7407
|
-
|
|
7407
|
+
b = b.nextZ;
|
|
7408
7408
|
}
|
|
7409
7409
|
return !0;
|
|
7410
7410
|
}
|
|
@@ -9256,8 +9256,8 @@ function Zo(r, t, e) {
|
|
|
9256
9256
|
metaTokens: !0,
|
|
9257
9257
|
dots: !1,
|
|
9258
9258
|
indexes: !1
|
|
9259
|
-
}, !1, function(
|
|
9260
|
-
return !O.isUndefined(M[
|
|
9259
|
+
}, !1, function(C, M) {
|
|
9260
|
+
return !O.isUndefined(M[C]);
|
|
9261
9261
|
});
|
|
9262
9262
|
const n = e.metaTokens, i = e.visitor || f, s = e.dots, a = e.indexes, c = (e.Blob || typeof Blob < "u" && Blob) && O.isSpecCompliantForm(t);
|
|
9263
9263
|
if (!O.isFunction(i))
|
|
@@ -9271,39 +9271,39 @@ function Zo(r, t, e) {
|
|
|
9271
9271
|
throw new vt("Blob is not supported. Use a Buffer instead.");
|
|
9272
9272
|
return O.isArrayBuffer(E) || O.isTypedArray(E) ? c && typeof Blob == "function" ? new Blob([E]) : Buffer.from(E) : E;
|
|
9273
9273
|
}
|
|
9274
|
-
function f(E,
|
|
9274
|
+
function f(E, C, M) {
|
|
9275
9275
|
let S = E;
|
|
9276
9276
|
if (E && !M && typeof E == "object") {
|
|
9277
|
-
if (O.endsWith(
|
|
9278
|
-
|
|
9279
|
-
else if (O.isArray(E) && Tm(E) || (O.isFileList(E) || O.endsWith(
|
|
9280
|
-
return
|
|
9277
|
+
if (O.endsWith(C, "{}"))
|
|
9278
|
+
C = n ? C : C.slice(0, -2), E = JSON.stringify(E);
|
|
9279
|
+
else if (O.isArray(E) && Tm(E) || (O.isFileList(E) || O.endsWith(C, "[]")) && (S = O.toArray(E)))
|
|
9280
|
+
return C = zd(C), S.forEach(function(x, b) {
|
|
9281
9281
|
!(O.isUndefined(x) || x === null) && t.append(
|
|
9282
9282
|
// eslint-disable-next-line no-nested-ternary
|
|
9283
|
-
a === !0 ? Vc([
|
|
9283
|
+
a === !0 ? Vc([C], b, s) : a === null ? C : C + "[]",
|
|
9284
9284
|
d(x)
|
|
9285
9285
|
);
|
|
9286
9286
|
}), !1;
|
|
9287
9287
|
}
|
|
9288
|
-
return gl(E) ? !0 : (t.append(Vc(M,
|
|
9288
|
+
return gl(E) ? !0 : (t.append(Vc(M, C, s), d(E)), !1);
|
|
9289
9289
|
}
|
|
9290
9290
|
const p = [], m = Object.assign(Mm, {
|
|
9291
9291
|
defaultVisitor: f,
|
|
9292
9292
|
convertValue: d,
|
|
9293
9293
|
isVisitable: gl
|
|
9294
9294
|
});
|
|
9295
|
-
function v(E,
|
|
9295
|
+
function v(E, C) {
|
|
9296
9296
|
if (!O.isUndefined(E)) {
|
|
9297
9297
|
if (p.indexOf(E) !== -1)
|
|
9298
|
-
throw Error("Circular reference detected in " +
|
|
9298
|
+
throw Error("Circular reference detected in " + C.join("."));
|
|
9299
9299
|
p.push(E), O.forEach(E, function(S, y) {
|
|
9300
9300
|
(!(O.isUndefined(S) || S === null) && i.call(
|
|
9301
9301
|
t,
|
|
9302
9302
|
S,
|
|
9303
9303
|
O.isString(y) ? y.trim() : y,
|
|
9304
|
-
|
|
9304
|
+
C,
|
|
9305
9305
|
m
|
|
9306
|
-
)) === !0 && v(S,
|
|
9306
|
+
)) === !0 && v(S, C ? C.concat(y) : [y]);
|
|
9307
9307
|
}), p.pop();
|
|
9308
9308
|
}
|
|
9309
9309
|
}
|
|
@@ -9876,7 +9876,7 @@ const $m = typeof XMLHttpRequest < "u", ty = $m && function(r) {
|
|
|
9876
9876
|
return;
|
|
9877
9877
|
const v = xi.from(
|
|
9878
9878
|
"getAllResponseHeaders" in d && d.getAllResponseHeaders()
|
|
9879
|
-
),
|
|
9879
|
+
), C = {
|
|
9880
9880
|
data: !a || a === "text" || a === "json" ? d.responseText : d.response,
|
|
9881
9881
|
status: d.status,
|
|
9882
9882
|
statusText: d.statusText,
|
|
@@ -9888,7 +9888,7 @@ const $m = typeof XMLHttpRequest < "u", ty = $m && function(r) {
|
|
|
9888
9888
|
e(S), c();
|
|
9889
9889
|
}, function(S) {
|
|
9890
9890
|
n(S), c();
|
|
9891
|
-
},
|
|
9891
|
+
}, C), d = null;
|
|
9892
9892
|
}
|
|
9893
9893
|
if ("onloadend" in d ? d.onloadend = p : d.onreadystatechange = function() {
|
|
9894
9894
|
!d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(p);
|
|
@@ -9898,10 +9898,10 @@ const $m = typeof XMLHttpRequest < "u", ty = $m && function(r) {
|
|
|
9898
9898
|
n(new vt("Network Error", vt.ERR_NETWORK, r, d)), d = null;
|
|
9899
9899
|
}, d.ontimeout = function() {
|
|
9900
9900
|
let E = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
9901
|
-
const
|
|
9901
|
+
const C = r.transitional || Gd;
|
|
9902
9902
|
r.timeoutErrorMessage && (E = r.timeoutErrorMessage), n(new vt(
|
|
9903
9903
|
E,
|
|
9904
|
-
|
|
9904
|
+
C.clarifyTimeoutError ? vt.ETIMEDOUT : vt.ECONNABORTED,
|
|
9905
9905
|
r,
|
|
9906
9906
|
d
|
|
9907
9907
|
)), d = null;
|
|
@@ -9909,8 +9909,8 @@ const $m = typeof XMLHttpRequest < "u", ty = $m && function(r) {
|
|
|
9909
9909
|
const v = (r.withCredentials || qm(f)) && r.xsrfCookieName && Ym.read(r.xsrfCookieName);
|
|
9910
9910
|
v && s.set(r.xsrfHeaderName, v);
|
|
9911
9911
|
}
|
|
9912
|
-
i === void 0 && s.setContentType(null), "setRequestHeader" in d && O.forEach(s.toJSON(), function(E,
|
|
9913
|
-
d.setRequestHeader(
|
|
9912
|
+
i === void 0 && s.setContentType(null), "setRequestHeader" in d && O.forEach(s.toJSON(), function(E, C) {
|
|
9913
|
+
d.setRequestHeader(C, E);
|
|
9914
9914
|
}), O.isUndefined(r.withCredentials) || (d.withCredentials = !!r.withCredentials), a && a !== "json" && (d.responseType = r.responseType), typeof r.onDownloadProgress == "function" && d.addEventListener("progress", Qc(r.onDownloadProgress, !0)), typeof r.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", Qc(r.onUploadProgress)), (r.cancelToken || r.signal) && (h = (v) => {
|
|
9915
9915
|
d && (n(!v || v.type ? new os(null, r, d) : v), d.abort(), d = null);
|
|
9916
9916
|
}, r.cancelToken && r.cancelToken.subscribe(h), r.signal && (r.signal.aborted ? h() : r.signal.addEventListener("abort", h)));
|
|
@@ -10128,12 +10128,12 @@ class ho {
|
|
|
10128
10128
|
), e.headers = xi.concat(a, s);
|
|
10129
10129
|
const h = [];
|
|
10130
10130
|
let c = !0;
|
|
10131
|
-
this.interceptors.request.forEach(function(
|
|
10132
|
-
typeof
|
|
10131
|
+
this.interceptors.request.forEach(function(C) {
|
|
10132
|
+
typeof C.runWhen == "function" && C.runWhen(e) === !1 || (c = c && C.synchronous, h.unshift(C.fulfilled, C.rejected));
|
|
10133
10133
|
});
|
|
10134
10134
|
const d = [];
|
|
10135
|
-
this.interceptors.response.forEach(function(
|
|
10136
|
-
d.push(
|
|
10135
|
+
this.interceptors.response.forEach(function(C) {
|
|
10136
|
+
d.push(C.fulfilled, C.rejected);
|
|
10137
10137
|
});
|
|
10138
10138
|
let f, p = 0, m;
|
|
10139
10139
|
if (!c) {
|
|
@@ -10145,11 +10145,11 @@ class ho {
|
|
|
10145
10145
|
m = h.length;
|
|
10146
10146
|
let v = e;
|
|
10147
10147
|
for (p = 0; p < m; ) {
|
|
10148
|
-
const E = h[p++],
|
|
10148
|
+
const E = h[p++], C = h[p++];
|
|
10149
10149
|
try {
|
|
10150
10150
|
v = E(v);
|
|
10151
10151
|
} catch (M) {
|
|
10152
|
-
|
|
10152
|
+
C.call(this, M);
|
|
10153
10153
|
break;
|
|
10154
10154
|
}
|
|
10155
10155
|
}
|
|
@@ -10486,7 +10486,7 @@ const ay = Do({
|
|
|
10486
10486
|
}, 500);
|
|
10487
10487
|
},
|
|
10488
10488
|
createMap() {
|
|
10489
|
-
var a, h, c, d, f, p, m, v, E,
|
|
10489
|
+
var a, h, c, d, f, p, m, v, E, C;
|
|
10490
10490
|
const r = this.configurationMap ? this.configurationMap.iconMarker ? this.configurationMap.iconMarker : this.markerIcon : this.markerIcon;
|
|
10491
10491
|
window.type = !0;
|
|
10492
10492
|
const t = et.map(this.idMap, { fullscreenControl: !0 }).setView(
|
|
@@ -10522,8 +10522,8 @@ const ay = Do({
|
|
|
10522
10522
|
}
|
|
10523
10523
|
).addTo(t);
|
|
10524
10524
|
this.markerRender = M, this.getCoodMarker && M.on("dragend", (S) => {
|
|
10525
|
-
const y = S.target.getLatLng(), x = y.lat,
|
|
10526
|
-
this.getCoodMarker && this.getCoodMarker(x,
|
|
10525
|
+
const y = S.target.getLatLng(), x = y.lat, b = y.lng;
|
|
10526
|
+
this.getCoodMarker && this.getCoodMarker(x, b);
|
|
10527
10527
|
});
|
|
10528
10528
|
}
|
|
10529
10529
|
const e = et.featureGroup();
|
|
@@ -10560,12 +10560,12 @@ const ay = Do({
|
|
|
10560
10560
|
color: "blue"
|
|
10561
10561
|
}
|
|
10562
10562
|
} : !1,
|
|
10563
|
-
circlemarker: (
|
|
10563
|
+
circlemarker: (C = this.configurationMap) == null ? void 0 : C.createFigures.multipoint
|
|
10564
10564
|
},
|
|
10565
10565
|
edit: i
|
|
10566
10566
|
});
|
|
10567
10567
|
t.addControl(s), t.on("draw:created", (M) => {
|
|
10568
|
-
var x,
|
|
10568
|
+
var x, b, T, k, R, I, z, G, j, W, Y, J, V, X, Z;
|
|
10569
10569
|
const S = M.layer;
|
|
10570
10570
|
n.addLayer(S);
|
|
10571
10571
|
let y = S.toGeoJSON();
|
|
@@ -10579,7 +10579,7 @@ const ay = Do({
|
|
|
10579
10579
|
...y.properties,
|
|
10580
10580
|
pointType: "multipoint",
|
|
10581
10581
|
style: {
|
|
10582
|
-
color: ((T = (
|
|
10582
|
+
color: ((T = (b = (x = this.configurationMap) == null ? void 0 : x.createFigures) == null ? void 0 : b.multipoint) == null ? void 0 : T.color) || "green",
|
|
10583
10583
|
fillColor: ((I = (R = (k = this.configurationMap) == null ? void 0 : k.createFigures) == null ? void 0 : R.multipoint) == null ? void 0 : I.fillColor) || "green",
|
|
10584
10584
|
fillOpacity: ((j = (G = (z = this.configurationMap) == null ? void 0 : z.createFigures) == null ? void 0 : G.multipoint) == null ? void 0 : j.fillOpacity) || 0.8,
|
|
10585
10585
|
radius: ((J = (Y = (W = this.configurationMap) == null ? void 0 : W.createFigures) == null ? void 0 : Y.multipoint) == null ? void 0 : J.radius) || 6,
|
|
@@ -10595,7 +10595,7 @@ const ay = Do({
|
|
|
10595
10595
|
});
|
|
10596
10596
|
},
|
|
10597
10597
|
viewMap() {
|
|
10598
|
-
var h, c, d, f, p, m, v, E,
|
|
10598
|
+
var h, c, d, f, p, m, v, E, C, M;
|
|
10599
10599
|
const r = this.configurationMap ? this.configurationMap.iconMarker ? this.configurationMap.iconMarker : this.markerIcon : this.markerIcon;
|
|
10600
10600
|
window.type = !0;
|
|
10601
10601
|
const t = et.map(this.idMap, { fullscreenControl: !0 }).setView(
|
|
@@ -10641,13 +10641,16 @@ const ay = Do({
|
|
|
10641
10641
|
if (y.type === "FeatureCollection")
|
|
10642
10642
|
y.features.forEach((x) => {
|
|
10643
10643
|
if (x.geometry.type === "Polygon" || x.geometry.type === "MultiPolygon" || x.geometry.type === "LineString" || x.geometry.type === "MultiLineString" || x.geometry.type === "Point") {
|
|
10644
|
-
const
|
|
10644
|
+
const b = this;
|
|
10645
10645
|
et.geoJson(x, {
|
|
10646
10646
|
pointToLayer: this.getPointToLayer.bind(this),
|
|
10647
10647
|
onEachFeature: function(T, k) {
|
|
10648
10648
|
if (n.addLayer(k), T.geometry.type === "Point") {
|
|
10649
|
-
var R =
|
|
10649
|
+
var R = b.getPopupContent(T);
|
|
10650
10650
|
k.bindPopup(R);
|
|
10651
|
+
} else if (T.geometry.type === "Polygon" || T.geometry.type === "MultiPolygon") {
|
|
10652
|
+
var I = b.getPolygonTooltipContent(T);
|
|
10653
|
+
k.bindPopup(I);
|
|
10651
10654
|
}
|
|
10652
10655
|
}
|
|
10653
10656
|
});
|
|
@@ -10656,10 +10659,13 @@ const ay = Do({
|
|
|
10656
10659
|
else if (y.type === "Feature" && (y.geometry.type === "Polygon" || y.geometry.type === "MultiPolygon" || y.geometry.type === "LineString" || y.geometry.type === "MultiLineString" || y.geometry.type === "Point" || y.geometry.type === "MultiPoint")) {
|
|
10657
10660
|
const x = this;
|
|
10658
10661
|
et.geoJson(y, {
|
|
10659
|
-
onEachFeature: function(
|
|
10660
|
-
if (n.addLayer(T),
|
|
10661
|
-
var k = x.getPopupContent(
|
|
10662
|
+
onEachFeature: function(b, T) {
|
|
10663
|
+
if (n.addLayer(T), b.geometry.type === "Point") {
|
|
10664
|
+
var k = x.getPopupContent(b);
|
|
10662
10665
|
T.bindPopup(k);
|
|
10666
|
+
} else if (b.geometry.type === "Polygon" || b.geometry.type === "MultiPolygon") {
|
|
10667
|
+
var R = x.getPolygonTooltipContent(b);
|
|
10668
|
+
T.bindPopup(R);
|
|
10663
10669
|
}
|
|
10664
10670
|
}
|
|
10665
10671
|
});
|
|
@@ -10682,7 +10688,7 @@ const ay = Do({
|
|
|
10682
10688
|
marker: (E = this.configurationMap) != null && E.createFigures.marker ? {
|
|
10683
10689
|
icon: et.icon(r)
|
|
10684
10690
|
} : !1,
|
|
10685
|
-
polyline: (
|
|
10691
|
+
polyline: (C = this.configurationMap) != null && C.createFigures.polyline ? {
|
|
10686
10692
|
shapeOptions: {
|
|
10687
10693
|
color: "blue"
|
|
10688
10694
|
}
|
|
@@ -10692,7 +10698,7 @@ const ay = Do({
|
|
|
10692
10698
|
edit: i
|
|
10693
10699
|
});
|
|
10694
10700
|
t.addControl(a), t.on("draw:created", (S) => {
|
|
10695
|
-
var
|
|
10701
|
+
var b, T, k, R, I, z, G, j, W, Y, J, V, X, Z, U;
|
|
10696
10702
|
const y = S.layer;
|
|
10697
10703
|
n.addLayer(y);
|
|
10698
10704
|
let x = y.toGeoJSON();
|
|
@@ -10706,7 +10712,7 @@ const ay = Do({
|
|
|
10706
10712
|
...x.properties,
|
|
10707
10713
|
pointType: "multipoint",
|
|
10708
10714
|
style: {
|
|
10709
|
-
color: ((k = (T = (
|
|
10715
|
+
color: ((k = (T = (b = this.configurationMap) == null ? void 0 : b.createFigures) == null ? void 0 : T.multipoint) == null ? void 0 : k.color) || "green",
|
|
10710
10716
|
fillColor: ((z = (I = (R = this.configurationMap) == null ? void 0 : R.createFigures) == null ? void 0 : I.multipoint) == null ? void 0 : z.fillColor) || "green",
|
|
10711
10717
|
fillOpacity: ((W = (j = (G = this.configurationMap) == null ? void 0 : G.createFigures) == null ? void 0 : j.multipoint) == null ? void 0 : W.fillOpacity) || 0.8,
|
|
10712
10718
|
radius: ((V = (J = (Y = this.configurationMap) == null ? void 0 : Y.createFigures) == null ? void 0 : J.multipoint) == null ? void 0 : V.radius) || 6,
|
|
@@ -10716,8 +10722,8 @@ const ay = Do({
|
|
|
10716
10722
|
}), this.getGeoJSON && this.getGeoJSON(x);
|
|
10717
10723
|
}), t.on("draw:edited", (S) => {
|
|
10718
10724
|
S.layers.eachLayer((x) => {
|
|
10719
|
-
const
|
|
10720
|
-
this.getGeoJSON && this.getGeoJSON(
|
|
10725
|
+
const b = x.toGeoJSON();
|
|
10726
|
+
this.getGeoJSON && this.getGeoJSON(b);
|
|
10721
10727
|
});
|
|
10722
10728
|
});
|
|
10723
10729
|
},
|
|
@@ -10782,6 +10788,10 @@ const ay = Do({
|
|
|
10782
10788
|
}
|
|
10783
10789
|
let a = "<div>";
|
|
10784
10790
|
return i && (a += `<img src="${i}" style="width: 200px; height: auto; margin-bottom: 5px;"><br>`), a += `<b>Descripción:</b> ${e}<br>`, s && (a += `<b>Fecha Hora Llegada:</b> ${s}<br>`), a += "</div>", a;
|
|
10791
|
+
},
|
|
10792
|
+
getPolygonTooltipContent(r) {
|
|
10793
|
+
const t = r.properties || {};
|
|
10794
|
+
return `<div style="font-weight: bold; padding: 5px;">${t.descripcion || t.name || "Sin descripción"}</div>`;
|
|
10785
10795
|
}
|
|
10786
10796
|
},
|
|
10787
10797
|
watch: {
|
|
@@ -10838,16 +10848,16 @@ const xb = /* @__PURE__ */ Gl(ay, [["render", hy]]), cy = ["id"], wb = /* @__PUR
|
|
|
10838
10848
|
});
|
|
10839
10849
|
const f = async (y) => {
|
|
10840
10850
|
let x = "";
|
|
10841
|
-
const
|
|
10851
|
+
const b = "abcdefghijklmnopqrstuvwxyz", T = b.length;
|
|
10842
10852
|
let k = 0;
|
|
10843
10853
|
for (; k < y; )
|
|
10844
|
-
x +=
|
|
10854
|
+
x += b.charAt(Math.floor(Math.random() * T)), k += 1;
|
|
10845
10855
|
i.value = x;
|
|
10846
10856
|
}, p = async () => {
|
|
10847
10857
|
await m();
|
|
10848
10858
|
}, m = async () => {
|
|
10849
|
-
var
|
|
10850
|
-
const y = (
|
|
10859
|
+
var b, T;
|
|
10860
|
+
const y = (b = n.configurationMap) == null ? void 0 : b.iconMarker, x = et.map(i.value, { fullscreenControl: !0 }).setView(
|
|
10851
10861
|
[s.value.lat, s.value.lng],
|
|
10852
10862
|
s.value.zoom
|
|
10853
10863
|
);
|
|
@@ -10904,15 +10914,15 @@ const xb = /* @__PURE__ */ Gl(ay, [["render", hy]]), cy = ["id"], wb = /* @__PUR
|
|
|
10904
10914
|
}, v = () => {
|
|
10905
10915
|
const y = et.Control.extend({
|
|
10906
10916
|
onAdd: (x) => {
|
|
10907
|
-
const
|
|
10917
|
+
const b = et.DomUtil.create(
|
|
10908
10918
|
"div",
|
|
10909
10919
|
"leaflet-control-draw leaflet-bar leaflet-control"
|
|
10910
10920
|
), T = et.DomUtil.create(
|
|
10911
10921
|
"a",
|
|
10912
10922
|
"leaflet-draw-draw-satellite",
|
|
10913
|
-
|
|
10923
|
+
b
|
|
10914
10924
|
);
|
|
10915
|
-
return T.href = "#", T.title = d.value ? "Vista Normal" : "Vista Satélite", T.style.backgroundImage = d.value ? `url(${co})` : `url(${uo})`, T.style.backgroundPosition = "center", T.style.backgroundRepeat = "no-repeat", T.style.backgroundSize = "20px 20px", et.DomEvent.disableClickPropagation(T), et.DomEvent.on(T, "click", E),
|
|
10925
|
+
return T.href = "#", T.title = d.value ? "Vista Normal" : "Vista Satélite", T.style.backgroundImage = d.value ? `url(${co})` : `url(${uo})`, T.style.backgroundPosition = "center", T.style.backgroundRepeat = "no-repeat", T.style.backgroundSize = "20px 20px", et.DomEvent.disableClickPropagation(T), et.DomEvent.on(T, "click", E), b;
|
|
10916
10926
|
}
|
|
10917
10927
|
});
|
|
10918
10928
|
return new y({ position: "topleft" });
|
|
@@ -10932,10 +10942,10 @@ const xb = /* @__PURE__ */ Gl(ay, [["render", hy]]), cy = ["id"], wb = /* @__PUR
|
|
|
10932
10942
|
), c.value.addTo(a.value), document.querySelectorAll(
|
|
10933
10943
|
".leaflet-draw-draw-satellite"
|
|
10934
10944
|
).forEach((x) => {
|
|
10935
|
-
const
|
|
10936
|
-
|
|
10945
|
+
const b = x;
|
|
10946
|
+
b.style.backgroundImage = d.value ? `url(${co})` : `url(${uo})`, b.title = d.value ? "Vista Normal" : "Vista Satélite";
|
|
10937
10947
|
});
|
|
10938
|
-
},
|
|
10948
|
+
}, C = async (y) => {
|
|
10939
10949
|
const x = await Xd.get(
|
|
10940
10950
|
location.protocol + "//nominatim.openstreetmap.org/search?",
|
|
10941
10951
|
{
|
|
@@ -10948,31 +10958,31 @@ const xb = /* @__PURE__ */ Gl(ay, [["render", hy]]), cy = ["id"], wb = /* @__PUR
|
|
|
10948
10958
|
}
|
|
10949
10959
|
);
|
|
10950
10960
|
if (x.data.length === 1) {
|
|
10951
|
-
const
|
|
10961
|
+
const b = parseFloat(x.data[0].lat), k = { lng: parseFloat(x.data[0].lon), lat: b };
|
|
10952
10962
|
return M({ ...k, moveMarker: !0 }), x.data[0];
|
|
10953
10963
|
}
|
|
10954
10964
|
return x.data;
|
|
10955
10965
|
}, M = ({
|
|
10956
10966
|
lat: y,
|
|
10957
10967
|
lng: x,
|
|
10958
|
-
moveMarker:
|
|
10968
|
+
moveMarker: b = !1
|
|
10959
10969
|
}) => {
|
|
10960
10970
|
var T;
|
|
10961
10971
|
e("updated:coordsMarker", {
|
|
10962
10972
|
lat: y,
|
|
10963
10973
|
lng: x
|
|
10964
|
-
}),
|
|
10974
|
+
}), b && ((T = h.value) == null || T.setLatLng({ lat: y, lng: x })), S({ lat: y, lng: x });
|
|
10965
10975
|
}, S = ({ lat: y, lng: x }) => {
|
|
10966
|
-
const
|
|
10967
|
-
a.value.panTo(
|
|
10976
|
+
const b = et.latLng(y, x);
|
|
10977
|
+
a.value.panTo(b, { animate: !0, duration: 0.5 });
|
|
10968
10978
|
};
|
|
10969
10979
|
return t({
|
|
10970
|
-
searchAddress:
|
|
10980
|
+
searchAddress: C
|
|
10971
10981
|
}), (y, x) => {
|
|
10972
|
-
var
|
|
10982
|
+
var b;
|
|
10973
10983
|
return Oo(), Fo("div", {
|
|
10974
10984
|
class: "map-container",
|
|
10975
|
-
style: zl(`height:${(
|
|
10985
|
+
style: zl(`height:${(b = y.configurationMap) == null ? void 0 : b.height}`)
|
|
10976
10986
|
}, [
|
|
10977
10987
|
Et("div", {
|
|
10978
10988
|
id: i.value,
|
|
@@ -11909,8 +11919,8 @@ function Dy(r, t, e) {
|
|
|
11909
11919
|
n = !0;
|
|
11910
11920
|
else {
|
|
11911
11921
|
const a = r[0], h = r[1], c = r[2], d = r[3], f = t[0], p = t[1], m = e[0], v = e[1], E = (v - p) / (m - f);
|
|
11912
|
-
let
|
|
11913
|
-
s & Yt.ABOVE && !(i & Yt.ABOVE) && (
|
|
11922
|
+
let C, M;
|
|
11923
|
+
s & Yt.ABOVE && !(i & Yt.ABOVE) && (C = m - (v - d) / E, n = C >= a && C <= c), !n && s & Yt.RIGHT && !(i & Yt.RIGHT) && (M = v - (m - c) * E, n = M >= h && M <= d), !n && s & Yt.BELOW && !(i & Yt.BELOW) && (C = m - (v - h) / E, n = C >= a && C <= c), !n && s & Yt.LEFT && !(i & Yt.LEFT) && (M = v - (m - a) * E, n = M >= h && M <= d);
|
|
11914
11924
|
}
|
|
11915
11925
|
return n;
|
|
11916
11926
|
}
|
|
@@ -12221,12 +12231,12 @@ function uu(r, t, e) {
|
|
|
12221
12231
|
if (!i && !t)
|
|
12222
12232
|
return n;
|
|
12223
12233
|
const c = t ? 0 : s[0] * i, d = t ? 0 : s[1] * i, f = h ? h[0] : 0, p = h ? h[1] : 0;
|
|
12224
|
-
let m = r[0] + c / 2 + f, v = r[2] - c / 2 + f, E = r[1] + d / 2 + p,
|
|
12225
|
-
m > v && (m = (v + m) / 2, v = m), E >
|
|
12226
|
-
let M = Ft(n[0], m, v), S = Ft(n[1], E,
|
|
12234
|
+
let m = r[0] + c / 2 + f, v = r[2] - c / 2 + f, E = r[1] + d / 2 + p, C = r[3] - d / 2 + p;
|
|
12235
|
+
m > v && (m = (v + m) / 2, v = m), E > C && (E = (C + E) / 2, C = E);
|
|
12236
|
+
let M = Ft(n[0], m, v), S = Ft(n[1], E, C);
|
|
12227
12237
|
if (a && e && i) {
|
|
12228
12238
|
const y = 30 * i;
|
|
12229
|
-
M += -y * Math.log(1 + Math.max(0, m - n[0]) / y) + y * Math.log(1 + Math.max(0, n[0] - v) / y), S += -y * Math.log(1 + Math.max(0, E - n[1]) / y) + y * Math.log(1 + Math.max(0, n[1] -
|
|
12239
|
+
M += -y * Math.log(1 + Math.max(0, m - n[0]) / y) + y * Math.log(1 + Math.max(0, n[0] - v) / y), S += -y * Math.log(1 + Math.max(0, E - n[1]) / y) + y * Math.log(1 + Math.max(0, n[1] - C) / y);
|
|
12230
12240
|
}
|
|
12231
12241
|
return [M, S];
|
|
12232
12242
|
}
|
|
@@ -12295,9 +12305,9 @@ function Ky(r, t, e, n, i, s) {
|
|
|
12295
12305
|
) : Ft(a, e, f);
|
|
12296
12306
|
const p = 1e-9, m = Math.ceil(
|
|
12297
12307
|
Math.log(t / f) / Math.log(r) - p
|
|
12298
|
-
), v = -h * (0.5 - p) + 0.5, E = Math.min(f, a),
|
|
12308
|
+
), v = -h * (0.5 - p) + 0.5, E = Math.min(f, a), C = Math.floor(
|
|
12299
12309
|
Math.log(t / E) / Math.log(r) + v
|
|
12300
|
-
), M = Math.max(m,
|
|
12310
|
+
), M = Math.max(m, C), S = t / Math.pow(r, M);
|
|
12301
12311
|
return Ft(S, e, f);
|
|
12302
12312
|
}
|
|
12303
12313
|
};
|
|
@@ -12448,8 +12458,8 @@ function yf(r, t, e, n, i, s, a) {
|
|
|
12448
12458
|
for (let m = t; m < e; m += n) {
|
|
12449
12459
|
const v = r[m] - d, E = r[m + 1] - f;
|
|
12450
12460
|
a[p++] = d + v * h - E * c, a[p++] = f + v * c + E * h;
|
|
12451
|
-
for (let
|
|
12452
|
-
a[p++] = r[
|
|
12461
|
+
for (let C = m + 2; C < m + n; ++C)
|
|
12462
|
+
a[p++] = r[C];
|
|
12453
12463
|
}
|
|
12454
12464
|
return a && a.length != p && (a.length = p), a;
|
|
12455
12465
|
}
|
|
@@ -13125,9 +13135,9 @@ function ra(r, t, e, n, i, s, a) {
|
|
|
13125
13135
|
for (; d.length > 0; ) {
|
|
13126
13136
|
const p = d.pop(), m = d.pop();
|
|
13127
13137
|
let v = 0;
|
|
13128
|
-
const E = r[m],
|
|
13138
|
+
const E = r[m], C = r[m + 1], M = r[p], S = r[p + 1];
|
|
13129
13139
|
for (let y = m + n; y < p; y += n) {
|
|
13130
|
-
const x = r[y],
|
|
13140
|
+
const x = r[y], b = r[y + 1], T = Fy(x, b, E, C, M, S);
|
|
13131
13141
|
T > v && (f = y, v = T);
|
|
13132
13142
|
}
|
|
13133
13143
|
v > i && (c[(f - t) / n] = 1, m + n < f && d.push(m, f), f + n < p && d.push(f, p));
|
|
@@ -13168,8 +13178,8 @@ function _v(r, t, e, n, i, s, a) {
|
|
|
13168
13178
|
const p = gn(r[t], i), m = gn(r[t + 1], i);
|
|
13169
13179
|
if (t += n, p == d && m == f)
|
|
13170
13180
|
continue;
|
|
13171
|
-
const v = d - h, E = f - c,
|
|
13172
|
-
if (v * M == E *
|
|
13181
|
+
const v = d - h, E = f - c, C = p - h, M = m - c;
|
|
13182
|
+
if (v * M == E * C && (v < 0 && C < v || v == C || v > 0 && C > v) && (E < 0 && M < E || E == M || E > 0 && M > E)) {
|
|
13173
13183
|
d = p, f = m;
|
|
13174
13184
|
continue;
|
|
13175
13185
|
}
|
|
@@ -13534,15 +13544,15 @@ function xv(r, t, e, n, i, s) {
|
|
|
13534
13544
|
}
|
|
13535
13545
|
function dh(r, t, e, n, i, s, a) {
|
|
13536
13546
|
let h, c, d, f, p, m, v;
|
|
13537
|
-
const E = i[s + 1],
|
|
13547
|
+
const E = i[s + 1], C = [];
|
|
13538
13548
|
for (let y = 0, x = e.length; y < x; ++y) {
|
|
13539
|
-
const
|
|
13540
|
-
for (f = r[
|
|
13541
|
-
p = r[h], v = r[h + 1], (E <= m && v <= E || m <= E && E <= v) && (d = (E - m) / (v - m) * (p - f) + f,
|
|
13549
|
+
const b = e[y];
|
|
13550
|
+
for (f = r[b - n], m = r[b - n + 1], h = t; h < b; h += n)
|
|
13551
|
+
p = r[h], v = r[h + 1], (E <= m && v <= E || m <= E && E <= v) && (d = (E - m) / (v - m) * (p - f) + f, C.push(d)), f = p, m = v;
|
|
13542
13552
|
}
|
|
13543
13553
|
let M = NaN, S = -1 / 0;
|
|
13544
|
-
for (
|
|
13545
|
-
p =
|
|
13554
|
+
for (C.sort(qi), f = C[0], h = 1, c = C.length; h < c; ++h) {
|
|
13555
|
+
p = C[h];
|
|
13546
13556
|
const y = Math.abs(p - f);
|
|
13547
13557
|
y > S && (d = (f + p) / 2, uh(r, t, e, n, d, E) && (M = d, S = y)), f = p;
|
|
13548
13558
|
}
|
|
@@ -14250,9 +14260,9 @@ class Cv extends Ge {
|
|
|
14250
14260
|
f >= 1 ? (c.complete = !0, f = 1) : s = !1;
|
|
14251
14261
|
const p = c.easing(f);
|
|
14252
14262
|
if (c.sourceCenter) {
|
|
14253
|
-
const m = c.sourceCenter[0], v = c.sourceCenter[1], E = c.targetCenter[0],
|
|
14263
|
+
const m = c.sourceCenter[0], v = c.sourceCenter[1], E = c.targetCenter[0], C = c.targetCenter[1];
|
|
14254
14264
|
this.nextCenter_ = c.targetCenter;
|
|
14255
|
-
const M = m + p * (E - m), S = v + p * (
|
|
14265
|
+
const M = m + p * (E - m), S = v + p * (C - v);
|
|
14256
14266
|
this.targetCenter_ = [M, S];
|
|
14257
14267
|
}
|
|
14258
14268
|
if (c.sourceResolution && c.targetResolution) {
|
|
@@ -14757,16 +14767,16 @@ class Cv extends Ge {
|
|
|
14757
14767
|
c = isNaN(c) ? a : Math.max(c, a), c = this.getConstrainedResolution(c, s ? 0 : 1);
|
|
14758
14768
|
const d = this.getRotation(), f = Math.sin(d), p = Math.cos(d), m = Qi(h);
|
|
14759
14769
|
m[0] += (i[1] - i[3]) / 2 * c, m[1] += (i[0] - i[2]) / 2 * c;
|
|
14760
|
-
const v = m[0] * p - m[1] * f, E = m[1] * p + m[0] * f,
|
|
14770
|
+
const v = m[0] * p - m[1] * f, E = m[1] * p + m[0] * f, C = this.getConstrainedCenter([v, E], c), M = e.callback ? e.callback : ar;
|
|
14761
14771
|
e.duration !== void 0 ? this.animateInternal(
|
|
14762
14772
|
{
|
|
14763
14773
|
resolution: c,
|
|
14764
|
-
center:
|
|
14774
|
+
center: C,
|
|
14765
14775
|
duration: e.duration,
|
|
14766
14776
|
easing: e.easing
|
|
14767
14777
|
},
|
|
14768
14778
|
M
|
|
14769
|
-
) : (this.targetResolution_ = c, this.targetCenter_ =
|
|
14779
|
+
) : (this.targetResolution_ = c, this.targetCenter_ = C, this.applyTargetState_(!1, !0), Xs(M, !0));
|
|
14770
14780
|
}
|
|
14771
14781
|
/**
|
|
14772
14782
|
* Center on coordinate and view position.
|
|
@@ -15127,19 +15137,19 @@ function Tv(r) {
|
|
|
15127
15137
|
function Mv(r) {
|
|
15128
15138
|
let t, e, n, a = r.minZoom !== void 0 ? r.minZoom : Ya, h = r.maxZoom !== void 0 ? r.maxZoom : 28;
|
|
15129
15139
|
const c = r.zoomFactor !== void 0 ? r.zoomFactor : 2, d = r.multiWorld !== void 0 ? r.multiWorld : !1, f = r.smoothResolutionConstraint !== void 0 ? r.smoothResolutionConstraint : !0, p = r.showFullExtent !== void 0 ? r.showFullExtent : !1, m = $l(r.projection, "EPSG:3857"), v = m.getExtent();
|
|
15130
|
-
let E = r.constrainOnlyCenter,
|
|
15131
|
-
if (!d && !
|
|
15140
|
+
let E = r.constrainOnlyCenter, C = r.extent;
|
|
15141
|
+
if (!d && !C && m.isGlobal() && (E = !1, C = v), r.resolutions !== void 0) {
|
|
15132
15142
|
const M = r.resolutions;
|
|
15133
15143
|
e = M[a], n = M[h] !== void 0 ? M[h] : M[M.length - 1], r.constrainResolution ? t = Vy(
|
|
15134
15144
|
M,
|
|
15135
15145
|
f,
|
|
15136
|
-
!E &&
|
|
15146
|
+
!E && C,
|
|
15137
15147
|
p
|
|
15138
15148
|
) : t = du(
|
|
15139
15149
|
e,
|
|
15140
15150
|
n,
|
|
15141
15151
|
f,
|
|
15142
|
-
!E &&
|
|
15152
|
+
!E && C,
|
|
15143
15153
|
p
|
|
15144
15154
|
);
|
|
15145
15155
|
} else {
|
|
@@ -15154,13 +15164,13 @@ function Mv(r) {
|
|
|
15154
15164
|
e,
|
|
15155
15165
|
n,
|
|
15156
15166
|
f,
|
|
15157
|
-
!E &&
|
|
15167
|
+
!E && C,
|
|
15158
15168
|
p
|
|
15159
15169
|
) : t = du(
|
|
15160
15170
|
e,
|
|
15161
15171
|
n,
|
|
15162
15172
|
f,
|
|
15163
|
-
!E &&
|
|
15173
|
+
!E && C,
|
|
15164
15174
|
p
|
|
15165
15175
|
);
|
|
15166
15176
|
}
|
|
@@ -15470,18 +15480,18 @@ var ph = {
|
|
|
15470
15480
|
channel: ["lightness", "u", "v"],
|
|
15471
15481
|
alias: ["LUV", "cieluv", "cie1976"],
|
|
15472
15482
|
xyz: function(r, t, e) {
|
|
15473
|
-
var n, i, s, a, h, c, d, f, p, m, v, E,
|
|
15483
|
+
var n, i, s, a, h, c, d, f, p, m, v, E, C;
|
|
15474
15484
|
if (s = r[0], a = r[1], h = r[2], s === 0)
|
|
15475
15485
|
return [0, 0, 0];
|
|
15476
15486
|
var M = 0.0011070564598794539;
|
|
15477
|
-
return t = t || "D65", e = e || 2, p = ne.whitepoint[e][t][0], m = ne.whitepoint[e][t][1], v = ne.whitepoint[e][t][2], E = 4 * p / (p + 15 * m + 3 * v),
|
|
15487
|
+
return t = t || "D65", e = e || 2, p = ne.whitepoint[e][t][0], m = ne.whitepoint[e][t][1], v = ne.whitepoint[e][t][2], E = 4 * p / (p + 15 * m + 3 * v), C = 9 * m / (p + 15 * m + 3 * v), n = a / (13 * s) + E || 0, i = h / (13 * s) + C || 0, d = s > 8 ? m * Math.pow((s + 16) / 116, 3) : m * s * M, c = d * 9 * n / (4 * i) || 0, f = d * (12 - 3 * n - 20 * i) / (4 * i) || 0, [c, d, f];
|
|
15478
15488
|
}
|
|
15479
15489
|
};
|
|
15480
15490
|
ne.luv = function(r, t, e) {
|
|
15481
|
-
var n, i, s, a, h, c, d, f, p, m, v, E,
|
|
15482
|
-
t = t || "D65", e = e || 2, p = ne.whitepoint[e][t][0], m = ne.whitepoint[e][t][1], v = ne.whitepoint[e][t][2], E = 4 * p / (p + 15 * m + 3 * v),
|
|
15491
|
+
var n, i, s, a, h, c, d, f, p, m, v, E, C, M = 0.008856451679035631, S = 903.2962962962961;
|
|
15492
|
+
t = t || "D65", e = e || 2, p = ne.whitepoint[e][t][0], m = ne.whitepoint[e][t][1], v = ne.whitepoint[e][t][2], E = 4 * p / (p + 15 * m + 3 * v), C = 9 * m / (p + 15 * m + 3 * v), c = r[0], d = r[1], f = r[2], n = 4 * c / (c + 15 * d + 3 * f) || 0, i = 9 * d / (c + 15 * d + 3 * f) || 0;
|
|
15483
15493
|
var y = d / m;
|
|
15484
|
-
return s = y <= M ? S * y : 116 * Math.pow(y, 1 / 3) - 16, a = 13 * s * (n - E), h = 13 * s * (i -
|
|
15494
|
+
return s = y <= M ? S * y : 116 * Math.pow(y, 1 / 3) - 16, a = 13 * s * (n - E), h = 13 * s * (i - C), [s, a, h];
|
|
15485
15495
|
};
|
|
15486
15496
|
var Pf = {
|
|
15487
15497
|
name: "lchuv",
|
|
@@ -16461,21 +16471,21 @@ class Gv extends Xo {
|
|
|
16461
16471
|
forEachFeatureAtCoordinate(t, e, n, i, s, a, h, c) {
|
|
16462
16472
|
let d;
|
|
16463
16473
|
const f = e.viewState;
|
|
16464
|
-
function p(
|
|
16465
|
-
return s.call(a, T,
|
|
16474
|
+
function p(b, T, k, R) {
|
|
16475
|
+
return s.call(a, T, b ? k : null, R);
|
|
16466
16476
|
}
|
|
16467
16477
|
const m = f.projection, v = nf(t.slice(), m), E = [[0, 0]];
|
|
16468
16478
|
if (m.canWrapX() && i) {
|
|
16469
|
-
const
|
|
16479
|
+
const b = m.getExtent(), T = Mt(b);
|
|
16470
16480
|
E.push([-T, 0], [T, 0]);
|
|
16471
16481
|
}
|
|
16472
|
-
const
|
|
16482
|
+
const C = e.layerStatesArray, M = C.length, S = (
|
|
16473
16483
|
/** @type {Array<HitMatch<T>>} */
|
|
16474
16484
|
[]
|
|
16475
16485
|
), y = [];
|
|
16476
|
-
for (let
|
|
16486
|
+
for (let b = 0; b < E.length; b++)
|
|
16477
16487
|
for (let T = M - 1; T >= 0; --T) {
|
|
16478
|
-
const k =
|
|
16488
|
+
const k = C[T], R = k.layer;
|
|
16479
16489
|
if (R.hasRenderer() && mh(k, f) && h.call(c, R)) {
|
|
16480
16490
|
const I = R.getRenderer(), z = R.getSource();
|
|
16481
16491
|
if (I && z) {
|
|
@@ -16483,7 +16493,7 @@ class Gv extends Xo {
|
|
|
16483
16493
|
null,
|
|
16484
16494
|
k.managed
|
|
16485
16495
|
);
|
|
16486
|
-
y[0] = G[0] + E[
|
|
16496
|
+
y[0] = G[0] + E[b][0], y[1] = G[1] + E[b][1], d = I.forEachFeatureAtCoordinate(
|
|
16487
16497
|
y,
|
|
16488
16498
|
e,
|
|
16489
16499
|
n,
|
|
@@ -16498,7 +16508,7 @@ class Gv extends Xo {
|
|
|
16498
16508
|
if (S.length === 0)
|
|
16499
16509
|
return;
|
|
16500
16510
|
const x = 1 / S.length;
|
|
16501
|
-
return S.forEach((
|
|
16511
|
+
return S.forEach((b, T) => b.distanceSq += T * x), S.sort((b, T) => b.distanceSq - T.distanceSq), S.some((b) => d = b.callback(b.feature, b.layer, b.geometry)), d;
|
|
16502
16512
|
}
|
|
16503
16513
|
/**
|
|
16504
16514
|
* @param {import("../coordinate.js").Coordinate} coordinate Coordinate.
|
|
@@ -16669,11 +16679,11 @@ const Ml = {}, Kv = function() {
|
|
|
16669
16679
|
d + " " + f + " " + t + E,
|
|
16670
16680
|
i
|
|
16671
16681
|
), p != E) {
|
|
16672
|
-
const
|
|
16682
|
+
const C = Lo(
|
|
16673
16683
|
d + " " + f + " " + t + p + "," + E,
|
|
16674
16684
|
i
|
|
16675
16685
|
);
|
|
16676
|
-
m = m &&
|
|
16686
|
+
m = m && C != a;
|
|
16677
16687
|
}
|
|
16678
16688
|
}
|
|
16679
16689
|
return !!m;
|
|
@@ -16694,10 +16704,10 @@ const Ml = {}, Kv = function() {
|
|
|
16694
16704
|
return;
|
|
16695
16705
|
const p = f.families;
|
|
16696
16706
|
for (let m = 0, v = p.length; m < v; ++m) {
|
|
16697
|
-
const E = p[m],
|
|
16707
|
+
const E = p[m], C = f.style + `
|
|
16698
16708
|
` + f.weight + `
|
|
16699
16709
|
` + E;
|
|
16700
|
-
gi.get(
|
|
16710
|
+
gi.get(C) === void 0 && (gi.set(C, 100, !0), h(f.style, f.weight, E) || (gi.set(C, 0, !0), s === void 0 && (s = setInterval(c, 32))));
|
|
16701
16711
|
}
|
|
16702
16712
|
};
|
|
16703
16713
|
}(), qv = function() {
|
|
@@ -22813,7 +22823,7 @@ function Ox(r, t) {
|
|
|
22813
22823
|
r,
|
|
22814
22824
|
e + "placement",
|
|
22815
22825
|
t
|
|
22816
|
-
), E = me(r, e + "repeat", t),
|
|
22826
|
+
), E = me(r, e + "repeat", t), C = ga(r, e + "scale", t), M = rs(
|
|
22817
22827
|
r,
|
|
22818
22828
|
e + "rotate-with-view",
|
|
22819
22829
|
t
|
|
@@ -22825,7 +22835,7 @@ function Ox(r, t) {
|
|
|
22825
22835
|
r,
|
|
22826
22836
|
e + "justify",
|
|
22827
22837
|
t
|
|
22828
|
-
),
|
|
22838
|
+
), b = Hi(
|
|
22829
22839
|
r,
|
|
22830
22840
|
e + "baseline",
|
|
22831
22841
|
t
|
|
@@ -22841,7 +22851,7 @@ function Ox(r, t) {
|
|
|
22841
22851
|
throw new Error("Expected point or line for text-placement");
|
|
22842
22852
|
k.setPlacement(I);
|
|
22843
22853
|
}
|
|
22844
|
-
if (E && k.setRepeat(E(R)),
|
|
22854
|
+
if (E && k.setRepeat(E(R)), C && k.setScale(C(R)), M && k.setRotateWithView(M(R)), S && k.setRotation(S(R)), y) {
|
|
22845
22855
|
const I = y(R);
|
|
22846
22856
|
if (I !== "left" && I !== "center" && I !== "right" && I !== "end" && I !== "start")
|
|
22847
22857
|
throw new Error(
|
|
@@ -22855,8 +22865,8 @@ function Ox(r, t) {
|
|
|
22855
22865
|
throw new Error("Expected left, right, or center for text-justify");
|
|
22856
22866
|
k.setJustify(I);
|
|
22857
22867
|
}
|
|
22858
|
-
if (
|
|
22859
|
-
const I =
|
|
22868
|
+
if (b) {
|
|
22869
|
+
const I = b(R);
|
|
22860
22870
|
if (I !== "bottom" && I !== "top" && I !== "middle" && I !== "alphabetic" && I !== "hanging")
|
|
22861
22871
|
throw new Error(
|
|
22862
22872
|
"Expected bottom, top, middle, alphabetic, or hanging for text-baseline"
|
|
@@ -22896,18 +22906,18 @@ function zx(r, t) {
|
|
|
22896
22906
|
), v = Fu(
|
|
22897
22907
|
r,
|
|
22898
22908
|
e + "anchor-y-units"
|
|
22899
|
-
), E = Zx(r, e + "color"),
|
|
22909
|
+
), E = Zx(r, e + "color"), C = Ux(r, e + "cross-origin"), M = jx(r, e + "offset"), S = Ou(r, e + "offset-origin"), y = tr(r, e + "width"), x = tr(r, e + "height"), b = Gx(r, e + "size"), T = Ph(r, e + "declutter"), k = new Mh({
|
|
22900
22910
|
src: i,
|
|
22901
22911
|
anchorOrigin: p,
|
|
22902
22912
|
anchorXUnits: m,
|
|
22903
22913
|
anchorYUnits: v,
|
|
22904
22914
|
color: E,
|
|
22905
|
-
crossOrigin:
|
|
22915
|
+
crossOrigin: C,
|
|
22906
22916
|
offset: M,
|
|
22907
22917
|
offsetOrigin: S,
|
|
22908
22918
|
height: x,
|
|
22909
22919
|
width: y,
|
|
22910
|
-
size:
|
|
22920
|
+
size: b,
|
|
22911
22921
|
declutterMode: T
|
|
22912
22922
|
});
|
|
22913
22923
|
return function(R) {
|
|
@@ -22927,7 +22937,7 @@ function Nx(r, t) {
|
|
|
22927
22937
|
r,
|
|
22928
22938
|
e + "rotate-with-view",
|
|
22929
22939
|
t
|
|
22930
|
-
), p = tr(r, e + "radius"), m = tr(r, e + "radius1"), v = tr(r, e + "radius2"), E = tr(r, e + "angle"),
|
|
22940
|
+
), p = tr(r, e + "radius"), m = tr(r, e + "radius1"), v = tr(r, e + "radius2"), E = tr(r, e + "angle"), C = Ph(
|
|
22931
22941
|
r,
|
|
22932
22942
|
e + "declutter-mode"
|
|
22933
22943
|
), M = new Yf({
|
|
@@ -22936,7 +22946,7 @@ function Nx(r, t) {
|
|
|
22936
22946
|
radius1: m,
|
|
22937
22947
|
radius2: v,
|
|
22938
22948
|
angle: E,
|
|
22939
|
-
declutterMode:
|
|
22949
|
+
declutterMode: C
|
|
22940
22950
|
});
|
|
22941
22951
|
return function(S) {
|
|
22942
22952
|
return s && M.setFill(s(S)), a && M.setStroke(a(S)), c && M.setDisplacement(c(S)), d && M.setRotation(d(S)), f && M.setRotateWithView(f(S)), h && M.setScale(h(S)), M;
|
|
@@ -25031,7 +25041,7 @@ class bw {
|
|
|
25031
25041
|
const x = y[0] + "/" + y[1];
|
|
25032
25042
|
return h[x] || (h[x] = c(y)), h[x];
|
|
25033
25043
|
}, this.maxSourceExtent_ = i, this.errorThresholdSquared_ = s * s, this.triangles_ = [], this.wrapsXInSource_ = !1, this.canWrapXInSource_ = this.sourceProj_.canWrapX() && !!i && !!this.sourceProj_.getExtent() && Mt(i) >= Mt(this.sourceProj_.getExtent()), this.sourceWorldWidth_ = this.sourceProj_.getExtent() ? Mt(this.sourceProj_.getExtent()) : null, this.targetWorldWidth_ = this.targetProj_.getExtent() ? Mt(this.targetProj_.getExtent()) : null;
|
|
25034
|
-
const d = Cn(n), f = ta(n), p = $o(n), m = Qo(n), v = this.transformInv_(d), E = this.transformInv_(f),
|
|
25044
|
+
const d = Cn(n), f = ta(n), p = $o(n), m = Qo(n), v = this.transformInv_(d), E = this.transformInv_(f), C = this.transformInv_(p), M = this.transformInv_(m), S = Lw + (a ? Math.max(
|
|
25035
25045
|
0,
|
|
25036
25046
|
Math.ceil(
|
|
25037
25047
|
Math.log2(
|
|
@@ -25046,12 +25056,12 @@ class bw {
|
|
|
25046
25056
|
m,
|
|
25047
25057
|
v,
|
|
25048
25058
|
E,
|
|
25049
|
-
|
|
25059
|
+
C,
|
|
25050
25060
|
M,
|
|
25051
25061
|
S
|
|
25052
25062
|
), this.wrapsXInSource_) {
|
|
25053
25063
|
let y = 1 / 0;
|
|
25054
|
-
this.triangles_.forEach(function(x,
|
|
25064
|
+
this.triangles_.forEach(function(x, b, T) {
|
|
25055
25065
|
y = Math.min(
|
|
25056
25066
|
y,
|
|
25057
25067
|
x.source[0][0],
|
|
@@ -25064,22 +25074,22 @@ class bw {
|
|
|
25064
25074
|
x.source[1][0],
|
|
25065
25075
|
x.source[2][0]
|
|
25066
25076
|
) - y > this.sourceWorldWidth_ / 2) {
|
|
25067
|
-
const
|
|
25077
|
+
const b = [
|
|
25068
25078
|
[x.source[0][0], x.source[0][1]],
|
|
25069
25079
|
[x.source[1][0], x.source[1][1]],
|
|
25070
25080
|
[x.source[2][0], x.source[2][1]]
|
|
25071
25081
|
];
|
|
25072
|
-
|
|
25082
|
+
b[0][0] - y > this.sourceWorldWidth_ / 2 && (b[0][0] -= this.sourceWorldWidth_), b[1][0] - y > this.sourceWorldWidth_ / 2 && (b[1][0] -= this.sourceWorldWidth_), b[2][0] - y > this.sourceWorldWidth_ / 2 && (b[2][0] -= this.sourceWorldWidth_);
|
|
25073
25083
|
const T = Math.min(
|
|
25074
|
-
|
|
25075
|
-
|
|
25076
|
-
|
|
25084
|
+
b[0][0],
|
|
25085
|
+
b[1][0],
|
|
25086
|
+
b[2][0]
|
|
25077
25087
|
);
|
|
25078
25088
|
Math.max(
|
|
25079
|
-
|
|
25080
|
-
|
|
25081
|
-
|
|
25082
|
-
) - T < this.sourceWorldWidth_ / 2 && (x.source =
|
|
25089
|
+
b[0][0],
|
|
25090
|
+
b[1][0],
|
|
25091
|
+
b[2][0]
|
|
25092
|
+
) - T < this.sourceWorldWidth_ / 2 && (x.source = b);
|
|
25083
25093
|
}
|
|
25084
25094
|
});
|
|
25085
25095
|
}
|
|
@@ -25132,11 +25142,11 @@ class bw {
|
|
|
25132
25142
|
}
|
|
25133
25143
|
if (!E && this.maxSourceExtent_ && isFinite(f[0]) && isFinite(f[1]) && isFinite(f[2]) && isFinite(f[3]) && !_e(f, this.maxSourceExtent_))
|
|
25134
25144
|
return;
|
|
25135
|
-
let
|
|
25145
|
+
let C = 0;
|
|
25136
25146
|
if (!E && (!isFinite(s[0]) || !isFinite(s[1]) || !isFinite(a[0]) || !isFinite(a[1]) || !isFinite(h[0]) || !isFinite(h[1]) || !isFinite(c[0]) || !isFinite(c[1]))) {
|
|
25137
25147
|
if (d > 0)
|
|
25138
25148
|
E = !0;
|
|
25139
|
-
else if (
|
|
25149
|
+
else if (C = (!isFinite(s[0]) || !isFinite(s[1]) ? 8 : 0) + (!isFinite(a[0]) || !isFinite(a[1]) ? 4 : 0) + (!isFinite(h[0]) || !isFinite(h[1]) ? 2 : 0) + (!isFinite(c[0]) || !isFinite(c[1]) ? 1 : 0), C != 1 && C != 2 && C != 4 && C != 8)
|
|
25140
25150
|
return;
|
|
25141
25151
|
}
|
|
25142
25152
|
if (d > 0) {
|
|
@@ -25203,7 +25213,7 @@ class bw {
|
|
|
25203
25213
|
return;
|
|
25204
25214
|
this.wrapsXInSource_ = !0;
|
|
25205
25215
|
}
|
|
25206
|
-
|
|
25216
|
+
C & 11 || this.addTriangle_(t, n, i, s, h, c), C & 14 || this.addTriangle_(t, n, e, s, h, a), C && (C & 13 || this.addTriangle_(e, i, t, a, c, s), C & 7 || this.addTriangle_(e, i, n, a, c, h));
|
|
25207
25217
|
}
|
|
25208
25218
|
/**
|
|
25209
25219
|
* Calculates extent of the `source` coordinates from all the triangles.
|
|
@@ -25290,36 +25300,36 @@ function Sw(r, t, e, n, i, s, a, h, c, d, f, p, m) {
|
|
|
25290
25300
|
return Math.round(y * e) / e;
|
|
25291
25301
|
}
|
|
25292
25302
|
v.globalCompositeOperation = "lighter";
|
|
25293
|
-
const
|
|
25294
|
-
c.forEach(function(y, x,
|
|
25295
|
-
Qd(
|
|
25303
|
+
const C = Le();
|
|
25304
|
+
c.forEach(function(y, x, b) {
|
|
25305
|
+
Qd(C, y.extent);
|
|
25296
25306
|
});
|
|
25297
25307
|
let M;
|
|
25298
25308
|
if (!m || c.length !== 1 || d !== 0) {
|
|
25299
|
-
const y = Mt(
|
|
25309
|
+
const y = Mt(C), x = Ee(C);
|
|
25300
25310
|
M = se(
|
|
25301
25311
|
Math.round(e * y / n),
|
|
25302
25312
|
Math.round(e * x / n),
|
|
25303
25313
|
rr
|
|
25304
25314
|
), p || (M.imageSmoothingEnabled = !1);
|
|
25305
|
-
const
|
|
25315
|
+
const b = e / n;
|
|
25306
25316
|
c.forEach(function(T, k, R) {
|
|
25307
|
-
const I = T.extent[0] -
|
|
25317
|
+
const I = T.extent[0] - C[0], z = -(T.extent[3] - C[3]), G = Mt(T.extent), j = Ee(T.extent);
|
|
25308
25318
|
T.image.width > 0 && T.image.height > 0 && M.drawImage(
|
|
25309
25319
|
T.image,
|
|
25310
25320
|
d,
|
|
25311
25321
|
d,
|
|
25312
25322
|
T.image.width - 2 * d,
|
|
25313
25323
|
T.image.height - 2 * d,
|
|
25314
|
-
I *
|
|
25315
|
-
z *
|
|
25316
|
-
G *
|
|
25317
|
-
j *
|
|
25324
|
+
I * b,
|
|
25325
|
+
z * b,
|
|
25326
|
+
G * b,
|
|
25327
|
+
j * b
|
|
25318
25328
|
);
|
|
25319
25329
|
});
|
|
25320
25330
|
}
|
|
25321
25331
|
const S = Cn(a);
|
|
25322
|
-
return h.getTriangles().forEach(function(y, x,
|
|
25332
|
+
return h.getTriangles().forEach(function(y, x, b) {
|
|
25323
25333
|
const T = y.source, k = y.target;
|
|
25324
25334
|
let R = T[0][0], I = T[0][1], z = T[1][0], G = T[1][1], j = T[2][0], W = T[2][1];
|
|
25325
25335
|
const Y = E((k[0][0] - S[0]) / s), J = E(
|
|
@@ -25360,8 +25370,8 @@ function Sw(r, t, e, n, i, s, a, h, c, d, f, p, m) {
|
|
|
25360
25370
|
Y,
|
|
25361
25371
|
J
|
|
25362
25372
|
), v.translate(
|
|
25363
|
-
|
|
25364
|
-
|
|
25373
|
+
C[0] - yt,
|
|
25374
|
+
C[3] - H
|
|
25365
25375
|
);
|
|
25366
25376
|
let xt;
|
|
25367
25377
|
if (M)
|
|
@@ -25377,7 +25387,7 @@ function Sw(r, t, e, n, i, s, a, h, c, d, f, p, m) {
|
|
|
25377
25387
|
);
|
|
25378
25388
|
}
|
|
25379
25389
|
v.drawImage(xt, 0, 0), v.restore();
|
|
25380
|
-
}), M && (la(M), rr.push(M.canvas)), f && (v.save(), v.globalCompositeOperation = "source-over", v.strokeStyle = "black", v.lineWidth = 1, h.getTriangles().forEach(function(y, x,
|
|
25390
|
+
}), M && (la(M), rr.push(M.canvas)), f && (v.save(), v.globalCompositeOperation = "source-over", v.strokeStyle = "black", v.lineWidth = 1, h.getTriangles().forEach(function(y, x, b) {
|
|
25381
25391
|
const T = y.target, k = (T[0][0] - S[0]) / s, R = -(T[0][1] - S[1]) / s, I = (T[1][0] - S[0]) / s, z = -(T[1][1] - S[1]) / s, G = (T[2][0] - S[0]) / s, j = -(T[2][1] - S[1]) / s;
|
|
25382
25392
|
v.beginPath(), v.moveTo(I, z), v.lineTo(k, R), v.lineTo(G, j), v.closePath(), v.stroke();
|
|
25383
25393
|
}), v.restore()), v.canvas;
|
|
@@ -25403,14 +25413,14 @@ class Pw extends ag {
|
|
|
25403
25413
|
const v = i.getTileCoordExtent(
|
|
25404
25414
|
this.wrappedTileCoord_
|
|
25405
25415
|
), E = this.targetTileGrid_.getExtent();
|
|
25406
|
-
let
|
|
25416
|
+
let C = this.sourceTileGrid_.getExtent();
|
|
25407
25417
|
const M = E ? Br(v, E) : v;
|
|
25408
25418
|
if (vl(M) === 0) {
|
|
25409
25419
|
this.state = it.EMPTY;
|
|
25410
25420
|
return;
|
|
25411
25421
|
}
|
|
25412
25422
|
const S = t.getExtent();
|
|
25413
|
-
S && (
|
|
25423
|
+
S && (C ? C = Br(C, S) : C = S);
|
|
25414
25424
|
const y = i.getResolution(
|
|
25415
25425
|
this.wrappedTileCoord_[0]
|
|
25416
25426
|
), x = Mw(
|
|
@@ -25423,13 +25433,13 @@ class Pw extends ag {
|
|
|
25423
25433
|
this.state = it.EMPTY;
|
|
25424
25434
|
return;
|
|
25425
25435
|
}
|
|
25426
|
-
const
|
|
25436
|
+
const b = f !== void 0 ? f : ww;
|
|
25427
25437
|
if (this.triangulation_ = new Cw(
|
|
25428
25438
|
t,
|
|
25429
25439
|
n,
|
|
25430
25440
|
M,
|
|
25431
|
-
|
|
25432
|
-
x *
|
|
25441
|
+
C,
|
|
25442
|
+
x * b,
|
|
25433
25443
|
y
|
|
25434
25444
|
), this.triangulation_.getTriangles().length === 0) {
|
|
25435
25445
|
this.state = it.EMPTY;
|
|
@@ -25437,15 +25447,15 @@ class Pw extends ag {
|
|
|
25437
25447
|
}
|
|
25438
25448
|
this.sourceZ_ = e.getZForResolution(x);
|
|
25439
25449
|
let T = this.triangulation_.calculateSourceExtent();
|
|
25440
|
-
if (
|
|
25450
|
+
if (C && (t.canWrapX() ? (T[1] = Ft(
|
|
25441
25451
|
T[1],
|
|
25442
|
-
|
|
25443
|
-
|
|
25452
|
+
C[1],
|
|
25453
|
+
C[3]
|
|
25444
25454
|
), T[3] = Ft(
|
|
25445
25455
|
T[3],
|
|
25446
|
-
|
|
25447
|
-
|
|
25448
|
-
)) : T = Br(T,
|
|
25456
|
+
C[1],
|
|
25457
|
+
C[3]
|
|
25458
|
+
)) : T = Br(T, C)), !vl(T))
|
|
25449
25459
|
this.state = it.EMPTY;
|
|
25450
25460
|
else {
|
|
25451
25461
|
const k = e.getTileRangeForExtentAndZ(
|
|
@@ -27928,7 +27938,7 @@ class aE extends oE {
|
|
|
27928
27938
|
const m = this.getTileGridForProjection(a), v = this.getTileGridForProjection(s), E = this.getTileCoordForTileUrlFunction(
|
|
27929
27939
|
c,
|
|
27930
27940
|
s
|
|
27931
|
-
),
|
|
27941
|
+
), C = new Al(
|
|
27932
27942
|
a,
|
|
27933
27943
|
m,
|
|
27934
27944
|
s,
|
|
@@ -27942,7 +27952,7 @@ class aE extends oE {
|
|
|
27942
27952
|
this.renderReprojectionEdges_,
|
|
27943
27953
|
this.tileOptions
|
|
27944
27954
|
);
|
|
27945
|
-
return
|
|
27955
|
+
return C.key = p, d ? (C.interimTile = d, C.refreshInterimChain(), h.replace(f, C)) : h.set(f, C), C;
|
|
27946
27956
|
}
|
|
27947
27957
|
/**
|
|
27948
27958
|
* @param {number} z Tile coordinate z.
|
|
@@ -28347,14 +28357,14 @@ class vE extends mg {
|
|
|
28347
28357
|
return null;
|
|
28348
28358
|
if (E.getState() !== it.LOADED)
|
|
28349
28359
|
continue;
|
|
28350
|
-
const
|
|
28351
|
-
p * ((i[0] -
|
|
28360
|
+
const C = f.getOrigin(m), M = we(f.getTileSize(m)), S = f.getResolution(m), y = Math.floor(
|
|
28361
|
+
p * ((i[0] - C[0]) / S - v[1] * M[0])
|
|
28352
28362
|
), x = Math.floor(
|
|
28353
|
-
p * ((
|
|
28354
|
-
),
|
|
28363
|
+
p * ((C[1] - i[1]) / S - v[2] * M[1])
|
|
28364
|
+
), b = Math.round(
|
|
28355
28365
|
p * d.getGutterForProjection(c.projection)
|
|
28356
28366
|
);
|
|
28357
|
-
return this.getImageData(E.getImage(), y +
|
|
28367
|
+
return this.getImageData(E.getImage(), y + b, x + b);
|
|
28358
28368
|
}
|
|
28359
28369
|
return null;
|
|
28360
28370
|
}
|
|
@@ -28382,14 +28392,14 @@ class vE extends mg {
|
|
|
28382
28392
|
* @return {HTMLElement} The rendered element.
|
|
28383
28393
|
*/
|
|
28384
28394
|
renderFrame(t, e) {
|
|
28385
|
-
const n = t.layerStatesArray[t.layerIndex], i = t.viewState, s = i.projection, a = i.resolution, h = i.center, c = i.rotation, d = t.pixelRatio, f = this.getLayer(), p = f.getSource(), m = p.getRevision(), v = p.getTileGridForProjection(s), E = v.getZForResolution(a, p.zDirection),
|
|
28395
|
+
const n = t.layerStatesArray[t.layerIndex], i = t.viewState, s = i.projection, a = i.resolution, h = i.center, c = i.rotation, d = t.pixelRatio, f = this.getLayer(), p = f.getSource(), m = p.getRevision(), v = p.getTileGridForProjection(s), E = v.getZForResolution(a, p.zDirection), C = v.getResolution(E);
|
|
28386
28396
|
let M = t.extent;
|
|
28387
|
-
const S = t.viewState.resolution, y = p.getTilePixelRatio(d), x = Math.round(Mt(M) / S * d),
|
|
28397
|
+
const S = t.viewState.resolution, y = p.getTilePixelRatio(d), x = Math.round(Mt(M) / S * d), b = Math.round(Ee(M) / S * d), T = n.extent && mn(n.extent);
|
|
28388
28398
|
T && (M = Br(
|
|
28389
28399
|
M,
|
|
28390
28400
|
mn(n.extent)
|
|
28391
28401
|
));
|
|
28392
|
-
const k =
|
|
28402
|
+
const k = C * x / 2 / y, R = C * b / 2 / y, I = [
|
|
28393
28403
|
h[0] - k,
|
|
28394
28404
|
h[1] - R,
|
|
28395
28405
|
h[0] + k,
|
|
@@ -28436,7 +28446,7 @@ class vE extends mg {
|
|
|
28436
28446
|
W
|
|
28437
28447
|
);
|
|
28438
28448
|
}
|
|
28439
|
-
const V =
|
|
28449
|
+
const V = C / a * d / y;
|
|
28440
28450
|
Be(
|
|
28441
28451
|
this.pixelTransform,
|
|
28442
28452
|
t.size[0] / 2,
|
|
@@ -28445,7 +28455,7 @@ class vE extends mg {
|
|
|
28445
28455
|
1 / d,
|
|
28446
28456
|
c,
|
|
28447
28457
|
-x / 2,
|
|
28448
|
-
-
|
|
28458
|
+
-b / 2
|
|
28449
28459
|
);
|
|
28450
28460
|
const X = mf(this.pixelTransform);
|
|
28451
28461
|
this.useContainer(e, X, this.getBackground(t));
|
|
@@ -28453,13 +28463,13 @@ class vE extends mg {
|
|
|
28453
28463
|
ia(this.inversePixelTransform, this.pixelTransform), Be(
|
|
28454
28464
|
this.tempTransform,
|
|
28455
28465
|
x / 2,
|
|
28456
|
-
|
|
28466
|
+
b / 2,
|
|
28457
28467
|
V,
|
|
28458
28468
|
V,
|
|
28459
28469
|
0,
|
|
28460
28470
|
-x / 2,
|
|
28461
|
-
-
|
|
28462
|
-
), U.width != x || U.height !=
|
|
28471
|
+
-b / 2
|
|
28472
|
+
), U.width != x || U.height != b ? (U.width = x, U.height = b) : this.containerReused || Z.clearRect(0, 0, x, b), T && this.clipUnrotated(Z, t, T), p.getInterpolate() || (Z.imageSmoothingEnabled = !1), this.preRender(Z, t), this.renderedTiles.length = 0;
|
|
28463
28473
|
let yt = Object.keys(G).map(Number);
|
|
28464
28474
|
yt.sort(qi);
|
|
28465
28475
|
let H, ot, F;
|
|
@@ -28469,12 +28479,12 @@ class vE extends mg {
|
|
|
28469
28479
|
$,
|
|
28470
28480
|
d,
|
|
28471
28481
|
s
|
|
28472
|
-
), kt = v.getResolution($) /
|
|
28482
|
+
), kt = v.getResolution($) / C, Zt = tt[0] * kt * V, be = tt[1] * kt * V, Ue = v.getTileCoordForCoordAndZ(
|
|
28473
28483
|
Cn(I),
|
|
28474
28484
|
$
|
|
28475
28485
|
), Mi = v.getTileCoordExtent(Ue), Ce = Gt(this.tempTransform, [
|
|
28476
|
-
y * (Mi[0] - I[0]) /
|
|
28477
|
-
y * (I[3] - Mi[3]) /
|
|
28486
|
+
y * (Mi[0] - I[0]) / C,
|
|
28487
|
+
y * (I[3] - Mi[3]) / C
|
|
28478
28488
|
]), Si = y * p.getGutterForProjection(s), je = G[$];
|
|
28479
28489
|
for (const Pi in je) {
|
|
28480
28490
|
const ke = (
|
|
@@ -28508,7 +28518,7 @@ class vE extends mg {
|
|
|
28508
28518
|
), H && !We ? (Ae && Z.restore(), this.renderedTiles.unshift(ke)) : this.renderedTiles.push(ke), this.updateUsedTiles(t.usedTiles, p, ke);
|
|
28509
28519
|
}
|
|
28510
28520
|
}
|
|
28511
|
-
return this.renderedRevision = m, this.renderedResolution =
|
|
28521
|
+
return this.renderedRevision = m, this.renderedResolution = C, this.extentChanged = !this.renderedExtent_ || !lr(this.renderedExtent_, I), this.renderedExtent_ = I, this.renderedPixelRatio = d, this.renderedProjection = s, this.manageTilePyramid(
|
|
28512
28522
|
t,
|
|
28513
28523
|
p,
|
|
28514
28524
|
v,
|
|
@@ -28613,22 +28623,22 @@ class vE extends mg {
|
|
|
28613
28623
|
manageTilePyramid(t, e, n, i, s, a, h, c, d) {
|
|
28614
28624
|
const f = dt(e);
|
|
28615
28625
|
f in t.wantedTiles || (t.wantedTiles[f] = {});
|
|
28616
|
-
const p = t.wantedTiles[f], m = t.tileQueue, v = n.getMinZoom(), E = t.viewState.rotation,
|
|
28626
|
+
const p = t.wantedTiles[f], m = t.tileQueue, v = n.getMinZoom(), E = t.viewState.rotation, C = E ? wl(
|
|
28617
28627
|
t.viewState.center,
|
|
28618
28628
|
t.viewState.resolution,
|
|
28619
28629
|
E,
|
|
28620
28630
|
t.size
|
|
28621
28631
|
) : void 0;
|
|
28622
|
-
let M = 0, S, y, x,
|
|
28632
|
+
let M = 0, S, y, x, b, T, k;
|
|
28623
28633
|
for (k = v; k <= h; ++k)
|
|
28624
|
-
for (y = n.getTileRangeForExtentAndZ(a, k, y), x = n.getResolution(k),
|
|
28634
|
+
for (y = n.getTileRangeForExtentAndZ(a, k, y), x = n.getResolution(k), b = y.minX; b <= y.maxX; ++b)
|
|
28625
28635
|
for (T = y.minY; T <= y.maxY; ++T)
|
|
28626
|
-
E && !n.tileCoordIntersectsViewport([k,
|
|
28636
|
+
E && !n.tileCoordIntersectsViewport([k, b, T], C) || (h - k <= c ? (++M, S = e.getTile(k, b, T, i, s), S.getState() == it.IDLE && (p[S.getKey()] = !0, m.isKeyQueued(S.getKey()) || m.enqueue([
|
|
28627
28637
|
S,
|
|
28628
28638
|
f,
|
|
28629
28639
|
n.getTileCoordCenter(S.tileCoord),
|
|
28630
28640
|
x
|
|
28631
|
-
])), d !== void 0 && d(S)) : e.useTile(k,
|
|
28641
|
+
])), d !== void 0 && d(S)) : e.useTile(k, b, T, s));
|
|
28632
28642
|
e.updateCacheSize(M, s);
|
|
28633
28643
|
}
|
|
28634
28644
|
}
|
|
@@ -29214,8 +29224,8 @@ function Po(r, t, e, n, i, s, a) {
|
|
|
29214
29224
|
const S = r[M], y = r[M + 1];
|
|
29215
29225
|
m += Math.sqrt((S - f) * (S - f) + (y - p) * (y - p)), v.push(m), f = S, p = y;
|
|
29216
29226
|
}
|
|
29217
|
-
const E = i * m,
|
|
29218
|
-
|
|
29227
|
+
const E = i * m, C = fy(v, E);
|
|
29228
|
+
C < 0 ? (c = (E - v[-C - 2]) / (v[-C - 1] - v[-C - 2]), h = t + (-C - 2) * n) : h = t + C * n;
|
|
29219
29229
|
}
|
|
29220
29230
|
a = a > 1 ? a : 2, s = s || new Array(a);
|
|
29221
29231
|
for (let f = 0; f < a; ++f)
|
|
@@ -32162,9 +32172,9 @@ class eL extends Lg {
|
|
|
32162
32172
|
a && (e += i);
|
|
32163
32173
|
let f = t[e], p = t[e + 1];
|
|
32164
32174
|
const m = this.tmpCoordinate_;
|
|
32165
|
-
let v = !0, E,
|
|
32175
|
+
let v = !0, E, C, M;
|
|
32166
32176
|
for (E = e + i; E < n; E += i)
|
|
32167
|
-
m[0] = t[E], m[1] = t[E + 1], M = yl(d, m), M !==
|
|
32177
|
+
m[0] = t[E], m[1] = t[E + 1], M = yl(d, m), M !== C ? (v && (h[c++] = f, h[c++] = p, v = !1), h[c++] = m[0], h[c++] = m[1]) : M === Yt.INTERSECTING ? (h[c++] = m[0], h[c++] = m[1], v = !1) : v = !0, f = m[0], p = m[1], C = M;
|
|
32168
32178
|
return (s && v || E === e + i) && (h[c++] = f, h[c++] = p), c;
|
|
32169
32179
|
}
|
|
32170
32180
|
/**
|
|
@@ -32208,7 +32218,7 @@ class eL extends Lg {
|
|
|
32208
32218
|
t.getEndss()
|
|
32209
32219
|
);
|
|
32210
32220
|
m = 0;
|
|
32211
|
-
for (let E = 0,
|
|
32221
|
+
for (let E = 0, C = v.length; E < C; ++E) {
|
|
32212
32222
|
const M = [];
|
|
32213
32223
|
m = this.drawCustomCoordinates_(
|
|
32214
32224
|
c,
|
|
@@ -32865,25 +32875,25 @@ function aL(r, t, e, n, i) {
|
|
|
32865
32875
|
(p - d) * (p - d) + (m - f) * (m - f)
|
|
32866
32876
|
);
|
|
32867
32877
|
if (h += v, h >= r) {
|
|
32868
|
-
const E = (r - h + v) / v,
|
|
32869
|
-
c.push(
|
|
32878
|
+
const E = (r - h + v) / v, C = xe(d, p, E), M = xe(f, m, E);
|
|
32879
|
+
c.push(C, M), s.push(c), c = [C, M], h == r && (a += i), h = 0;
|
|
32870
32880
|
} else if (h < r)
|
|
32871
32881
|
c.push(
|
|
32872
32882
|
t[a + i],
|
|
32873
32883
|
t[a + i + 1]
|
|
32874
32884
|
), a += i;
|
|
32875
32885
|
else {
|
|
32876
|
-
const E = v - h,
|
|
32877
|
-
c.push(
|
|
32886
|
+
const E = v - h, C = xe(d, p, E / v), M = xe(f, m, E / v);
|
|
32887
|
+
c.push(C, M), s.push(c), c = [C, M], h = 0, a += i;
|
|
32878
32888
|
}
|
|
32879
32889
|
}
|
|
32880
32890
|
return h > 0 && s.push(c), s;
|
|
32881
32891
|
}
|
|
32882
32892
|
function lL(r, t, e, n, i) {
|
|
32883
|
-
let s = e, a = e, h = 0, c = 0, d = e, f, p, m, v, E,
|
|
32893
|
+
let s = e, a = e, h = 0, c = 0, d = e, f, p, m, v, E, C, M, S, y, x;
|
|
32884
32894
|
for (p = e; p < n; p += i) {
|
|
32885
|
-
const
|
|
32886
|
-
E !== void 0 && (y =
|
|
32895
|
+
const b = t[p], T = t[p + 1];
|
|
32896
|
+
E !== void 0 && (y = b - E, x = T - C, v = Math.sqrt(y * y + x * x), M !== void 0 && (c += m, f = Math.acos((M * y + S * x) / (m * v)), f > r && (c > h && (h = c, s = d, a = p), c = 0, d = p - i)), m = v, M = y, S = x), E = b, C = T;
|
|
32887
32897
|
}
|
|
32888
32898
|
return c += v, c > h ? [d, p] : [s, a];
|
|
32889
32899
|
}
|
|
@@ -32941,43 +32951,43 @@ class hL extends ps {
|
|
|
32941
32951
|
p = /** @type {import("../../geom/Polygon.js").default} */
|
|
32942
32952
|
t.getEnds().slice(0, 1);
|
|
32943
32953
|
else if (c == "MultiPolygon") {
|
|
32944
|
-
const
|
|
32954
|
+
const C = (
|
|
32945
32955
|
/** @type {import("../../geom/MultiPolygon.js").default} */
|
|
32946
32956
|
t.getEndss()
|
|
32947
32957
|
);
|
|
32948
32958
|
p = [];
|
|
32949
|
-
for (let M = 0, S =
|
|
32950
|
-
p.push(
|
|
32959
|
+
for (let M = 0, S = C.length; M < S; ++M)
|
|
32960
|
+
p.push(C[M][0]);
|
|
32951
32961
|
}
|
|
32952
32962
|
this.beginGeometry(t, e);
|
|
32953
32963
|
const m = s.repeat, v = m ? void 0 : s.textAlign;
|
|
32954
32964
|
let E = 0;
|
|
32955
|
-
for (let
|
|
32965
|
+
for (let C = 0, M = p.length; C < M; ++C) {
|
|
32956
32966
|
let S;
|
|
32957
32967
|
m ? S = aL(
|
|
32958
32968
|
m * this.resolution,
|
|
32959
32969
|
d,
|
|
32960
32970
|
E,
|
|
32961
|
-
p[
|
|
32971
|
+
p[C],
|
|
32962
32972
|
f
|
|
32963
|
-
) : S = [d.slice(E, p[
|
|
32973
|
+
) : S = [d.slice(E, p[C])];
|
|
32964
32974
|
for (let y = 0, x = S.length; y < x; ++y) {
|
|
32965
|
-
const
|
|
32966
|
-
let T = 0, k =
|
|
32975
|
+
const b = S[y];
|
|
32976
|
+
let T = 0, k = b.length;
|
|
32967
32977
|
if (v == null) {
|
|
32968
32978
|
const I = lL(
|
|
32969
32979
|
s.maxAngle,
|
|
32970
|
-
|
|
32980
|
+
b,
|
|
32971
32981
|
0,
|
|
32972
|
-
|
|
32982
|
+
b.length,
|
|
32973
32983
|
2
|
|
32974
32984
|
);
|
|
32975
32985
|
T = I[0], k = I[1];
|
|
32976
32986
|
}
|
|
32977
32987
|
for (let I = T; I < k; I += f)
|
|
32978
|
-
a.push(
|
|
32988
|
+
a.push(b[I], b[I + 1]);
|
|
32979
32989
|
const R = a.length;
|
|
32980
|
-
E = p[
|
|
32990
|
+
E = p[C], this.drawChars_(h, R), h = R;
|
|
32981
32991
|
}
|
|
32982
32992
|
}
|
|
32983
32993
|
this.endGeometry(e);
|
|
@@ -33024,8 +33034,8 @@ class hL extends ps {
|
|
|
33024
33034
|
if (p && (m - h) / 2 !== d.length / f) {
|
|
33025
33035
|
let S = h / 2;
|
|
33026
33036
|
p = p.filter((y, x) => {
|
|
33027
|
-
const
|
|
33028
|
-
return
|
|
33037
|
+
const b = a[(S + x) * 2] === d[x * f] && a[(S + x) * 2 + 1] === d[x * f + 1];
|
|
33038
|
+
return b || --S, b;
|
|
33029
33039
|
});
|
|
33030
33040
|
}
|
|
33031
33041
|
this.saveTextStates_(), (s.backgroundFill || s.backgroundStroke) && (this.setFillStrokeStyle(
|
|
@@ -33034,8 +33044,8 @@ class hL extends ps {
|
|
|
33034
33044
|
), s.backgroundFill && this.updateFillStyle(this.state, this.createFill), s.backgroundStroke && (this.updateStrokeStyle(this.state, this.applyStroke), this.hitDetectionInstructions.push(this.createStroke(this.state)))), this.beginGeometry(t, e);
|
|
33035
33045
|
let v = s.padding;
|
|
33036
33046
|
if (v != vn && (s.scale[0] < 0 || s.scale[1] < 0)) {
|
|
33037
|
-
let S = s.padding[0], y = s.padding[1], x = s.padding[2],
|
|
33038
|
-
s.scale[0] < 0 && (y = -y,
|
|
33047
|
+
let S = s.padding[0], y = s.padding[1], x = s.padding[2], b = s.padding[3];
|
|
33048
|
+
s.scale[0] < 0 && (y = -y, b = -b), s.scale[1] < 0 && (S = -S, x = -x), v = [S, y, x, b];
|
|
33039
33049
|
}
|
|
33040
33050
|
const E = this.pixelRatio;
|
|
33041
33051
|
this.instructions.push([
|
|
@@ -33068,7 +33078,7 @@ class hL extends ps {
|
|
|
33068
33078
|
this.textOffsetY_,
|
|
33069
33079
|
p
|
|
33070
33080
|
]);
|
|
33071
|
-
const
|
|
33081
|
+
const C = 1 / E, M = this.state.fillStyle;
|
|
33072
33082
|
s.backgroundFill && (this.state.fillStyle = pe, this.hitDetectionInstructions.push(this.createFill(this.state))), this.hitDetectionInstructions.push([
|
|
33073
33083
|
rt.DRAW_IMAGE,
|
|
33074
33084
|
h,
|
|
@@ -33082,7 +33092,7 @@ class hL extends ps {
|
|
|
33082
33092
|
0,
|
|
33083
33093
|
this.textRotateWithView_,
|
|
33084
33094
|
this.textRotation_,
|
|
33085
|
-
[
|
|
33095
|
+
[C, C],
|
|
33086
33096
|
NaN,
|
|
33087
33097
|
void 0,
|
|
33088
33098
|
this.declutterImageWithText_,
|
|
@@ -33187,8 +33197,8 @@ class hL extends ps {
|
|
|
33187
33197
|
else {
|
|
33188
33198
|
s = this.textStrokeState_, s || (s = /** @type {import("../canvas.js").StrokeState} */
|
|
33189
33199
|
{}, this.textStrokeState_ = s);
|
|
33190
|
-
const E = h.getLineDash(),
|
|
33191
|
-
s.lineCap = h.getLineCap() || hr, s.lineDash = E ? E.slice() : wi, s.lineDashOffset =
|
|
33200
|
+
const E = h.getLineDash(), C = h.getLineDashOffset(), M = h.getWidth(), S = h.getMiterLimit();
|
|
33201
|
+
s.lineCap = h.getLineCap() || hr, s.lineDash = E ? E.slice() : wi, s.lineDashOffset = C === void 0 ? Ei : C, s.lineJoin = h.getLineJoin() || cr, s.lineWidth = M === void 0 ? es : M, s.miterLimit = S === void 0 ? Qr : S, s.strokeStyle = ti(
|
|
33192
33202
|
h.getColor() || $r
|
|
33193
33203
|
);
|
|
33194
33204
|
}
|
|
@@ -33260,37 +33270,37 @@ class uL {
|
|
|
33260
33270
|
}
|
|
33261
33271
|
const nd = uL;
|
|
33262
33272
|
function dL(r, t, e, n, i, s, a, h, c, d, f, p) {
|
|
33263
|
-
let m = r[t], v = r[t + 1], E = 0,
|
|
33273
|
+
let m = r[t], v = r[t + 1], E = 0, C = 0, M = 0, S = 0;
|
|
33264
33274
|
function y() {
|
|
33265
|
-
E = m,
|
|
33275
|
+
E = m, C = v, t += n, m = r[t], v = r[t + 1], S += M, M = Math.sqrt((m - E) * (m - E) + (v - C) * (v - C));
|
|
33266
33276
|
}
|
|
33267
33277
|
do
|
|
33268
33278
|
y();
|
|
33269
33279
|
while (t < e - n && S + M < s);
|
|
33270
33280
|
let x = M === 0 ? 0 : (s - S) / M;
|
|
33271
|
-
const
|
|
33281
|
+
const b = xe(E, m, x), T = xe(C, v, x), k = t - n, R = S, I = s + h * c(d, i, f);
|
|
33272
33282
|
for (; t < e - n && S + M < I; )
|
|
33273
33283
|
y();
|
|
33274
33284
|
x = M === 0 ? 0 : (I - S) / M;
|
|
33275
|
-
const z = xe(E, m, x), G = xe(
|
|
33285
|
+
const z = xe(E, m, x), G = xe(C, v, x);
|
|
33276
33286
|
let j;
|
|
33277
33287
|
if (p) {
|
|
33278
|
-
const X = [
|
|
33288
|
+
const X = [b, T, z, G];
|
|
33279
33289
|
yf(X, 0, 4, 2, p, X, X), j = X[0] > X[2];
|
|
33280
33290
|
} else
|
|
33281
|
-
j =
|
|
33291
|
+
j = b > z;
|
|
33282
33292
|
const W = Math.PI, Y = [], J = k + n === t;
|
|
33283
33293
|
t = k, M = 0, S = R, m = r[t], v = r[t + 1];
|
|
33284
33294
|
let V;
|
|
33285
33295
|
if (J) {
|
|
33286
|
-
y(), V = Math.atan2(v -
|
|
33287
|
-
const X = (z +
|
|
33296
|
+
y(), V = Math.atan2(v - C, m - E), j && (V += V > 0 ? -W : W);
|
|
33297
|
+
const X = (z + b) / 2, Z = (G + T) / 2;
|
|
33288
33298
|
return Y[0] = [X, Z, (I - s) / 2, V, i], Y;
|
|
33289
33299
|
}
|
|
33290
33300
|
i = i.replace(/\n/g, " ");
|
|
33291
33301
|
for (let X = 0, Z = i.length; X < Z; ) {
|
|
33292
33302
|
y();
|
|
33293
|
-
let U = Math.atan2(v -
|
|
33303
|
+
let U = Math.atan2(v - C, m - E);
|
|
33294
33304
|
if (j && (U += U > 0 ? -W : W), V !== void 0) {
|
|
33295
33305
|
let $ = U - V;
|
|
33296
33306
|
if ($ += $ > W ? -2 * W : $ < -W ? 2 * W : 0, Math.abs($) > a)
|
|
@@ -33309,7 +33319,7 @@ function dL(r, t, e, n, i, s, a, h, c, d, f, p) {
|
|
|
33309
33319
|
continue;
|
|
33310
33320
|
const ot = j ? i.substring(Z - yt, Z - X) : i.substring(yt, X);
|
|
33311
33321
|
x = M === 0 ? 0 : (s + H / 2 - S) / M;
|
|
33312
|
-
const F = xe(E, m, x), xt = xe(
|
|
33322
|
+
const F = xe(E, m, x), xt = xe(C, v, x);
|
|
33313
33323
|
Y.push([F, xt, H / 2, U, ot]), s += H;
|
|
33314
33324
|
}
|
|
33315
33325
|
return Y;
|
|
@@ -33358,24 +33368,24 @@ class gL {
|
|
|
33358
33368
|
Array.isArray(t) ? t[0] : t,
|
|
33359
33369
|
c.textAlign || ts
|
|
33360
33370
|
), v = i && a.lineWidth ? a.lineWidth : 0, E = p ? t : t.split(`
|
|
33361
|
-
`).reduce(fL, []), { width:
|
|
33371
|
+
`).reduce(fL, []), { width: C, height: M, widths: S, heights: y, lineWidths: x } = Jv(
|
|
33362
33372
|
c,
|
|
33363
33373
|
E
|
|
33364
|
-
),
|
|
33374
|
+
), b = C + v, T = [], k = (b + 2) * f[0], R = (M + v) * f[1], I = {
|
|
33365
33375
|
width: k < 0 ? Math.floor(k) : Math.ceil(k),
|
|
33366
33376
|
height: R < 0 ? Math.floor(R) : Math.ceil(R),
|
|
33367
33377
|
contextInstructions: T
|
|
33368
33378
|
};
|
|
33369
33379
|
(f[0] != 1 || f[1] != 1) && T.push("scale", f), i && (T.push("strokeStyle", a.strokeStyle), T.push("lineWidth", v), T.push("lineCap", a.lineCap), T.push("lineJoin", a.lineJoin), T.push("miterLimit", a.miterLimit), T.push("setLineDash", [a.lineDash]), T.push("lineDashOffset", a.lineDashOffset)), n && T.push("fillStyle", h.fillStyle), T.push("textBaseline", "middle"), T.push("textAlign", "center");
|
|
33370
33380
|
const z = 0.5 - m;
|
|
33371
|
-
let G = m *
|
|
33381
|
+
let G = m * b + z * v;
|
|
33372
33382
|
const j = [], W = [];
|
|
33373
33383
|
let Y = 0, J = 0, V = 0, X = 0, Z;
|
|
33374
33384
|
for (let U = 0, yt = E.length; U < yt; U += 2) {
|
|
33375
33385
|
const H = E[U];
|
|
33376
33386
|
if (H === `
|
|
33377
33387
|
`) {
|
|
33378
|
-
J += Y, Y = 0, G = m *
|
|
33388
|
+
J += Y, Y = 0, G = m * b + z * v, ++X;
|
|
33379
33389
|
continue;
|
|
33380
33390
|
}
|
|
33381
33391
|
const ot = E[U + 1] || c.font;
|
|
@@ -33426,11 +33436,11 @@ class gL {
|
|
|
33426
33436
|
* @param {import("../../Feature.js").FeatureLike} feature Feature.
|
|
33427
33437
|
* @return {ImageOrLabelDimensions} Dimensions for positioning and decluttering the image or label.
|
|
33428
33438
|
*/
|
|
33429
|
-
calculateImageOrLabelDimensions_(t, e, n, i, s, a, h, c, d, f, p, m, v, E,
|
|
33439
|
+
calculateImageOrLabelDimensions_(t, e, n, i, s, a, h, c, d, f, p, m, v, E, C, M) {
|
|
33430
33440
|
h *= m[0], c *= m[1];
|
|
33431
33441
|
let S = n - h, y = i - c;
|
|
33432
|
-
const x = s + d > t ? t - d : s,
|
|
33433
|
-
(
|
|
33442
|
+
const x = s + d > t ? t - d : s, b = a + f > e ? e - f : a, T = E[3] + x * m[0] + E[1], k = E[0] + b * m[1] + E[2], R = S - E[3], I = y - E[0];
|
|
33443
|
+
(C || p !== 0) && (Ui[0] = R, ji[0] = R, Ui[1] = I, ui[1] = I, ui[0] = R + T, di[0] = ui[0], di[1] = I + k, ji[1] = di[1]);
|
|
33434
33444
|
let z;
|
|
33435
33445
|
return p !== 0 ? (z = Be(
|
|
33436
33446
|
Kt(),
|
|
@@ -33457,7 +33467,7 @@ class gL {
|
|
|
33457
33467
|
drawImageX: S,
|
|
33458
33468
|
drawImageY: y,
|
|
33459
33469
|
drawImageW: x,
|
|
33460
|
-
drawImageH:
|
|
33470
|
+
drawImageH: b,
|
|
33461
33471
|
originX: d,
|
|
33462
33472
|
originY: f,
|
|
33463
33473
|
declutterBox: {
|
|
@@ -33581,7 +33591,7 @@ class gL {
|
|
|
33581
33591
|
), sv(this.renderedTransform_, n));
|
|
33582
33592
|
let f = 0;
|
|
33583
33593
|
const p = i.length;
|
|
33584
|
-
let m = 0, v, E,
|
|
33594
|
+
let m = 0, v, E, C, M, S, y, x, b, T, k, R, I, z = 0, G = 0, j = null, W = null;
|
|
33585
33595
|
const Y = this.coordinateCache_, J = this.viewRotation_, V = Math.round(Math.atan2(-n[1], n[0]) * 1e12) / 1e12, X = (
|
|
33586
33596
|
/** @type {import("../../render.js").State} */
|
|
33587
33597
|
{
|
|
@@ -33630,9 +33640,9 @@ class gL {
|
|
|
33630
33640
|
case rt.DRAW_IMAGE:
|
|
33631
33641
|
m = /** @type {number} */
|
|
33632
33642
|
F[1], v = /** @type {number} */
|
|
33633
|
-
F[2],
|
|
33643
|
+
F[2], b = /** @type {HTMLCanvasElement|HTMLVideoElement|HTMLImageElement} */
|
|
33634
33644
|
F[3], E = /** @type {number} */
|
|
33635
|
-
F[4],
|
|
33645
|
+
F[4], C = /** @type {number} */
|
|
33636
33646
|
F[5];
|
|
33637
33647
|
let Pi = (
|
|
33638
33648
|
/** @type {number} */
|
|
@@ -33670,7 +33680,7 @@ class gL {
|
|
|
33670
33680
|
/** @type {import("../canvas.js").DeclutterImageWithText} */
|
|
33671
33681
|
F[15]
|
|
33672
33682
|
);
|
|
33673
|
-
if (!
|
|
33683
|
+
if (!b && F.length >= 20) {
|
|
33674
33684
|
T = /** @type {string} */
|
|
33675
33685
|
F[19], k = /** @type {string} */
|
|
33676
33686
|
F[20], R = /** @type {string} */
|
|
@@ -33682,7 +33692,7 @@ class gL {
|
|
|
33682
33692
|
R,
|
|
33683
33693
|
I
|
|
33684
33694
|
);
|
|
33685
|
-
|
|
33695
|
+
b = ae.label, F[3] = b;
|
|
33686
33696
|
const Oi = (
|
|
33687
33697
|
/** @type {number} */
|
|
33688
33698
|
F[23]
|
|
@@ -33692,7 +33702,7 @@ class gL {
|
|
|
33692
33702
|
/** @type {number} */
|
|
33693
33703
|
F[24]
|
|
33694
33704
|
);
|
|
33695
|
-
|
|
33705
|
+
C = (ae.anchorY - ce) * this.pixelRatio, F[5] = C, Pi = b.height, F[6] = Pi, qt = b.width, F[13] = qt;
|
|
33696
33706
|
}
|
|
33697
33707
|
let Re;
|
|
33698
33708
|
F.length > 25 && (Re = /** @type {number} */
|
|
@@ -33707,14 +33717,14 @@ class gL {
|
|
|
33707
33717
|
if (Re && Re[Ri++] < qt / this.pixelRatio)
|
|
33708
33718
|
continue;
|
|
33709
33719
|
const ae = this.calculateImageOrLabelDimensions_(
|
|
33710
|
-
|
|
33711
|
-
|
|
33720
|
+
b.width,
|
|
33721
|
+
b.height,
|
|
33712
33722
|
d[m],
|
|
33713
33723
|
d[m + 1],
|
|
33714
33724
|
qt,
|
|
33715
33725
|
Pi,
|
|
33716
33726
|
E,
|
|
33717
|
-
|
|
33727
|
+
C,
|
|
33718
33728
|
ki,
|
|
33719
33729
|
ri,
|
|
33720
33730
|
si,
|
|
@@ -33726,7 +33736,7 @@ class gL {
|
|
|
33726
33736
|
), Oi = [
|
|
33727
33737
|
t,
|
|
33728
33738
|
e,
|
|
33729
|
-
|
|
33739
|
+
b,
|
|
33730
33740
|
ae,
|
|
33731
33741
|
ke,
|
|
33732
33742
|
We ? (
|
|
@@ -33834,7 +33844,7 @@ class gL {
|
|
|
33834
33844
|
for (Jt = 0, Pn = ce.length; Jt < Pn; ++Jt) {
|
|
33835
33845
|
ue = ce[Jt], kn = /** @type {string} */
|
|
33836
33846
|
ue[4], $t = this.createLabel(kn, k, "", R), E = /** @type {number} */
|
|
33837
|
-
ue[2] + (Ii[0] < 0 ? -oi : oi),
|
|
33847
|
+
ue[2] + (Ii[0] < 0 ? -oi : oi), C = mr * $t.height + (0.5 - mr) * 2 * oi * Ii[1] / Ii[0] - ms;
|
|
33838
33848
|
const zt = this.calculateImageOrLabelDimensions_(
|
|
33839
33849
|
$t.width,
|
|
33840
33850
|
$t.height,
|
|
@@ -33843,7 +33853,7 @@ class gL {
|
|
|
33843
33853
|
$t.width,
|
|
33844
33854
|
$t.height,
|
|
33845
33855
|
E,
|
|
33846
|
-
|
|
33856
|
+
C,
|
|
33847
33857
|
0,
|
|
33848
33858
|
0,
|
|
33849
33859
|
ue[3],
|
|
@@ -33869,7 +33879,7 @@ class gL {
|
|
|
33869
33879
|
for (Jt = 0, Pn = ce.length; Jt < Pn; ++Jt) {
|
|
33870
33880
|
ue = ce[Jt], kn = /** @type {string} */
|
|
33871
33881
|
ue[4], $t = this.createLabel(kn, k, I, ""), E = /** @type {number} */
|
|
33872
|
-
ue[2],
|
|
33882
|
+
ue[2], C = mr * $t.height - ms;
|
|
33873
33883
|
const zt = this.calculateImageOrLabelDimensions_(
|
|
33874
33884
|
$t.width,
|
|
33875
33885
|
$t.height,
|
|
@@ -33878,7 +33888,7 @@ class gL {
|
|
|
33878
33888
|
$t.width,
|
|
33879
33889
|
$t.height,
|
|
33880
33890
|
E,
|
|
33881
|
-
|
|
33891
|
+
C,
|
|
33882
33892
|
0,
|
|
33883
33893
|
0,
|
|
33884
33894
|
ue[3],
|
|
@@ -34105,20 +34115,20 @@ class _L {
|
|
|
34105
34115
|
break;
|
|
34106
34116
|
}
|
|
34107
34117
|
}
|
|
34108
|
-
const
|
|
34109
|
-
|
|
34110
|
-
let M, S, y, x,
|
|
34111
|
-
for (M =
|
|
34112
|
-
const T =
|
|
34118
|
+
const C = Object.keys(this.executorsByZIndex_).map(Number);
|
|
34119
|
+
C.sort(qi);
|
|
34120
|
+
let M, S, y, x, b;
|
|
34121
|
+
for (M = C.length - 1; M >= 0; --M) {
|
|
34122
|
+
const T = C[M].toString();
|
|
34113
34123
|
for (y = this.executorsByZIndex_[T], S = ll.length - 1; S >= 0; --S)
|
|
34114
|
-
if (v = ll[S], x = y[v], x !== void 0 && (
|
|
34124
|
+
if (v = ll[S], x = y[v], x !== void 0 && (b = x.executeHitDetection(
|
|
34115
34125
|
f,
|
|
34116
34126
|
c,
|
|
34117
34127
|
n,
|
|
34118
34128
|
E,
|
|
34119
34129
|
p
|
|
34120
|
-
),
|
|
34121
|
-
return
|
|
34130
|
+
), b))
|
|
34131
|
+
return b;
|
|
34122
34132
|
}
|
|
34123
34133
|
}
|
|
34124
34134
|
/**
|
|
@@ -34153,8 +34163,8 @@ class _L {
|
|
|
34153
34163
|
c.sort(qi), this.maxExtent_ && (t.save(), this.clip(t, n)), a = a || ll;
|
|
34154
34164
|
let d, f, p, m, v, E;
|
|
34155
34165
|
for (h && c.reverse(), d = 0, f = c.length; d < f; ++d) {
|
|
34156
|
-
const
|
|
34157
|
-
for (v = this.executorsByZIndex_[
|
|
34166
|
+
const C = c[d].toString();
|
|
34167
|
+
for (v = this.executorsByZIndex_[C], p = 0, m = a.length; p < m; ++p) {
|
|
34158
34168
|
const M = a[p];
|
|
34159
34169
|
E = v[M], E !== void 0 && E.execute(
|
|
34160
34170
|
t,
|
|
@@ -34225,17 +34235,17 @@ class yL extends Lg {
|
|
|
34225
34235
|
for (let f = 0, p = s.length; f < p; f += 2) {
|
|
34226
34236
|
const m = s[f] - this.imageAnchorX_, v = s[f + 1] - this.imageAnchorY_;
|
|
34227
34237
|
if (d !== 0 || this.imageScale_[0] != 1 || this.imageScale_[1] != 1) {
|
|
34228
|
-
const E = m + this.imageAnchorX_,
|
|
34238
|
+
const E = m + this.imageAnchorX_, C = v + this.imageAnchorY_;
|
|
34229
34239
|
Be(
|
|
34230
34240
|
h,
|
|
34231
34241
|
E,
|
|
34232
|
-
|
|
34242
|
+
C,
|
|
34233
34243
|
1,
|
|
34234
34244
|
1,
|
|
34235
34245
|
d,
|
|
34236
34246
|
-E,
|
|
34237
|
-
-
|
|
34238
|
-
), a.save(), a.transform.apply(a, h), a.translate(E,
|
|
34247
|
+
-C
|
|
34248
|
+
), a.save(), a.transform.apply(a, h), a.translate(E, C), a.scale(this.imageScale_[0], this.imageScale_[1]), a.drawImage(
|
|
34239
34249
|
this.image_,
|
|
34240
34250
|
this.imageOriginX_,
|
|
34241
34251
|
this.imageOriginY_,
|
|
@@ -34737,10 +34747,10 @@ class yL extends Lg {
|
|
|
34737
34747
|
if (!n)
|
|
34738
34748
|
this.textStrokeState_ = null;
|
|
34739
34749
|
else {
|
|
34740
|
-
const v = n.getColor(), E = n.getLineCap(),
|
|
34750
|
+
const v = n.getColor(), E = n.getLineCap(), C = n.getLineDash(), M = n.getLineDashOffset(), S = n.getLineJoin(), y = n.getWidth(), x = n.getMiterLimit();
|
|
34741
34751
|
this.textStrokeState_ = {
|
|
34742
34752
|
lineCap: E !== void 0 ? E : hr,
|
|
34743
|
-
lineDash:
|
|
34753
|
+
lineDash: C || wi,
|
|
34744
34754
|
lineDashOffset: M || Ei,
|
|
34745
34755
|
lineJoin: S !== void 0 ? S : cr,
|
|
34746
34756
|
lineWidth: y !== void 0 ? y : es,
|
|
@@ -34755,7 +34765,7 @@ class yL extends Lg {
|
|
|
34755
34765
|
font: i !== void 0 ? i : Ff,
|
|
34756
34766
|
textAlign: p !== void 0 ? p : ts,
|
|
34757
34767
|
textBaseline: m !== void 0 ? m : Eo
|
|
34758
|
-
}, this.text_ = f !== void 0 ? Array.isArray(f) ? f.reduce((v, E,
|
|
34768
|
+
}, this.text_ = f !== void 0 ? Array.isArray(f) ? f.reduce((v, E, C) => v += C % 2 ? " " : E, "") : f : "", this.textOffsetX_ = s !== void 0 ? this.pixelRatio_ * s : 0, this.textOffsetY_ = a !== void 0 ? this.pixelRatio_ * a : 0, this.textRotateWithView_ = h !== void 0 ? h : !1, this.textRotation_ = c !== void 0 ? c : 0, this.textScale_ = [
|
|
34759
34769
|
this.pixelRatio_ * d[0],
|
|
34760
34770
|
this.pixelRatio_ * d[1]
|
|
34761
34771
|
];
|
|
@@ -34836,15 +34846,15 @@ function xL(r, t, e, n, i, s, a) {
|
|
|
34836
34846
|
V[X.replace("Multi", "")].push(z, G);
|
|
34837
34847
|
}
|
|
34838
34848
|
}
|
|
34839
|
-
const
|
|
34840
|
-
for (let M = 0, S =
|
|
34841
|
-
const y = E[
|
|
34849
|
+
const C = Object.keys(E).map(Number).sort(qi);
|
|
34850
|
+
for (let M = 0, S = C.length; M < S; ++M) {
|
|
34851
|
+
const y = E[C[M]];
|
|
34842
34852
|
for (const x in y) {
|
|
34843
|
-
const
|
|
34844
|
-
for (let T = 0, k =
|
|
34845
|
-
p.setStyle(
|
|
34853
|
+
const b = y[x];
|
|
34854
|
+
for (let T = 0, k = b.length; T < k; T += 2) {
|
|
34855
|
+
p.setStyle(b[T + 1]);
|
|
34846
34856
|
for (let R = 0, I = t.length; R < I; ++R)
|
|
34847
|
-
p.setTransform(t[R]), p.drawGeometry(
|
|
34857
|
+
p.setTransform(t[R]), p.drawGeometry(b[T]);
|
|
34848
34858
|
}
|
|
34849
34859
|
}
|
|
34850
34860
|
}
|
|
@@ -35105,7 +35115,7 @@ class DL extends mg {
|
|
|
35105
35115
|
* @param {import("rbush").default} [declutterTree] Declutter tree.
|
|
35106
35116
|
*/
|
|
35107
35117
|
renderWorlds(t, e, n) {
|
|
35108
|
-
const i = e.extent, s = e.viewState, a = s.center, h = s.resolution, c = s.projection, d = s.rotation, f = c.getExtent(), p = this.getLayer().getSource(), m = e.pixelRatio, v = e.viewHints, E = !(v[Vt.ANIMATING] || v[Vt.INTERACTING]),
|
|
35118
|
+
const i = e.extent, s = e.viewState, a = s.center, h = s.resolution, c = s.projection, d = s.rotation, f = c.getExtent(), p = this.getLayer().getSource(), m = e.pixelRatio, v = e.viewHints, E = !(v[Vt.ANIMATING] || v[Vt.INTERACTING]), C = this.compositionContext_, M = Math.round(e.size[0] * m), S = Math.round(e.size[1] * m), y = p.getWrapX() && c.canWrapX(), x = y ? Mt(f) : null, b = y ? Math.ceil((i[2] - f[2]) / x) + 1 : 1;
|
|
35109
35119
|
let T = y ? Math.floor((i[0] - f[0]) / x) : 0;
|
|
35110
35120
|
do {
|
|
35111
35121
|
const k = this.getRenderTransform(
|
|
@@ -35118,7 +35128,7 @@ class DL extends mg {
|
|
|
35118
35128
|
T * x
|
|
35119
35129
|
);
|
|
35120
35130
|
t.execute(
|
|
35121
|
-
|
|
35131
|
+
C,
|
|
35122
35132
|
1,
|
|
35123
35133
|
k,
|
|
35124
35134
|
d,
|
|
@@ -35126,7 +35136,7 @@ class DL extends mg {
|
|
|
35126
35136
|
void 0,
|
|
35127
35137
|
n
|
|
35128
35138
|
);
|
|
35129
|
-
} while (++T <
|
|
35139
|
+
} while (++T < b);
|
|
35130
35140
|
}
|
|
35131
35141
|
setupCompositionContext_() {
|
|
35132
35142
|
if (this.opacity_ !== 1) {
|
|
@@ -35177,8 +35187,8 @@ class DL extends mg {
|
|
|
35177
35187
|
v.projection, this.opacity_ = i.opacity, this.setupCompositionContext_();
|
|
35178
35188
|
let E = !1;
|
|
35179
35189
|
if (f && i.extent && this.clipping) {
|
|
35180
|
-
const
|
|
35181
|
-
f = _e(
|
|
35190
|
+
const C = mn(i.extent);
|
|
35191
|
+
f = _e(C, t.extent), E = f && !_n(C, t.extent), E && this.clipUnrotated(this.compositionContext_, t, C);
|
|
35182
35192
|
}
|
|
35183
35193
|
return f && this.renderWorlds(c, t), E && this.compositionContext_.restore(), this.releaseCompositionContext_(), this.postRender(a, t), this.renderedRotation_ !== v.rotation && (this.renderedRotation_ = v.rotation, this.hitDetectionImageData_ = null), this.container;
|
|
35184
35194
|
}
|
|
@@ -35207,10 +35217,10 @@ class DL extends mg {
|
|
|
35207
35217
|
);
|
|
35208
35218
|
const v = d.getSource(), E = h.getExtent();
|
|
35209
35219
|
if (v.getWrapX() && h.canWrapX() && !_n(E, c)) {
|
|
35210
|
-
let
|
|
35220
|
+
let C = c[0];
|
|
35211
35221
|
const M = Mt(E);
|
|
35212
35222
|
let S = 0, y;
|
|
35213
|
-
for (;
|
|
35223
|
+
for (; C < E[0]; )
|
|
35214
35224
|
--S, y = M * S, f.push(
|
|
35215
35225
|
this.getRenderTransform(
|
|
35216
35226
|
i,
|
|
@@ -35221,8 +35231,8 @@ class DL extends mg {
|
|
|
35221
35231
|
m,
|
|
35222
35232
|
y
|
|
35223
35233
|
).slice()
|
|
35224
|
-
),
|
|
35225
|
-
for (S = 0,
|
|
35234
|
+
), C += M;
|
|
35235
|
+
for (S = 0, C = c[2]; C > E[2]; )
|
|
35226
35236
|
++S, y = M * S, f.push(
|
|
35227
35237
|
this.getRenderTransform(
|
|
35228
35238
|
i,
|
|
@@ -35233,7 +35243,7 @@ class DL extends mg {
|
|
|
35233
35243
|
m,
|
|
35234
35244
|
y
|
|
35235
35245
|
).slice()
|
|
35236
|
-
),
|
|
35246
|
+
), C -= M;
|
|
35237
35247
|
}
|
|
35238
35248
|
this.hitDetectionImageData_ = xL(
|
|
35239
35249
|
n,
|
|
@@ -35262,23 +35272,23 @@ class DL extends mg {
|
|
|
35262
35272
|
forEachFeatureAtCoordinate(t, e, n, i, s) {
|
|
35263
35273
|
if (!this.replayGroup_)
|
|
35264
35274
|
return;
|
|
35265
|
-
const a = e.viewState.resolution, h = e.viewState.rotation, c = this.getLayer(), d = {}, f = function(v, E,
|
|
35275
|
+
const a = e.viewState.resolution, h = e.viewState.rotation, c = this.getLayer(), d = {}, f = function(v, E, C) {
|
|
35266
35276
|
const M = dt(v), S = d[M];
|
|
35267
35277
|
if (S) {
|
|
35268
|
-
if (S !== !0 &&
|
|
35269
|
-
if (
|
|
35278
|
+
if (S !== !0 && C < S.distanceSq) {
|
|
35279
|
+
if (C === 0)
|
|
35270
35280
|
return d[M] = !0, s.splice(s.lastIndexOf(S), 1), i(v, c, E);
|
|
35271
|
-
S.geometry = E, S.distanceSq =
|
|
35281
|
+
S.geometry = E, S.distanceSq = C;
|
|
35272
35282
|
}
|
|
35273
35283
|
} else {
|
|
35274
|
-
if (
|
|
35284
|
+
if (C === 0)
|
|
35275
35285
|
return d[M] = !0, i(v, c, E);
|
|
35276
35286
|
s.push(
|
|
35277
35287
|
d[M] = {
|
|
35278
35288
|
feature: v,
|
|
35279
35289
|
layer: c,
|
|
35280
35290
|
geometry: E,
|
|
35281
|
-
distanceSq:
|
|
35291
|
+
distanceSq: C,
|
|
35282
35292
|
callback: i
|
|
35283
35293
|
}
|
|
35284
35294
|
);
|
|
@@ -35324,29 +35334,29 @@ class DL extends mg {
|
|
|
35324
35334
|
return this.animatingOrInteracting_ = !0, !0;
|
|
35325
35335
|
this.animatingOrInteracting_ = !1;
|
|
35326
35336
|
const c = t.extent, d = t.viewState, f = d.projection, p = d.resolution, m = t.pixelRatio, v = e.getRevision(), E = e.getRenderBuffer();
|
|
35327
|
-
let
|
|
35328
|
-
|
|
35337
|
+
let C = e.getRenderOrder();
|
|
35338
|
+
C === void 0 && (C = LL);
|
|
35329
35339
|
const M = d.center.slice(), S = qo(
|
|
35330
35340
|
c,
|
|
35331
35341
|
E * p
|
|
35332
|
-
), y = S.slice(), x = [S.slice()],
|
|
35333
|
-
if (n.getWrapX() && f.canWrapX() && !_n(
|
|
35334
|
-
const V = Mt(
|
|
35335
|
-
S[0] =
|
|
35342
|
+
), y = S.slice(), x = [S.slice()], b = f.getExtent();
|
|
35343
|
+
if (n.getWrapX() && f.canWrapX() && !_n(b, t.extent)) {
|
|
35344
|
+
const V = Mt(b), X = Math.max(Mt(S) / 2, V);
|
|
35345
|
+
S[0] = b[0] - X, S[2] = b[2] + X, nf(M, f);
|
|
35336
35346
|
const Z = ef(x[0], f);
|
|
35337
|
-
Z[0] <
|
|
35347
|
+
Z[0] < b[0] && Z[2] < b[2] ? x.push([
|
|
35338
35348
|
Z[0] + V,
|
|
35339
35349
|
Z[1],
|
|
35340
35350
|
Z[2] + V,
|
|
35341
35351
|
Z[3]
|
|
35342
|
-
]) : Z[0] >
|
|
35352
|
+
]) : Z[0] > b[0] && Z[2] > b[2] && x.push([
|
|
35343
35353
|
Z[0] - V,
|
|
35344
35354
|
Z[1],
|
|
35345
35355
|
Z[2] - V,
|
|
35346
35356
|
Z[3]
|
|
35347
35357
|
]);
|
|
35348
35358
|
}
|
|
35349
|
-
if (this.ready && this.renderedResolution_ == p && this.renderedRevision_ == v && this.renderedRenderOrder_ ==
|
|
35359
|
+
if (this.ready && this.renderedResolution_ == p && this.renderedRevision_ == v && this.renderedRenderOrder_ == C && _n(this.wrappedRenderedExtent_, S))
|
|
35350
35360
|
return Ci(this.renderedExtent_, y) || (this.hitDetectionImageData_ = null, this.renderedExtent_ = y), this.renderedCenter_ = M, this.replayGroupChanged = !1, !0;
|
|
35351
35361
|
this.replayGroup_ = null;
|
|
35352
35362
|
const T = new nd(
|
|
@@ -35387,7 +35397,7 @@ class DL extends mg {
|
|
|
35387
35397
|
}
|
|
35388
35398
|
}
|
|
35389
35399
|
), j = hf(S), W = n.getFeaturesInExtent(j);
|
|
35390
|
-
|
|
35400
|
+
C && W.sort(C);
|
|
35391
35401
|
for (let V = 0, X = W.length; V < X; ++V)
|
|
35392
35402
|
G(W[V]);
|
|
35393
35403
|
this.renderedFeatures_ = W, this.ready = z;
|
|
@@ -35406,7 +35416,7 @@ class DL extends mg {
|
|
|
35406
35416
|
n.getOverlaps(),
|
|
35407
35417
|
k.finish(),
|
|
35408
35418
|
e.getRenderBuffer()
|
|
35409
|
-
)), this.renderedResolution_ = p, this.renderedRevision_ = v, this.renderedRenderOrder_ =
|
|
35419
|
+
)), this.renderedResolution_ = p, this.renderedRevision_ = v, this.renderedRenderOrder_ = C, this.renderedExtent_ = y, this.wrappedRenderedExtent_ = S, this.renderedCenter_ = M, this.renderedProjection_ = f, this.replayGroup_ = J, this.hitDetectionImageData_ = null, this.replayGroupChanged = !0, !0;
|
|
35410
35420
|
}
|
|
35411
35421
|
/**
|
|
35412
35422
|
* @param {import("../../Feature.js").default} feature Feature.
|
|
@@ -35666,11 +35676,11 @@ class zL extends Ge {
|
|
|
35666
35676
|
), v = e.getPixelFromCoordinateInternal(m);
|
|
35667
35677
|
if (!v)
|
|
35668
35678
|
return;
|
|
35669
|
-
const E = [v[0] + p[0], v[1] + p[1]],
|
|
35679
|
+
const E = [v[0] + p[0], v[1] + p[1]], C = t.animation || {};
|
|
35670
35680
|
e.getView().animateInternal({
|
|
35671
35681
|
center: e.getCoordinateFromPixelInternal(E),
|
|
35672
|
-
duration:
|
|
35673
|
-
easing:
|
|
35682
|
+
duration: C.duration,
|
|
35683
|
+
easing: C.easing
|
|
35674
35684
|
});
|
|
35675
35685
|
}
|
|
35676
35686
|
}
|