@besovideo/bvmap-leaflet 0.0.40 → 0.0.41
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/main.js +50 -52
- package/dist/main.js.map +1 -1
- package/package.json +46 -46
package/dist/main.js
CHANGED
|
@@ -9,7 +9,7 @@ var xa = (e, i, n) => i in e ? nh(e, i, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
for (var n of Ui(i))
|
|
10
10
|
ba.call(i, n) && xa(e, n, i[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, se = (e, i) => sh(e, ah(i));
|
|
13
13
|
var Pa = (e, i) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var r in e)
|
|
@@ -773,12 +773,12 @@ function on() {
|
|
|
773
773
|
// @method distanceTo(otherLatLng: LatLng): Number
|
|
774
774
|
// Returns the distance (in meters) to the given `LatLng` calculated using the [Spherical Law of Cosines](https://en.wikipedia.org/wiki/Spherical_law_of_cosines).
|
|
775
775
|
distanceTo: function(t) {
|
|
776
|
-
return
|
|
776
|
+
return ee.distance(this, $(t));
|
|
777
777
|
},
|
|
778
778
|
// @method wrap(): LatLng
|
|
779
779
|
// Returns a new `LatLng` object with the longitude wrapped so it's always between -180 and +180 degrees.
|
|
780
780
|
wrap: function() {
|
|
781
|
-
return
|
|
781
|
+
return ee.wrapLatLng(this);
|
|
782
782
|
},
|
|
783
783
|
// @method toBounds(sizeInMeters: Number): LatLngBounds
|
|
784
784
|
// Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`.
|
|
@@ -878,7 +878,7 @@ function on() {
|
|
|
878
878
|
var M = t.getSouthWest(), b = t.getNorthEast(), C = new Y(M.lat - d, M.lng - _), k = new Y(b.lat - d, b.lng - _);
|
|
879
879
|
return new pt(C, k);
|
|
880
880
|
}
|
|
881
|
-
},
|
|
881
|
+
}, ee = l({}, $t, {
|
|
882
882
|
wrapLng: [-180, 180],
|
|
883
883
|
// Mean Earth Radius, as recommended for use by
|
|
884
884
|
// the International Union of Geodesy and Geophysics,
|
|
@@ -942,7 +942,7 @@ function on() {
|
|
|
942
942
|
function Fe(t, s, o, d) {
|
|
943
943
|
return new cn(t, s, o, d);
|
|
944
944
|
}
|
|
945
|
-
var dn = l({},
|
|
945
|
+
var dn = l({}, ee, {
|
|
946
946
|
code: "EPSG:3857",
|
|
947
947
|
projection: un,
|
|
948
948
|
transformation: function() {
|
|
@@ -2758,7 +2758,7 @@ function on() {
|
|
|
2758
2758
|
Ut.addTo = function(t, s) {
|
|
2759
2759
|
return t.addHandler(s, this), this;
|
|
2760
2760
|
};
|
|
2761
|
-
var vo = { Events: xt }, qs = D.touch ? "touchstart mousedown" : "mousedown",
|
|
2761
|
+
var vo = { Events: xt }, qs = D.touch ? "touchstart mousedown" : "mousedown", ie = ce.extend({
|
|
2762
2762
|
options: {
|
|
2763
2763
|
// @section
|
|
2764
2764
|
// @aka Draggable options
|
|
@@ -2780,15 +2780,15 @@ function on() {
|
|
|
2780
2780
|
// @method disable()
|
|
2781
2781
|
// Disables the dragging ability
|
|
2782
2782
|
disable: function() {
|
|
2783
|
-
this._enabled && (
|
|
2783
|
+
this._enabled && (ie._dragging === this && this.finishDrag(!0), at(this._dragStartTarget, qs, this._onDown, this), this._enabled = !1, this._moved = !1);
|
|
2784
2784
|
},
|
|
2785
2785
|
_onDown: function(t) {
|
|
2786
2786
|
if (this._enabled && (this._moved = !1, !Mn(this._element, "leaflet-zoom-anim"))) {
|
|
2787
2787
|
if (t.touches && t.touches.length !== 1) {
|
|
2788
|
-
|
|
2788
|
+
ie._dragging === this && this.finishDrag();
|
|
2789
2789
|
return;
|
|
2790
2790
|
}
|
|
2791
|
-
if (!(
|
|
2791
|
+
if (!(ie._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (ie._dragging = this, this._preventOutline && Cn(this._element), wn(), je(), !this._moving)) {
|
|
2792
2792
|
this.fire("down");
|
|
2793
2793
|
var s = t.touches ? t.touches[0] : t, o = Ns(this._element);
|
|
2794
2794
|
this._startPoint = new q(s.clientX, s.clientY), this._startPos = fe(this._element), this._parentScale = kn(o);
|
|
@@ -2817,7 +2817,7 @@ function on() {
|
|
|
2817
2817
|
finishDrag: function(t) {
|
|
2818
2818
|
ct(document.body, "leaflet-dragging"), this._lastTarget && (ct(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), at(document, "mousemove touchmove", this._onMove, this), at(document, "mouseup touchend touchcancel", this._onUp, this), bn(), We();
|
|
2819
2819
|
var s = this._moved && this._moving;
|
|
2820
|
-
this._moving = !1,
|
|
2820
|
+
this._moving = !1, ie._dragging = !1, s && this.fire("dragend", {
|
|
2821
2821
|
noInertia: t,
|
|
2822
2822
|
distance: this._newPos.distanceTo(this._startPos)
|
|
2823
2823
|
});
|
|
@@ -2995,14 +2995,14 @@ function on() {
|
|
|
2995
2995
|
LonLat: Dn,
|
|
2996
2996
|
Mercator: Rn,
|
|
2997
2997
|
SphericalMercator: un
|
|
2998
|
-
}, Co = l({},
|
|
2998
|
+
}, Co = l({}, ee, {
|
|
2999
2999
|
code: "EPSG:3395",
|
|
3000
3000
|
projection: Rn,
|
|
3001
3001
|
transformation: function() {
|
|
3002
3002
|
var t = 0.5 / (Math.PI * Rn.R);
|
|
3003
3003
|
return Fe(t, 0.5, -t, 0.5);
|
|
3004
3004
|
}()
|
|
3005
|
-
}), Ys = l({},
|
|
3005
|
+
}), Ys = l({}, ee, {
|
|
3006
3006
|
code: "EPSG:4326",
|
|
3007
3007
|
projection: Dn,
|
|
3008
3008
|
transformation: Fe(1 / 180, 1, -1 / 180, 0.5)
|
|
@@ -3021,7 +3021,7 @@ function on() {
|
|
|
3021
3021
|
},
|
|
3022
3022
|
infinite: !0
|
|
3023
3023
|
});
|
|
3024
|
-
$t.Earth =
|
|
3024
|
+
$t.Earth = ee, $t.EPSG3395 = Co, $t.EPSG3857 = dn, $t.EPSG900913 = Ir, $t.EPSG4326 = Ys, $t.Simple = ko;
|
|
3025
3025
|
var Dt = ce.extend({
|
|
3026
3026
|
// Classes extending `L.Layer` will inherit the following options:
|
|
3027
3027
|
options: {
|
|
@@ -3384,7 +3384,7 @@ function on() {
|
|
|
3384
3384
|
},
|
|
3385
3385
|
addHooks: function() {
|
|
3386
3386
|
var t = this._marker._icon;
|
|
3387
|
-
this._draggable || (this._draggable = new
|
|
3387
|
+
this._draggable || (this._draggable = new ie(t, t, !0)), this._draggable.on({
|
|
3388
3388
|
dragstart: this._onDragStart,
|
|
3389
3389
|
predrag: this._onPreDrag,
|
|
3390
3390
|
drag: this._onDrag,
|
|
@@ -3616,7 +3616,7 @@ function on() {
|
|
|
3616
3616
|
function Ao(t, s) {
|
|
3617
3617
|
return new Ai(t, s);
|
|
3618
3618
|
}
|
|
3619
|
-
var
|
|
3619
|
+
var ne = Dt.extend({
|
|
3620
3620
|
// @section
|
|
3621
3621
|
// @aka Path options
|
|
3622
3622
|
options: {
|
|
@@ -3702,7 +3702,7 @@ function on() {
|
|
|
3702
3702
|
_clickTolerance: function() {
|
|
3703
3703
|
return (this.options.stroke ? this.options.weight / 2 : 0) + (this._renderer.options.tolerance || 0);
|
|
3704
3704
|
}
|
|
3705
|
-
}), Ii =
|
|
3705
|
+
}), Ii = ne.extend({
|
|
3706
3706
|
// @section
|
|
3707
3707
|
// @aka CircleMarker options
|
|
3708
3708
|
options: {
|
|
@@ -3737,7 +3737,7 @@ function on() {
|
|
|
3737
3737
|
},
|
|
3738
3738
|
setStyle: function(t) {
|
|
3739
3739
|
var s = t && t.radius || this._radius;
|
|
3740
|
-
return
|
|
3740
|
+
return ne.prototype.setStyle.call(this, t), this.setRadius(s), this;
|
|
3741
3741
|
},
|
|
3742
3742
|
_project: function() {
|
|
3743
3743
|
this._point = this._map.latLngToLayerPoint(this._latlng), this._updateBounds();
|
|
@@ -3788,11 +3788,11 @@ function on() {
|
|
|
3788
3788
|
this._map.layerPointToLatLng(this._point.add(t))
|
|
3789
3789
|
);
|
|
3790
3790
|
},
|
|
3791
|
-
setStyle:
|
|
3791
|
+
setStyle: ne.prototype.setStyle,
|
|
3792
3792
|
_project: function() {
|
|
3793
3793
|
var t = this._latlng.lng, s = this._latlng.lat, o = this._map, d = o.options.crs;
|
|
3794
|
-
if (d.distance ===
|
|
3795
|
-
var _ = Math.PI / 180, M = this._mRadius /
|
|
3794
|
+
if (d.distance === ee.distance) {
|
|
3795
|
+
var _ = Math.PI / 180, M = this._mRadius / ee.R / _, b = o.project([s + M, t]), C = o.project([s - M, t]), k = b.add(C).divideBy(2), E = o.unproject(k).lat, z = Math.acos((Math.cos(M * _) - Math.sin(s * _) * Math.sin(E * _)) / (Math.cos(s * _) * Math.cos(E * _))) / _;
|
|
3796
3796
|
(isNaN(z) || z === 0) && (z = M / Math.cos(Math.PI / 180 * s)), this._point = k.subtract(o.getPixelOrigin()), this._radius = isNaN(z) ? 0 : k.x - o.project([E, t - z]).x, this._radiusY = k.y - b.y;
|
|
3797
3797
|
} else {
|
|
3798
3798
|
var Z = d.unproject(d.project(this._latlng).subtract([this._mRadius, 0]));
|
|
@@ -3804,7 +3804,7 @@ function on() {
|
|
|
3804
3804
|
function Oo(t, s, o) {
|
|
3805
3805
|
return new Zn(t, s, o);
|
|
3806
3806
|
}
|
|
3807
|
-
var Xt =
|
|
3807
|
+
var Xt = ne.extend({
|
|
3808
3808
|
// @section
|
|
3809
3809
|
// @aka Polyline options
|
|
3810
3810
|
options: {
|
|
@@ -4621,10 +4621,10 @@ function on() {
|
|
|
4621
4621
|
return t = arguments.length ? t : this._source._map, !t.hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this, Ht.prototype.openOn.call(this, t);
|
|
4622
4622
|
},
|
|
4623
4623
|
onAdd: function(t) {
|
|
4624
|
-
Ht.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof
|
|
4624
|
+
Ht.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof ne || this._source.on("preclick", _e));
|
|
4625
4625
|
},
|
|
4626
4626
|
onRemove: function(t) {
|
|
4627
|
-
Ht.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof
|
|
4627
|
+
Ht.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof ne || this._source.off("preclick", _e));
|
|
4628
4628
|
},
|
|
4629
4629
|
getEvents: function() {
|
|
4630
4630
|
var t = Ht.prototype.getEvents.call(this);
|
|
@@ -4745,7 +4745,7 @@ function on() {
|
|
|
4745
4745
|
if (!(!this._popup || !this._map)) {
|
|
4746
4746
|
me(t);
|
|
4747
4747
|
var s = t.layer || t.target;
|
|
4748
|
-
if (this._popup._source === s && !(s instanceof
|
|
4748
|
+
if (this._popup._source === s && !(s instanceof ne)) {
|
|
4749
4749
|
this._map.hasLayer(this._popup) ? this.closePopup() : this.openPopup(t.latlng);
|
|
4750
4750
|
return;
|
|
4751
4751
|
}
|
|
@@ -6048,7 +6048,7 @@ function on() {
|
|
|
6048
6048
|
addHooks: function() {
|
|
6049
6049
|
if (!this._draggable) {
|
|
6050
6050
|
var t = this._map;
|
|
6051
|
-
this._draggable = new
|
|
6051
|
+
this._draggable = new ie(t._mapPane, t._container), this._draggable.on({
|
|
6052
6052
|
dragstart: this._onDragStart,
|
|
6053
6053
|
drag: this._onDrag,
|
|
6054
6054
|
dragend: this._onDragEnd
|
|
@@ -6365,7 +6365,7 @@ function on() {
|
|
|
6365
6365
|
this._zooming = !1, nt(this._animRequest), at(document, "touchmove", this._onTouchMove, this), at(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));
|
|
6366
6366
|
}
|
|
6367
6367
|
});
|
|
6368
|
-
X.addInitHook("addHandler", "touchZoom", va), X.BoxZoom = da, X.DoubleClickZoom = fa, X.Drag = _a, X.Keyboard = ma, X.ScrollWheelZoom = ga, X.TapHold = pa, X.TouchZoom = va, n.Bounds = ot, n.Browser = D, n.CRS = $t, n.Canvas = ha, n.Circle = Zn, n.CircleMarker = Ii, n.Class = Ct, n.Control = Nt, n.DivIcon = aa, n.DivOverlay = Ht, n.DomEvent = uo, n.DomUtil = ho, n.Draggable =
|
|
6368
|
+
X.addInitHook("addHandler", "touchZoom", va), X.BoxZoom = da, X.DoubleClickZoom = fa, X.Drag = _a, X.Keyboard = ma, X.ScrollWheelZoom = ga, X.TapHold = pa, X.TouchZoom = va, n.Bounds = ot, n.Browser = D, n.CRS = $t, n.Canvas = ha, n.Circle = Zn, n.CircleMarker = Ii, n.Class = Ct, n.Control = Nt, n.DivIcon = aa, n.DivOverlay = Ht, n.DomEvent = uo, n.DomUtil = ho, n.Draggable = ie, n.Evented = ce, n.FeatureGroup = Kt, n.GeoJSON = Jt, n.GridLayer = Qe, n.Handler = Ut, n.Icon = Ce, n.ImageOverlay = Di, n.LatLng = Y, n.LatLngBounds = pt, n.Layer = Dt, n.LayerGroup = Pe, n.LineUtil = bo, n.Map = X, n.Marker = Ai, n.Mixin = vo, n.Path = ne, n.Point = q, n.PolyUtil = yo, n.Polygon = ke, n.Polyline = Xt, n.Popup = Ri, n.PosAnimation = Fs, n.Projection = Po, n.Rectangle = ca, n.Renderer = Qt, n.SVG = ti, n.SVGOverlay = sa, n.TileLayer = Ee, n.Tooltip = Zi, n.Transformation = cn, n.Util = Zt, n.VideoOverlay = na, n.bind = h, n.bounds = gt, n.canvas = la, n.circle = Oo, n.circleMarker = Io, n.control = Ke, n.divIcon = Uo, n.extend = l, n.featureGroup = Eo, n.geoJSON = ia, n.geoJson = No, n.gridLayer = Ho, n.icon = So, n.imageOverlay = Do, n.latLng = $, n.latLngBounds = ht, n.layerGroup = To, n.map = co, n.marker = Ao, n.point = F, n.polygon = Bo, n.polyline = zo, n.popup = Go, n.rectangle = Wo, n.setOptions = x, n.stamp = f, n.svg = ua, n.svgOverlay = Zo, n.tileLayer = ra, n.tooltip = Fo, n.transformation = Fe, n.version = r, n.videoOverlay = Ro;
|
|
6369
6369
|
var $o = window.L;
|
|
6370
6370
|
n.noConflict = function() {
|
|
6371
6371
|
return window.L = $o, this;
|
|
@@ -7695,7 +7695,7 @@ function vh(e) {
|
|
|
7695
7695
|
}
|
|
7696
7696
|
class yh {
|
|
7697
7697
|
constructor(i, n) {
|
|
7698
|
-
this.currentMarker = null, this.popupCloseHandle = [], this.popup = L.popup(
|
|
7698
|
+
this.currentMarker = null, this.popupCloseHandle = [], this.popup = L.popup(se(J({}, n), {
|
|
7699
7699
|
offset: [0, -5],
|
|
7700
7700
|
maxWidth: 500,
|
|
7701
7701
|
autoClose: !1,
|
|
@@ -10081,7 +10081,7 @@ L.Polyline.include({
|
|
|
10081
10081
|
}
|
|
10082
10082
|
return l;
|
|
10083
10083
|
});
|
|
10084
|
-
this._ghosts = L.polyline(r,
|
|
10084
|
+
this._ghosts = L.polyline(r, se(J({}, this.options), {
|
|
10085
10085
|
color: "rgba(0,0,0,0)",
|
|
10086
10086
|
stroke: 0,
|
|
10087
10087
|
smoothFactor: 0,
|
|
@@ -10389,7 +10389,7 @@ class zh {
|
|
|
10389
10389
|
this.markerCurrent.remove(), this.lastPointIndex = 0, this.polyine.setLatLngs([]), this.polyineBlack.setLatLngs([]);
|
|
10390
10390
|
}
|
|
10391
10391
|
}
|
|
10392
|
-
const
|
|
10392
|
+
const ae = 1024, cs = class cs {
|
|
10393
10393
|
constructor(i) {
|
|
10394
10394
|
this.baseline = new Oh(), this.timeCallback = null, this._currentPoints = null, this.intervalToken = null, this.pastTimeTotal = 0, this.startTime = 0, this.bPause = !0, this.playSegments = [], this.playStartTrackTime = 0, this.fastModeTotalDuration = 0, this.fastModePlayTime = 0, this.playRate = 1, this.baseline.addTo(i), this.passedLine = new zh(i), this.map = i, this.applyRotation();
|
|
10395
10395
|
}
|
|
@@ -10406,7 +10406,7 @@ const te = 1024, cs = class cs {
|
|
|
10406
10406
|
}
|
|
10407
10407
|
}
|
|
10408
10408
|
mapPlayTimeToTrackTime(i) {
|
|
10409
|
-
if (this.playRate ===
|
|
10409
|
+
if (this.playRate === ae && this.fastModeTotalDuration > 0) {
|
|
10410
10410
|
const l = Math.min(i, 30) / 30;
|
|
10411
10411
|
return this.playStartTrackTime + this.fastModeTotalDuration * l;
|
|
10412
10412
|
}
|
|
@@ -10459,13 +10459,11 @@ const te = 1024, cs = class cs {
|
|
|
10459
10459
|
}
|
|
10460
10460
|
jump(i) {
|
|
10461
10461
|
var n;
|
|
10462
|
-
if (this.playRate === te)
|
|
10463
|
-
return !1;
|
|
10464
10462
|
if (i && this._currentPoints) {
|
|
10465
10463
|
if (i < this._currentPoints[0].time || i > this._currentPoints[this._currentPoints.length - 1].time)
|
|
10466
10464
|
return !1;
|
|
10467
10465
|
{
|
|
10468
|
-
this.startTime = i, this.playStartTrackTime = i, this.pastTimeTotal = 0;
|
|
10466
|
+
this.startTime = i, this.playStartTrackTime = i, this.pastTimeTotal = 0, this.fastModePlayTime = 0;
|
|
10469
10467
|
const [r, l] = this.passedLine.SetCurrentTime(i);
|
|
10470
10468
|
(n = this.timeCallback) == null || n.call(this, i, r, l);
|
|
10471
10469
|
}
|
|
@@ -10493,7 +10491,7 @@ const te = 1024, cs = class cs {
|
|
|
10493
10491
|
const l = Date.now(), a = (l - i) / 1e3;
|
|
10494
10492
|
i = l;
|
|
10495
10493
|
let h = 0;
|
|
10496
|
-
this.playRate ===
|
|
10494
|
+
this.playRate === ae ? (this.fastModePlayTime += a, h = this.mapPlayTimeToTrackTime(this.fastModePlayTime)) : (this.pastTimeTotal += a * this.playRate, h = this.mapPlayTimeToTrackTime(this.pastTimeTotal)), h > n && (h = n);
|
|
10497
10495
|
const u = Math.floor(h);
|
|
10498
10496
|
if (r != u) {
|
|
10499
10497
|
const [m, y] = this.passedLine.SetCurrentTime(u);
|
|
@@ -10511,8 +10509,8 @@ const te = 1024, cs = class cs {
|
|
|
10511
10509
|
SetPlayRate(i) {
|
|
10512
10510
|
var a, h;
|
|
10513
10511
|
const n = this.bPause;
|
|
10514
|
-
if (i < 1 || i >
|
|
10515
|
-
const r = this.playRate, l = r ===
|
|
10512
|
+
if (i < 1 || i > ae || Math.floor(i) !== i) return;
|
|
10513
|
+
const r = this.playRate, l = r === ae && i !== ae || r !== ae && i === ae;
|
|
10516
10514
|
if (this.playRate = i, this._currentPoints && this._currentPoints.length > 1 && this.buildPlaySegments(this._currentPoints), l && ((a = this._currentPoints) != null && a.length)) {
|
|
10517
10515
|
const u = this._currentPoints[0].time;
|
|
10518
10516
|
this.stoptInterval(), this.pastTimeTotal = 0, this.fastModePlayTime = 0, this.startTime = u, this.playStartTrackTime = u, this.passedLine.clearPassedLine(), this.passedLine.SetCurrentTime(u), (h = this.timeCallback) == null || h.call(this, u, 0, 1), n ? this.bPause = !0 : this.startInterval();
|
|
@@ -10532,7 +10530,7 @@ const te = 1024, cs = class cs {
|
|
|
10532
10530
|
this.passedLine.SetMarkerFitView();
|
|
10533
10531
|
}
|
|
10534
10532
|
};
|
|
10535
|
-
cs.iOverflowPlayRate =
|
|
10533
|
+
cs.iOverflowPlayRate = ae;
|
|
10536
10534
|
let Xn = cs;
|
|
10537
10535
|
var Bh = { exports: {} };
|
|
10538
10536
|
(function(e, i) {
|
|
@@ -11830,7 +11828,7 @@ class Rh {
|
|
|
11830
11828
|
return [l.lat, l.lng];
|
|
11831
11829
|
}
|
|
11832
11830
|
);
|
|
11833
|
-
return
|
|
11831
|
+
return se(J({}, this.lineInfo), {
|
|
11834
11832
|
latlngs: i,
|
|
11835
11833
|
title: this.title
|
|
11836
11834
|
});
|
|
@@ -11922,7 +11920,7 @@ class Fh {
|
|
|
11922
11920
|
}
|
|
11923
11921
|
getInfo() {
|
|
11924
11922
|
const i = this.marker.getLatLng();
|
|
11925
|
-
return
|
|
11923
|
+
return se(J({}, this.markerInfo), {
|
|
11926
11924
|
latlng: [i.lat, i.lng]
|
|
11927
11925
|
});
|
|
11928
11926
|
}
|
|
@@ -11997,7 +11995,7 @@ class Uh {
|
|
|
11997
11995
|
}
|
|
11998
11996
|
getInfo() {
|
|
11999
11997
|
const i = this.polygon.getLatLngs()[0].map((n) => [n.lat, n.lng]);
|
|
12000
|
-
return
|
|
11998
|
+
return se(J({}, this.polygonInfo), {
|
|
12001
11999
|
latlngs: i
|
|
12002
12000
|
});
|
|
12003
12001
|
}
|
|
@@ -12520,12 +12518,12 @@ function Yn(e) {
|
|
|
12520
12518
|
return typeof i.datumCode == "string" && i.datumCode !== "WGS84" && (i.datumCode = i.datumCode.toLowerCase()), i;
|
|
12521
12519
|
}
|
|
12522
12520
|
var _i = 1, lr = 2, ur = 3, tn = 4, cr = 5, ss = -1, ol = /\s/, hl = /[A-Za-z]/, ll = /[A-Za-z84_]/, ln = /[,\]]/, dr = /[\d\.E\-\+]/;
|
|
12523
|
-
function
|
|
12521
|
+
function te(e) {
|
|
12524
12522
|
if (typeof e != "string")
|
|
12525
12523
|
throw new Error("not a string");
|
|
12526
12524
|
this.text = e.trim(), this.level = 0, this.place = 0, this.root = null, this.stack = [], this.currentObject = null, this.state = _i;
|
|
12527
12525
|
}
|
|
12528
|
-
|
|
12526
|
+
te.prototype.readCharicter = function() {
|
|
12529
12527
|
var e = this.text[this.place++];
|
|
12530
12528
|
if (this.state !== tn)
|
|
12531
12529
|
for (; ol.test(e); ) {
|
|
@@ -12548,7 +12546,7 @@ ee.prototype.readCharicter = function() {
|
|
|
12548
12546
|
return;
|
|
12549
12547
|
}
|
|
12550
12548
|
};
|
|
12551
|
-
|
|
12549
|
+
te.prototype.afterquote = function(e) {
|
|
12552
12550
|
if (e === '"') {
|
|
12553
12551
|
this.word += '"', this.state = tn;
|
|
12554
12552
|
return;
|
|
@@ -12559,7 +12557,7 @@ ee.prototype.afterquote = function(e) {
|
|
|
12559
12557
|
}
|
|
12560
12558
|
throw new Error(`havn't handled "` + e + '" in afterquote yet, index ' + this.place);
|
|
12561
12559
|
};
|
|
12562
|
-
|
|
12560
|
+
te.prototype.afterItem = function(e) {
|
|
12563
12561
|
if (e === ",") {
|
|
12564
12562
|
this.word !== null && this.currentObject.push(this.word), this.word = null, this.state = _i;
|
|
12565
12563
|
return;
|
|
@@ -12569,7 +12567,7 @@ ee.prototype.afterItem = function(e) {
|
|
|
12569
12567
|
return;
|
|
12570
12568
|
}
|
|
12571
12569
|
};
|
|
12572
|
-
|
|
12570
|
+
te.prototype.number = function(e) {
|
|
12573
12571
|
if (dr.test(e)) {
|
|
12574
12572
|
this.word += e;
|
|
12575
12573
|
return;
|
|
@@ -12580,14 +12578,14 @@ ee.prototype.number = function(e) {
|
|
|
12580
12578
|
}
|
|
12581
12579
|
throw new Error(`havn't handled "` + e + '" in number yet, index ' + this.place);
|
|
12582
12580
|
};
|
|
12583
|
-
|
|
12581
|
+
te.prototype.quoted = function(e) {
|
|
12584
12582
|
if (e === '"') {
|
|
12585
12583
|
this.state = cr;
|
|
12586
12584
|
return;
|
|
12587
12585
|
}
|
|
12588
12586
|
this.word += e;
|
|
12589
12587
|
};
|
|
12590
|
-
|
|
12588
|
+
te.prototype.keyword = function(e) {
|
|
12591
12589
|
if (ll.test(e)) {
|
|
12592
12590
|
this.word += e;
|
|
12593
12591
|
return;
|
|
@@ -12603,7 +12601,7 @@ ee.prototype.keyword = function(e) {
|
|
|
12603
12601
|
}
|
|
12604
12602
|
throw new Error(`havn't handled "` + e + '" in keyword yet, index ' + this.place);
|
|
12605
12603
|
};
|
|
12606
|
-
|
|
12604
|
+
te.prototype.neutral = function(e) {
|
|
12607
12605
|
if (hl.test(e)) {
|
|
12608
12606
|
this.word = e, this.state = lr;
|
|
12609
12607
|
return;
|
|
@@ -12622,7 +12620,7 @@ ee.prototype.neutral = function(e) {
|
|
|
12622
12620
|
}
|
|
12623
12621
|
throw new Error(`havn't handled "` + e + '" in neutral yet, index ' + this.place);
|
|
12624
12622
|
};
|
|
12625
|
-
|
|
12623
|
+
te.prototype.output = function() {
|
|
12626
12624
|
for (; this.place < this.text.length; )
|
|
12627
12625
|
this.readCharicter();
|
|
12628
12626
|
if (this.state === ss)
|
|
@@ -12630,7 +12628,7 @@ ee.prototype.output = function() {
|
|
|
12630
12628
|
throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
|
|
12631
12629
|
};
|
|
12632
12630
|
function ul(e) {
|
|
12633
|
-
var i = new
|
|
12631
|
+
var i = new te(e);
|
|
12634
12632
|
return i.output();
|
|
12635
12633
|
}
|
|
12636
12634
|
function Wn(e, i, n) {
|
|
@@ -15458,7 +15456,7 @@ function s_(e) {
|
|
|
15458
15456
|
bounds: rt.bounds([20037508342789244e-9, 0], [0, 20037508342789244e-9])
|
|
15459
15457
|
}
|
|
15460
15458
|
);
|
|
15461
|
-
const n = ((c = e.mapOptions) == null ? void 0 : c.center) || Ar, r = rt.map(e.container,
|
|
15459
|
+
const n = ((c = e.mapOptions) == null ? void 0 : c.center) || Ar, r = rt.map(e.container, se(J({
|
|
15462
15460
|
attributionControl: !1,
|
|
15463
15461
|
zoomControl: !1,
|
|
15464
15462
|
preferCanvas: !1,
|
|
@@ -15489,7 +15487,7 @@ function s_(e) {
|
|
|
15489
15487
|
direct: (g = e.tileType) == null ? void 0 : g.direct
|
|
15490
15488
|
})
|
|
15491
15489
|
);
|
|
15492
|
-
const a = ye("clusterType")[0], h = new Ch(r,
|
|
15490
|
+
const a = ye("clusterType")[0], h = new Ch(r, se(J({}, e.renderOptions), {
|
|
15493
15491
|
clusterType: a
|
|
15494
15492
|
})), u = new Xn(r), f = new Nh(r);
|
|
15495
15493
|
function m(v) {
|