@besovideo/bvmap-leaflet 0.0.39 → 0.0.40
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 +94 -86
- package/dist/main.js.map +1 -1
- package/dist/types/basemap/config.d.ts +6 -0
- package/dist/types/basemap/index.d.ts +3 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1040,7 +1040,7 @@ function on() {
|
|
|
1040
1040
|
touchmove: bi,
|
|
1041
1041
|
touchend: bi,
|
|
1042
1042
|
touchcancel: bi
|
|
1043
|
-
},
|
|
1043
|
+
}, xe = {}, Is = !1;
|
|
1044
1044
|
function Jr(t, s, o) {
|
|
1045
1045
|
return s === "touchstart" && eo(), As[s] ? (o = As[s].bind(this, o), t.addEventListener(vn[s], o, !1), o) : (console.warn("wrong event specified:", s), p);
|
|
1046
1046
|
}
|
|
@@ -1052,13 +1052,13 @@ function on() {
|
|
|
1052
1052
|
t.removeEventListener(vn[s], o, !1);
|
|
1053
1053
|
}
|
|
1054
1054
|
function Yr(t) {
|
|
1055
|
-
|
|
1055
|
+
xe[t.pointerId] = t;
|
|
1056
1056
|
}
|
|
1057
1057
|
function to(t) {
|
|
1058
|
-
|
|
1058
|
+
xe[t.pointerId] && (xe[t.pointerId] = t);
|
|
1059
1059
|
}
|
|
1060
1060
|
function Os(t) {
|
|
1061
|
-
delete
|
|
1061
|
+
delete xe[t.pointerId];
|
|
1062
1062
|
}
|
|
1063
1063
|
function eo() {
|
|
1064
1064
|
Is || (document.addEventListener(ks, Yr, !0), document.addEventListener(Ts, to, !0), document.addEventListener(Es, Os, !0), document.addEventListener(Ss, Os, !0), Is = !0);
|
|
@@ -1066,8 +1066,8 @@ function on() {
|
|
|
1066
1066
|
function bi(t, s) {
|
|
1067
1067
|
if (s.pointerType !== (s.MSPOINTER_TYPE_MOUSE || "mouse")) {
|
|
1068
1068
|
s.touches = [];
|
|
1069
|
-
for (var o in
|
|
1070
|
-
s.touches.push(
|
|
1069
|
+
for (var o in xe)
|
|
1070
|
+
s.touches.push(xe[o]);
|
|
1071
1071
|
s.changedTouches = [s], t(s);
|
|
1072
1072
|
}
|
|
1073
1073
|
}
|
|
@@ -1137,11 +1137,11 @@ function on() {
|
|
|
1137
1137
|
for (; t.firstChild; )
|
|
1138
1138
|
t.removeChild(t.firstChild);
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function we(t) {
|
|
1141
1141
|
var s = t.parentNode;
|
|
1142
1142
|
s && s.lastChild !== t && s.appendChild(t);
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function be(t) {
|
|
1145
1145
|
var s = t.parentNode;
|
|
1146
1146
|
s && s.firstChild !== t && s.insertBefore(t, s.firstChild);
|
|
1147
1147
|
}
|
|
@@ -1257,8 +1257,8 @@ function on() {
|
|
|
1257
1257
|
create: Q,
|
|
1258
1258
|
remove: lt,
|
|
1259
1259
|
empty: Pi,
|
|
1260
|
-
toFront:
|
|
1261
|
-
toBack:
|
|
1260
|
+
toFront: we,
|
|
1261
|
+
toBack: be,
|
|
1262
1262
|
hasClass: Mn,
|
|
1263
1263
|
addClass: W,
|
|
1264
1264
|
removeClass: ct,
|
|
@@ -1651,7 +1651,7 @@ function on() {
|
|
|
1651
1651
|
return wt(_t) / mt(_t);
|
|
1652
1652
|
}
|
|
1653
1653
|
var kt = V(0);
|
|
1654
|
-
function
|
|
1654
|
+
function Se(_t) {
|
|
1655
1655
|
return C * (mt(kt) / mt(kt + z * _t));
|
|
1656
1656
|
}
|
|
1657
1657
|
function Ko(_t) {
|
|
@@ -1665,7 +1665,7 @@ function on() {
|
|
|
1665
1665
|
var _t = (Date.now() - Jo) / Qo, Fi = Xo(_t) * ya;
|
|
1666
1666
|
_t <= 1 ? (this._flyToFrame = K(Ma, this), this._move(
|
|
1667
1667
|
this.unproject(d.add(_.subtract(d).multiplyBy(Ko(Fi) / E)), b),
|
|
1668
|
-
this.getScaleZoom(C /
|
|
1668
|
+
this.getScaleZoom(C / Se(Fi), b),
|
|
1669
1669
|
{ flyTo: !0 }
|
|
1670
1670
|
)) : this._move(t, s)._moveEnd(!0);
|
|
1671
1671
|
}
|
|
@@ -2849,8 +2849,8 @@ function on() {
|
|
|
2849
2849
|
for (C = k = E = 0, o = 0, d = mt - 1; o < mt; d = o++)
|
|
2850
2850
|
_ = zt[o], M = zt[d], b = _.y * M.x - M.y * _.x, k += (_.x + M.x) * b, E += (_.y + M.y) * b, C += b * 3;
|
|
2851
2851
|
C === 0 ? z = zt[0] : z = [k / C, E / C];
|
|
2852
|
-
var
|
|
2853
|
-
return $([
|
|
2852
|
+
var Se = s.unproject(F(z));
|
|
2853
|
+
return $([Se.lat + Z.lat, Se.lng + Z.lng]);
|
|
2854
2854
|
}
|
|
2855
2855
|
function Bn(t) {
|
|
2856
2856
|
for (var s = 0, o = 0, d = 0, _ = 0; _ < t.length; _++) {
|
|
@@ -3139,7 +3139,7 @@ function on() {
|
|
|
3139
3139
|
this._layersMaxZoom = s === -1 / 0 ? void 0 : s, this._layersMinZoom = t === 1 / 0 ? void 0 : t, o !== this._getZoomSpan() && this.fire("zoomlevelschange"), this.options.maxZoom === void 0 && this._layersMaxZoom && this.getZoom() > this._layersMaxZoom && this.setZoom(this._layersMaxZoom), this.options.minZoom === void 0 && this._layersMinZoom && this.getZoom() < this._layersMinZoom && this.setZoom(this._layersMinZoom);
|
|
3140
3140
|
}
|
|
3141
3141
|
});
|
|
3142
|
-
var
|
|
3142
|
+
var Pe = Dt.extend({
|
|
3143
3143
|
initialize: function(t, s) {
|
|
3144
3144
|
x(this, s), this._layers = {};
|
|
3145
3145
|
var o, d;
|
|
@@ -3226,13 +3226,13 @@ function on() {
|
|
|
3226
3226
|
return f(t);
|
|
3227
3227
|
}
|
|
3228
3228
|
}), To = function(t, s) {
|
|
3229
|
-
return new
|
|
3230
|
-
}, Kt =
|
|
3229
|
+
return new Pe(t, s);
|
|
3230
|
+
}, Kt = Pe.extend({
|
|
3231
3231
|
addLayer: function(t) {
|
|
3232
|
-
return this.hasLayer(t) ? this : (t.addEventParent(this),
|
|
3232
|
+
return this.hasLayer(t) ? this : (t.addEventParent(this), Pe.prototype.addLayer.call(this, t), this.fire("layeradd", { layer: t }));
|
|
3233
3233
|
},
|
|
3234
3234
|
removeLayer: function(t) {
|
|
3235
|
-
return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(this),
|
|
3235
|
+
return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(this), Pe.prototype.removeLayer.call(this, t), this.fire("layerremove", { layer: t })) : this;
|
|
3236
3236
|
},
|
|
3237
3237
|
// @method setStyle(style: Path options): this
|
|
3238
3238
|
// Sets the given path options to each layer of the group that has a `setStyle` method.
|
|
@@ -3261,7 +3261,7 @@ function on() {
|
|
|
3261
3261
|
}
|
|
3262
3262
|
}), Eo = function(t, s) {
|
|
3263
3263
|
return new Kt(t, s);
|
|
3264
|
-
},
|
|
3264
|
+
}, Ce = Ct.extend({
|
|
3265
3265
|
/* @section
|
|
3266
3266
|
* @aka Icon options
|
|
3267
3267
|
*
|
|
@@ -3348,9 +3348,9 @@ function on() {
|
|
|
3348
3348
|
}
|
|
3349
3349
|
});
|
|
3350
3350
|
function So(t) {
|
|
3351
|
-
return new
|
|
3351
|
+
return new Ce(t);
|
|
3352
3352
|
}
|
|
3353
|
-
var Je =
|
|
3353
|
+
var Je = Ce.extend({
|
|
3354
3354
|
options: {
|
|
3355
3355
|
iconUrl: "marker-icon.png",
|
|
3356
3356
|
iconRetinaUrl: "marker-icon-2x.png",
|
|
@@ -3362,7 +3362,7 @@ function on() {
|
|
|
3362
3362
|
shadowSize: [41, 41]
|
|
3363
3363
|
},
|
|
3364
3364
|
_getIconUrl: function(t) {
|
|
3365
|
-
return typeof Je.imagePath != "string" && (Je.imagePath = this._detectIconPath()), (this.options.imagePath || Je.imagePath) +
|
|
3365
|
+
return typeof Je.imagePath != "string" && (Je.imagePath = this._detectIconPath()), (this.options.imagePath || Je.imagePath) + Ce.prototype._getIconUrl.call(this, t);
|
|
3366
3366
|
},
|
|
3367
3367
|
_stripUrl: function(t) {
|
|
3368
3368
|
var s = function(o, d, _) {
|
|
@@ -3939,7 +3939,7 @@ function on() {
|
|
|
3939
3939
|
return new Xt(t, s);
|
|
3940
3940
|
}
|
|
3941
3941
|
Xt._flat = Js;
|
|
3942
|
-
var
|
|
3942
|
+
var ke = Xt.extend({
|
|
3943
3943
|
options: {
|
|
3944
3944
|
fill: !0
|
|
3945
3945
|
},
|
|
@@ -3989,7 +3989,7 @@ function on() {
|
|
|
3989
3989
|
}
|
|
3990
3990
|
});
|
|
3991
3991
|
function Bo(t, s) {
|
|
3992
|
-
return new
|
|
3992
|
+
return new ke(t, s);
|
|
3993
3993
|
}
|
|
3994
3994
|
var Jt = Kt.extend({
|
|
3995
3995
|
/* @section
|
|
@@ -4092,7 +4092,7 @@ function on() {
|
|
|
4092
4092
|
return k = zi(d, o.type === "LineString" ? 0 : 1, b), new Xt(k, s);
|
|
4093
4093
|
case "Polygon":
|
|
4094
4094
|
case "MultiPolygon":
|
|
4095
|
-
return k = zi(d, o.type === "Polygon" ? 1 : 2, b), new
|
|
4095
|
+
return k = zi(d, o.type === "Polygon" ? 1 : 2, b), new ke(k, s);
|
|
4096
4096
|
case "GeometryCollection":
|
|
4097
4097
|
for (E = 0, z = o.geometries.length; E < z; E++) {
|
|
4098
4098
|
var Z = Oi({
|
|
@@ -4132,7 +4132,7 @@ function on() {
|
|
|
4132
4132
|
_.push(s ? Bi(t[M], Ot(t[M]) ? 0 : s - 1, o, d) : Fn(t[M], d));
|
|
4133
4133
|
return !s && o && _.length > 0 && _.push(_[0].slice()), _;
|
|
4134
4134
|
}
|
|
4135
|
-
function
|
|
4135
|
+
function Te(t, s) {
|
|
4136
4136
|
return t.feature ? l({}, t.feature, { geometry: s }) : Ni(s);
|
|
4137
4137
|
}
|
|
4138
4138
|
function Ni(t) {
|
|
@@ -4144,7 +4144,7 @@ function on() {
|
|
|
4144
4144
|
}
|
|
4145
4145
|
var Un = {
|
|
4146
4146
|
toGeoJSON: function(t) {
|
|
4147
|
-
return
|
|
4147
|
+
return Te(this, {
|
|
4148
4148
|
type: "Point",
|
|
4149
4149
|
coordinates: Fn(this.getLatLng(), t)
|
|
4150
4150
|
});
|
|
@@ -4153,25 +4153,25 @@ function on() {
|
|
|
4153
4153
|
Ai.include(Un), Zn.include(Un), Ii.include(Un), Xt.include({
|
|
4154
4154
|
toGeoJSON: function(t) {
|
|
4155
4155
|
var s = !Ot(this._latlngs), o = Bi(this._latlngs, s ? 1 : 0, !1, t);
|
|
4156
|
-
return
|
|
4156
|
+
return Te(this, {
|
|
4157
4157
|
type: (s ? "Multi" : "") + "LineString",
|
|
4158
4158
|
coordinates: o
|
|
4159
4159
|
});
|
|
4160
4160
|
}
|
|
4161
|
-
}),
|
|
4161
|
+
}), ke.include({
|
|
4162
4162
|
toGeoJSON: function(t) {
|
|
4163
4163
|
var s = !Ot(this._latlngs), o = s && !Ot(this._latlngs[0]), d = Bi(this._latlngs, o ? 2 : s ? 1 : 0, !0, t);
|
|
4164
|
-
return s || (d = [d]),
|
|
4164
|
+
return s || (d = [d]), Te(this, {
|
|
4165
4165
|
type: (o ? "Multi" : "") + "Polygon",
|
|
4166
4166
|
coordinates: d
|
|
4167
4167
|
});
|
|
4168
4168
|
}
|
|
4169
|
-
}),
|
|
4169
|
+
}), Pe.include({
|
|
4170
4170
|
toMultiPoint: function(t) {
|
|
4171
4171
|
var s = [];
|
|
4172
4172
|
return this.eachLayer(function(o) {
|
|
4173
4173
|
s.push(o.toGeoJSON(t).geometry.coordinates);
|
|
4174
|
-
}),
|
|
4174
|
+
}), Te(this, {
|
|
4175
4175
|
type: "MultiPoint",
|
|
4176
4176
|
coordinates: s
|
|
4177
4177
|
});
|
|
@@ -4194,7 +4194,7 @@ function on() {
|
|
|
4194
4194
|
b.type === "FeatureCollection" ? d.push.apply(d, b.features) : d.push(b);
|
|
4195
4195
|
}
|
|
4196
4196
|
}
|
|
4197
|
-
}), o ?
|
|
4197
|
+
}), o ? Te(this, {
|
|
4198
4198
|
geometries: d,
|
|
4199
4199
|
type: "GeometryCollection"
|
|
4200
4200
|
}) : {
|
|
@@ -4254,12 +4254,12 @@ function on() {
|
|
|
4254
4254
|
// @method bringToFront(): this
|
|
4255
4255
|
// Brings the layer to the top of all overlays.
|
|
4256
4256
|
bringToFront: function() {
|
|
4257
|
-
return this._map &&
|
|
4257
|
+
return this._map && we(this._image), this;
|
|
4258
4258
|
},
|
|
4259
4259
|
// @method bringToBack(): this
|
|
4260
4260
|
// Brings the layer to the bottom of all overlays.
|
|
4261
4261
|
bringToBack: function() {
|
|
4262
|
-
return this._map &&
|
|
4262
|
+
return this._map && be(this._image), this;
|
|
4263
4263
|
},
|
|
4264
4264
|
// @method setUrl(url: String): this
|
|
4265
4265
|
// Changes the URL of the image.
|
|
@@ -4483,12 +4483,12 @@ function on() {
|
|
|
4483
4483
|
// @method bringToFront: this
|
|
4484
4484
|
// Brings this overlay in front of other overlays (in the same map pane).
|
|
4485
4485
|
bringToFront: function() {
|
|
4486
|
-
return this._map &&
|
|
4486
|
+
return this._map && we(this._container), this;
|
|
4487
4487
|
},
|
|
4488
4488
|
// @method bringToBack: this
|
|
4489
4489
|
// Brings this overlay to the back of other overlays (in the same map pane).
|
|
4490
4490
|
bringToBack: function() {
|
|
4491
|
-
return this._map &&
|
|
4491
|
+
return this._map && be(this._container), this;
|
|
4492
4492
|
},
|
|
4493
4493
|
// prepare bound overlay to open: update latlng pos / content source (for FeatureGroup)
|
|
4494
4494
|
_prepareOpen: function(t) {
|
|
@@ -4922,7 +4922,7 @@ function on() {
|
|
|
4922
4922
|
this._tooltip.options.sticky && t.originalEvent && (o = this._map.mouseEventToContainerPoint(t.originalEvent), d = this._map.containerPointToLayerPoint(o), s = this._map.layerPointToLatLng(d)), this._tooltip.setLatLng(s);
|
|
4923
4923
|
}
|
|
4924
4924
|
});
|
|
4925
|
-
var aa =
|
|
4925
|
+
var aa = Ce.extend({
|
|
4926
4926
|
options: {
|
|
4927
4927
|
// @section
|
|
4928
4928
|
// @aka DivIcon options
|
|
@@ -4954,7 +4954,7 @@ function on() {
|
|
|
4954
4954
|
function Uo(t) {
|
|
4955
4955
|
return new aa(t);
|
|
4956
4956
|
}
|
|
4957
|
-
|
|
4957
|
+
Ce.Default = Je;
|
|
4958
4958
|
var Qe = Dt.extend({
|
|
4959
4959
|
// @section
|
|
4960
4960
|
// @aka GridLayer options
|
|
@@ -5031,12 +5031,12 @@ function on() {
|
|
|
5031
5031
|
// @method bringToFront: this
|
|
5032
5032
|
// Brings the tile layer to the top of all tile layers.
|
|
5033
5033
|
bringToFront: function() {
|
|
5034
|
-
return this._map && (
|
|
5034
|
+
return this._map && (we(this._container), this._setAutoZIndex(Math.max)), this;
|
|
5035
5035
|
},
|
|
5036
5036
|
// @method bringToBack: this
|
|
5037
5037
|
// Brings the tile layer to the bottom of all tile layers.
|
|
5038
5038
|
bringToBack: function() {
|
|
5039
|
-
return this._map && (
|
|
5039
|
+
return this._map && (be(this._container), this._setAutoZIndex(Math.min)), this;
|
|
5040
5040
|
},
|
|
5041
5041
|
// @method getContainer: HTMLElement
|
|
5042
5042
|
// Returns the HTML element that contains the tiles for this layer.
|
|
@@ -5251,8 +5251,8 @@ function on() {
|
|
|
5251
5251
|
mt ? mt.current = !0 : b.push(wt);
|
|
5252
5252
|
}
|
|
5253
5253
|
}
|
|
5254
|
-
if (b.sort(function(kt,
|
|
5255
|
-
return kt.distanceTo(M) -
|
|
5254
|
+
if (b.sort(function(kt, Se) {
|
|
5255
|
+
return kt.distanceTo(M) - Se.distanceTo(M);
|
|
5256
5256
|
}), b.length !== 0) {
|
|
5257
5257
|
this._loading || (this._loading = !0, this.fire("loading"));
|
|
5258
5258
|
var zt = document.createDocumentFragment();
|
|
@@ -5358,7 +5358,7 @@ function on() {
|
|
|
5358
5358
|
function Ho(t) {
|
|
5359
5359
|
return new Qe(t);
|
|
5360
5360
|
}
|
|
5361
|
-
var
|
|
5361
|
+
var Ee = Qe.extend({
|
|
5362
5362
|
// @section
|
|
5363
5363
|
// @aka TileLayer options
|
|
5364
5364
|
options: {
|
|
@@ -5479,9 +5479,9 @@ function on() {
|
|
|
5479
5479
|
}
|
|
5480
5480
|
});
|
|
5481
5481
|
function ra(t, s) {
|
|
5482
|
-
return new
|
|
5482
|
+
return new Ee(t, s);
|
|
5483
5483
|
}
|
|
5484
|
-
var oa =
|
|
5484
|
+
var oa = Ee.extend({
|
|
5485
5485
|
// @section
|
|
5486
5486
|
// @aka TileLayer.WMS options
|
|
5487
5487
|
// If any custom options not documented here are used, they will be sent to the
|
|
@@ -5527,10 +5527,10 @@ function on() {
|
|
|
5527
5527
|
onAdd: function(t) {
|
|
5528
5528
|
this._crs = this.options.crs || t.options.crs, this._wmsVersion = parseFloat(this.wmsParams.version);
|
|
5529
5529
|
var s = this._wmsVersion >= 1.3 ? "crs" : "srs";
|
|
5530
|
-
this.wmsParams[s] = this._crs.code,
|
|
5530
|
+
this.wmsParams[s] = this._crs.code, Ee.prototype.onAdd.call(this, t);
|
|
5531
5531
|
},
|
|
5532
5532
|
getTileUrl: function(t) {
|
|
5533
|
-
var s = this._tileCoordsToNwSe(t), o = this._crs, d = gt(o.project(s[0]), o.project(s[1])), _ = d.min, M = d.max, b = (this._wmsVersion >= 1.3 && this._crs === Ys ? [_.y, _.x, M.y, M.x] : [_.x, _.y, M.x, M.y]).join(","), C =
|
|
5533
|
+
var s = this._tileCoordsToNwSe(t), o = this._crs, d = gt(o.project(s[0]), o.project(s[1])), _ = d.min, M = d.max, b = (this._wmsVersion >= 1.3 && this._crs === Ys ? [_.y, _.x, M.y, M.x] : [_.x, _.y, M.x, M.y]).join(","), C = Ee.prototype.getTileUrl.call(this, t);
|
|
5534
5534
|
return C + w(this.wmsParams, C, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + b;
|
|
5535
5535
|
},
|
|
5536
5536
|
// @method setParams(params: Object, noRedraw?: Boolean): this
|
|
@@ -5542,7 +5542,7 @@ function on() {
|
|
|
5542
5542
|
function qo(t, s) {
|
|
5543
5543
|
return new oa(t, s);
|
|
5544
5544
|
}
|
|
5545
|
-
|
|
5545
|
+
Ee.WMS = oa, ra.wms = qo;
|
|
5546
5546
|
var Qt = Dt.extend({
|
|
5547
5547
|
// @section
|
|
5548
5548
|
// @aka Renderer options
|
|
@@ -5825,10 +5825,10 @@ function on() {
|
|
|
5825
5825
|
t._path.v = s;
|
|
5826
5826
|
},
|
|
5827
5827
|
_bringToFront: function(t) {
|
|
5828
|
-
|
|
5828
|
+
we(t._container);
|
|
5829
5829
|
},
|
|
5830
5830
|
_bringToBack: function(t) {
|
|
5831
|
-
|
|
5831
|
+
be(t._container);
|
|
5832
5832
|
}
|
|
5833
5833
|
}, Gi = D.vml ? Ye : fs, ti = Qt.extend({
|
|
5834
5834
|
_initContainer: function() {
|
|
@@ -5874,10 +5874,10 @@ function on() {
|
|
|
5874
5874
|
},
|
|
5875
5875
|
// SVG does not have the concept of zIndex so we resort to changing the DOM order of elements
|
|
5876
5876
|
_bringToFront: function(t) {
|
|
5877
|
-
|
|
5877
|
+
we(t._path);
|
|
5878
5878
|
},
|
|
5879
5879
|
_bringToBack: function(t) {
|
|
5880
|
-
|
|
5880
|
+
be(t._path);
|
|
5881
5881
|
}
|
|
5882
5882
|
});
|
|
5883
5883
|
D.vml && ti.include(jo);
|
|
@@ -5903,9 +5903,9 @@ function on() {
|
|
|
5903
5903
|
return this.options.preferCanvas && la(t) || ua(t);
|
|
5904
5904
|
}
|
|
5905
5905
|
});
|
|
5906
|
-
var ca =
|
|
5906
|
+
var ca = ke.extend({
|
|
5907
5907
|
initialize: function(t, s) {
|
|
5908
|
-
|
|
5908
|
+
ke.prototype.initialize.call(this, this._boundsToLatLngs(t), s);
|
|
5909
5909
|
},
|
|
5910
5910
|
// @method setBounds(latLngBounds: LatLngBounds): this
|
|
5911
5911
|
// Redraws the rectangle with the passed bounds.
|
|
@@ -5924,7 +5924,7 @@ function on() {
|
|
|
5924
5924
|
function Wo(t, s) {
|
|
5925
5925
|
return new ca(t, s);
|
|
5926
5926
|
}
|
|
5927
|
-
ti.create = Gi, ti.pointsToPath = _s, Jt.geometryToLayer = Oi, Jt.coordsToLatLng = Gn, Jt.coordsToLatLngs = zi, Jt.latLngToCoords = Fn, Jt.latLngsToCoords = Bi, Jt.getFeature =
|
|
5927
|
+
ti.create = Gi, ti.pointsToPath = _s, Jt.geometryToLayer = Oi, Jt.coordsToLatLng = Gn, Jt.coordsToLatLngs = zi, Jt.latLngToCoords = Fn, Jt.latLngsToCoords = Bi, Jt.getFeature = Te, Jt.asFeature = Ni, X.mergeOptions({
|
|
5928
5928
|
// @option boxZoom: Boolean = true
|
|
5929
5929
|
// Whether the map can be zoomed to a rectangular area specified by
|
|
5930
5930
|
// dragging the mouse while pressing the shift key.
|
|
@@ -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 = ne, n.Evented = ce, n.FeatureGroup = Kt, n.GeoJSON = Jt, n.GridLayer = Qe, n.Handler = Ut, n.Icon =
|
|
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 = ne, 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 = se, 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;
|
|
@@ -6404,14 +6404,14 @@ function ci(e, i, n) {
|
|
|
6404
6404
|
itemType: e,
|
|
6405
6405
|
handle: i
|
|
6406
6406
|
};
|
|
6407
|
-
return Ki.push(r), n && i(...
|
|
6407
|
+
return Ki.push(r), n && i(...ye(e), e), () => {
|
|
6408
6408
|
const l = Ki.findIndex(
|
|
6409
6409
|
(a) => a.handle == i
|
|
6410
6410
|
);
|
|
6411
6411
|
l >= 0 && Ki.splice(l, 1);
|
|
6412
6412
|
};
|
|
6413
6413
|
}
|
|
6414
|
-
function
|
|
6414
|
+
function ye(e) {
|
|
6415
6415
|
return [ve[e], ve];
|
|
6416
6416
|
}
|
|
6417
6417
|
const uh = {
|
|
@@ -6523,6 +6523,7 @@ rt.Icon.Default.mergeOptions({
|
|
|
6523
6523
|
imagePath: "data:image/png;base64,"
|
|
6524
6524
|
});
|
|
6525
6525
|
function ch(e, i, n, r) {
|
|
6526
|
+
var c;
|
|
6526
6527
|
const l = uh[e], a = l[i].Map, h = l.key, u = h ? { [h]: l[h] } : {}, f = n.getCenter();
|
|
6527
6528
|
e == "Baidu" ? (n.options.crs = rt.CRS.Baidu, n.setMaxBounds(rt.latLngBounds([0, 0], [85, 180]))) : (n.options.crs = rt.CRS.EPSG3857, n.setMaxBounds(rt.latLngBounds([-90, 180], [90, -180]))), n.setView(f);
|
|
6528
6529
|
const m = J({
|
|
@@ -6530,10 +6531,16 @@ function ch(e, i, n, r) {
|
|
|
6530
6531
|
attribution: `${e} ${i}`,
|
|
6531
6532
|
maxZoom: 18,
|
|
6532
6533
|
zIndex: 9
|
|
6533
|
-
}, u)
|
|
6534
|
+
}, u);
|
|
6535
|
+
let y = `${a.startsWith("http") ? a : "https:" + a}`;
|
|
6536
|
+
if (e == "Offline") {
|
|
6537
|
+
const g = (c = ye("prefixPath")[0]) == null ? void 0 : c.offline;
|
|
6538
|
+
g && (y = y.replace("/bvmap/v1/tile", `${g}/bvmap/v1/tile`));
|
|
6539
|
+
}
|
|
6540
|
+
const p = r || rt.tileLayer(y, J({}, m));
|
|
6534
6541
|
if (p && (p.setUrl(y), p.initialize(y, m)), p.maptype = e, l[i].Annotion) {
|
|
6535
|
-
const
|
|
6536
|
-
`${
|
|
6542
|
+
const g = l[i].Annotion, v = rt.tileLayer(
|
|
6543
|
+
`${g.startsWith("http") ? g : "https:" + g}`,
|
|
6537
6544
|
J({
|
|
6538
6545
|
subdomains: l.Subdomains,
|
|
6539
6546
|
attribution: `${e} ${i}`,
|
|
@@ -6541,25 +6548,25 @@ function ch(e, i, n, r) {
|
|
|
6541
6548
|
zIndex: 10
|
|
6542
6549
|
}, u)
|
|
6543
6550
|
);
|
|
6544
|
-
|
|
6545
|
-
|
|
6551
|
+
v.on("tileload", (w) => {
|
|
6552
|
+
w.tile.className += " tile-custom-test";
|
|
6546
6553
|
});
|
|
6547
|
-
const
|
|
6548
|
-
|
|
6554
|
+
const x = () => {
|
|
6555
|
+
v.remove(), p.off("remove", x);
|
|
6549
6556
|
};
|
|
6550
|
-
p.on("remove",
|
|
6557
|
+
p.on("remove", x), v.maptype = e, v.addTo(n);
|
|
6551
6558
|
}
|
|
6552
6559
|
return p.addTo(n), setTimeout(() => {
|
|
6553
6560
|
n.setView(f);
|
|
6554
6561
|
}, 100), p;
|
|
6555
6562
|
}
|
|
6556
6563
|
function dh(e, i) {
|
|
6557
|
-
const [n] =
|
|
6558
|
-
let r = e({ mapType: n, tileType:
|
|
6564
|
+
const [n] = ye("mapType");
|
|
6565
|
+
let r = e({ mapType: n, tileType: ye("tileType")[0] });
|
|
6559
6566
|
function l() {
|
|
6560
6567
|
i.direct || (r.remove(), r = e({
|
|
6561
|
-
mapType:
|
|
6562
|
-
tileType:
|
|
6568
|
+
mapType: ye("mapType")[0],
|
|
6569
|
+
tileType: ye("tileType")[0]
|
|
6563
6570
|
}), r.on("tileload", (u) => {
|
|
6564
6571
|
u.tile.className += " tile-custom-test";
|
|
6565
6572
|
}));
|
|
@@ -12359,7 +12366,7 @@ function tl(e) {
|
|
|
12359
12366
|
e("EPSG:" + (32600 + i), "+proj=utm +zone=" + i + " +datum=WGS84 +units=m"), e("EPSG:" + (32700 + i), "+proj=utm +zone=" + i + " +south +datum=WGS84 +units=m");
|
|
12360
12367
|
e.WGS84 = e["EPSG:4326"], e["EPSG:3785"] = e["EPSG:3857"], e.GOOGLE = e["EPSG:3857"], e["EPSG:900913"] = e["EPSG:3857"], e["EPSG:102113"] = e["EPSG:3857"];
|
|
12361
12368
|
}
|
|
12362
|
-
var
|
|
12369
|
+
var Me = 1, Le = 2, Ne = 3, el = 4, Qn = 5, Za = 6378137, il = 6356752314e-3, Ga = 0.0066943799901413165, ri = 484813681109536e-20, A = Math.PI / 2, nl = 0.16666666666666666, sl = 0.04722222222222222, al = 0.022156084656084655, I = 1e-10, yt = 0.017453292519943295, jt = 57.29577951308232, tt = Math.PI / 4, fi = Math.PI * 2, dt = 3.14159265359, St = {};
|
|
12363
12370
|
St.greenwich = 0;
|
|
12364
12371
|
St.lisbon = -9.131906111111;
|
|
12365
12372
|
St.paris = 2.337229166667;
|
|
@@ -13304,7 +13311,7 @@ for (var Zl in Ji) {
|
|
|
13304
13311
|
}
|
|
13305
13312
|
function Gl(e, i, n, r, l, a, h) {
|
|
13306
13313
|
var u = {};
|
|
13307
|
-
return e === void 0 || e === "none" ? u.datum_type = Qn : u.datum_type = el, i && (u.datum_params = i.map(parseFloat), (u.datum_params[0] !== 0 || u.datum_params[1] !== 0 || u.datum_params[2] !== 0) && (u.datum_type =
|
|
13314
|
+
return e === void 0 || e === "none" ? u.datum_type = Qn : u.datum_type = el, i && (u.datum_params = i.map(parseFloat), (u.datum_params[0] !== 0 || u.datum_params[1] !== 0 || u.datum_params[2] !== 0) && (u.datum_type = Me), u.datum_params.length > 3 && (u.datum_params[3] !== 0 || u.datum_params[4] !== 0 || u.datum_params[5] !== 0 || u.datum_params[6] !== 0) && (u.datum_type = Le, u.datum_params[3] *= ri, u.datum_params[4] *= ri, u.datum_params[5] *= ri, u.datum_params[6] = u.datum_params[6] / 1e6 + 1)), h && (u.datum_type = Ne, u.grids = h), u.a = n, u.b = r, u.es = l, u.ep2 = a, u;
|
|
13308
13315
|
}
|
|
13309
13316
|
var gr = {};
|
|
13310
13317
|
function Fl(e, i) {
|
|
@@ -13433,7 +13440,7 @@ function Wt(e, i) {
|
|
|
13433
13440
|
Wt.projections = Bl;
|
|
13434
13441
|
Wt.projections.start();
|
|
13435
13442
|
function Xl(e, i) {
|
|
13436
|
-
return e.datum_type !== i.datum_type || e.a !== i.a || Math.abs(e.es - i.es) > 5e-11 ? !1 : e.datum_type ===
|
|
13443
|
+
return e.datum_type !== i.datum_type || e.a !== i.a || Math.abs(e.es - i.es) > 5e-11 ? !1 : e.datum_type === Me ? e.datum_params[0] === i.datum_params[0] && e.datum_params[1] === i.datum_params[1] && e.datum_params[2] === i.datum_params[2] : e.datum_type === Le ? e.datum_params[0] === i.datum_params[0] && e.datum_params[1] === i.datum_params[1] && e.datum_params[2] === i.datum_params[2] && e.datum_params[3] === i.datum_params[3] && e.datum_params[4] === i.datum_params[4] && e.datum_params[5] === i.datum_params[5] && e.datum_params[6] === i.datum_params[6] : !0;
|
|
13437
13444
|
}
|
|
13438
13445
|
function pr(e, i, n) {
|
|
13439
13446
|
var r = e.x, l = e.y, a = e.z ? e.z : 0, h, u, f, m;
|
|
@@ -13475,13 +13482,13 @@ function vr(e, i, n, r) {
|
|
|
13475
13482
|
};
|
|
13476
13483
|
}
|
|
13477
13484
|
function Jl(e, i, n) {
|
|
13478
|
-
if (i ===
|
|
13485
|
+
if (i === Me)
|
|
13479
13486
|
return {
|
|
13480
13487
|
x: e.x + n[0],
|
|
13481
13488
|
y: e.y + n[1],
|
|
13482
13489
|
z: e.z + n[2]
|
|
13483
13490
|
};
|
|
13484
|
-
if (i ===
|
|
13491
|
+
if (i === Le) {
|
|
13485
13492
|
var r = n[0], l = n[1], a = n[2], h = n[3], u = n[4], f = n[5], m = n[6];
|
|
13486
13493
|
return {
|
|
13487
13494
|
x: m * (e.x - f * e.y + u * e.z) + r,
|
|
@@ -13491,13 +13498,13 @@ function Jl(e, i, n) {
|
|
|
13491
13498
|
}
|
|
13492
13499
|
}
|
|
13493
13500
|
function Ql(e, i, n) {
|
|
13494
|
-
if (i ===
|
|
13501
|
+
if (i === Me)
|
|
13495
13502
|
return {
|
|
13496
13503
|
x: e.x - n[0],
|
|
13497
13504
|
y: e.y - n[1],
|
|
13498
13505
|
z: e.z - n[2]
|
|
13499
13506
|
};
|
|
13500
|
-
if (i ===
|
|
13507
|
+
if (i === Le) {
|
|
13501
13508
|
var r = n[0], l = n[1], a = n[2], h = n[3], u = n[4], f = n[5], m = n[6], y = (e.x - r) / m, p = (e.y - l) / m, c = (e.z - a) / m;
|
|
13502
13509
|
return {
|
|
13503
13510
|
x: y + f * p - u * c,
|
|
@@ -13507,7 +13514,7 @@ function Ql(e, i, n) {
|
|
|
13507
13514
|
}
|
|
13508
13515
|
}
|
|
13509
13516
|
function Vi(e) {
|
|
13510
|
-
return e ===
|
|
13517
|
+
return e === Me || e === Le;
|
|
13511
13518
|
}
|
|
13512
13519
|
function Yl(e, i, n) {
|
|
13513
13520
|
if (Xl(e, i) || e.datum_type === Qn || i.datum_type === Qn)
|
|
@@ -13641,7 +13648,7 @@ function $a(e) {
|
|
|
13641
13648
|
throw new TypeError("coordinates must be finite numbers");
|
|
13642
13649
|
}
|
|
13643
13650
|
function iu(e, i) {
|
|
13644
|
-
return (e.datum.datum_type ===
|
|
13651
|
+
return (e.datum.datum_type === Me || e.datum.datum_type === Le || e.datum.datum_type === Ne) && i.datumCode !== "WGS84" || (i.datum.datum_type === Me || i.datum.datum_type === Le || i.datum.datum_type === Ne) && e.datumCode !== "WGS84";
|
|
13645
13652
|
}
|
|
13646
13653
|
function nn(e, i, n, r) {
|
|
13647
13654
|
var l;
|
|
@@ -14211,7 +14218,7 @@ const rc = {
|
|
|
14211
14218
|
inverse: sc,
|
|
14212
14219
|
names: ac
|
|
14213
14220
|
};
|
|
14214
|
-
var
|
|
14221
|
+
var Ae = 1e-7;
|
|
14215
14222
|
function oc(e) {
|
|
14216
14223
|
var i = ["Hotine_Oblique_Mercator", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin"], n = typeof e.PROJECTION == "object" ? Object.keys(e.PROJECTION)[0] : e.PROJECTION;
|
|
14217
14224
|
return "no_uoff" in e || "no_off" in e || i.indexOf(n) !== -1;
|
|
@@ -14224,7 +14231,7 @@ function hc() {
|
|
|
14224
14231
|
var S = !1;
|
|
14225
14232
|
if ("rectified_grid_angle" in this && (S = !0), T && (P = this.alpha), S && (y = this.rectified_grid_angle * yt), T || S)
|
|
14226
14233
|
c = this.longc;
|
|
14227
|
-
else if (g = this.long1, x = this.lat1, v = this.long2, w = this.lat2, Math.abs(x - w) <=
|
|
14234
|
+
else if (g = this.long1, x = this.lat1, v = this.long2, w = this.lat2, Math.abs(x - w) <= Ae || (e = Math.abs(x)) <= Ae || Math.abs(e - A) <= Ae || Math.abs(Math.abs(this.lat0) - A) <= Ae || Math.abs(Math.abs(w) - A) <= Ae)
|
|
14228
14235
|
throw new Error();
|
|
14229
14236
|
var B = 1 - this.es;
|
|
14230
14237
|
i = Math.sqrt(B), Math.abs(this.lat0) > I ? (u = Math.sin(this.lat0), n = Math.cos(this.lat0), e = 1 - this.es * u * u, this.B = n * n, this.B = Math.sqrt(1 + this.es * this.B * this.B / B), this.A = this.B * this.k0 * i / e, r = this.B * i / (n * Math.sqrt(e)), l = r * r - 1, l <= 0 ? l = 0 : (l = Math.sqrt(l), this.lat0 < 0 && (l = -l)), this.E = l += r, this.E *= Math.pow(Rt(this.e, this.lat0, u), this.B)) : (this.B = 1 / i, this.A = this.k0, this.E = r = l = 1), T || S ? (T ? (p = Math.asin(Math.sin(P) / r), S || (y = P)) : (p = y, P = Math.asin(r * Math.sin(p))), this.lam0 = c - Math.asin(0.5 * (l - 1 / l) * Math.tan(p)) / this.B) : (a = Math.pow(Rt(this.e, x, Math.sin(x)), this.B), h = Math.pow(Rt(this.e, w, Math.sin(w)), this.B), l = this.E / a, f = (h - a) / (h + a), m = this.E * this.E, m = (m - h * a) / (m + h * a), e = g - v, e < -Math.pi ? v -= fi : e > Math.pi && (v += fi), this.lam0 = O(0.5 * (g + v) - Math.atan(m * Math.tan(0.5 * this.B * (g - v)) / f) / this.B), p = Math.atan(2 * Math.sin(this.B * O(g - this.lam0)) / (l - 1 / l)), y = P = Math.asin(r * Math.sin(p))), this.singam = Math.sin(p), this.cosgam = Math.cos(p), this.sinrot = Math.sin(y), this.cosrot = Math.cos(y), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.A * this.B, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(r * r - 1) / Math.cos(P))), this.lat0 < 0 && (this.u_0 = -this.u_0)), l = 0.5 * p, this.v_pole_n = this.ArB * Math.log(Math.tan(tt - l)), this.v_pole_s = this.ArB * Math.log(Math.tan(tt + l));
|
|
@@ -14234,7 +14241,7 @@ function lc(e) {
|
|
|
14234
14241
|
if (e.x = e.x - this.lam0, Math.abs(Math.abs(e.y) - A) > I) {
|
|
14235
14242
|
if (h = this.E / Math.pow(Rt(this.e, e.y, Math.sin(e.y)), this.B), u = 1 / h, n = 0.5 * (h - u), r = 0.5 * (h + u), a = Math.sin(this.B * e.x), l = (n * this.singam - a * this.cosgam) / r, Math.abs(Math.abs(l) - 1) < I)
|
|
14236
14243
|
throw new Error();
|
|
14237
|
-
m = 0.5 * this.ArB * Math.log((1 - l) / (1 + l)), u = Math.cos(this.B * e.x), Math.abs(u) <
|
|
14244
|
+
m = 0.5 * this.ArB * Math.log((1 - l) / (1 + l)), u = Math.cos(this.B * e.x), Math.abs(u) < Ae ? f = this.A * e.x : f = this.ArB * Math.atan2(n * this.cosgam + a * this.singam, u);
|
|
14238
14245
|
} else
|
|
14239
14246
|
m = e.y > 0 ? this.v_pole_n : this.v_pole_s, f = this.ArB * e.y;
|
|
14240
14247
|
return this.no_rot ? (i.x = f, i.y = m) : (f -= this.u_0, i.x = m * this.cosrot + f * this.sinrot, i.y = f * this.cosrot - m * this.sinrot), i.x = this.a * i.x + this.x0, i.y = this.a * i.y + this.y0, i;
|
|
@@ -15408,7 +15415,8 @@ function Yf() {
|
|
|
15408
15415
|
function Kf(e) {
|
|
15409
15416
|
hn({
|
|
15410
15417
|
tileType: e.tileType ? e.tileType : "Normal",
|
|
15411
|
-
mapType: e.mapType
|
|
15418
|
+
mapType: e.mapType,
|
|
15419
|
+
prefixPath: e.prefixPath
|
|
15412
15420
|
});
|
|
15413
15421
|
}
|
|
15414
15422
|
function t_(e) {
|
|
@@ -15481,7 +15489,7 @@ function s_(e) {
|
|
|
15481
15489
|
direct: (g = e.tileType) == null ? void 0 : g.direct
|
|
15482
15490
|
})
|
|
15483
15491
|
);
|
|
15484
|
-
const a =
|
|
15492
|
+
const a = ye("clusterType")[0], h = new Ch(r, ae(J({}, e.renderOptions), {
|
|
15485
15493
|
clusterType: a
|
|
15486
15494
|
})), u = new Xn(r), f = new Nh(r);
|
|
15487
15495
|
function m(v) {
|