gis-leaflet-helper 3.2.13 → 3.2.14
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.
|
@@ -13551,18 +13551,18 @@ U.LatLng.prototype.toArray = function() {
|
|
|
13551
13551
|
return [this.lat, this.lng];
|
|
13552
13552
|
};
|
|
13553
13553
|
U.Path.include({
|
|
13554
|
-
startTwinkle(e, n) {
|
|
13555
|
-
this.twinkle(e, n);
|
|
13554
|
+
startTwinkle(e, n, r = {}) {
|
|
13555
|
+
this.twinkle(e, n, r);
|
|
13556
13556
|
},
|
|
13557
13557
|
endTwinkle() {
|
|
13558
13558
|
clearTimeout(this.twinkleTimer);
|
|
13559
13559
|
},
|
|
13560
|
-
twinkle(e = 200, n = 1 / 0) {
|
|
13561
|
-
let
|
|
13562
|
-
const
|
|
13563
|
-
|
|
13560
|
+
twinkle(e = 200, n = 1 / 0, r) {
|
|
13561
|
+
let u = !1, d = 0;
|
|
13562
|
+
const f = this.options, m = () => {
|
|
13563
|
+
d++, n && e && d > Math.floor(n / e) ? (this.setStyle({ ...f, fill: !0, stroke: !0 }), this.twinkleTimer = void 0) : (u ? (this.setStyle({ ...r, fill: !1, stroke: !1 }), u = !1) : (this.setStyle({ ...r, fill: !0, stroke: !0 }), u = !0), this.twinkleTimer = setTimeout(m, e));
|
|
13564
13564
|
};
|
|
13565
|
-
|
|
13565
|
+
m();
|
|
13566
13566
|
},
|
|
13567
13567
|
getArea(e) {
|
|
13568
13568
|
if (this instanceof U.Polyline) {
|
|
@@ -18272,14 +18272,17 @@ const hl = new U.Proj.CRS(
|
|
|
18272
18272
|
fontWeight: "normal",
|
|
18273
18273
|
background: "rgba(0, 0, 0, 0)",
|
|
18274
18274
|
minZoom: void 0,
|
|
18275
|
-
maxZoom: void 0
|
|
18275
|
+
maxZoom: void 0,
|
|
18276
|
+
clsName: "leaflet-text",
|
|
18277
|
+
offset: [6, 6]
|
|
18276
18278
|
},
|
|
18277
18279
|
initialize(e, n, r = {}) {
|
|
18278
18280
|
this._latlng = e, this._enabled = !1, this.options.id = r.id || "text_" + Sh.guid(), this.options.text = n || "", r = Object.assign(this.options, r), U.setOptions(this, r);
|
|
18279
|
-
const { id: u, fontSize: d, color: f, fontWeight: m, background: g, fontShadowColor: M } = this.options;
|
|
18281
|
+
const { id: u, fontSize: d, color: f, fontWeight: m, background: g, fontShadowColor: M, clsName: S, offset: E } = this.options;
|
|
18280
18282
|
this.options.icon = new U.DivIcon({
|
|
18281
18283
|
html: `<span id=${u} style="padding:2px 4px;white-space:nowrap;font-weight:${m};font-size:${d};color:${f};background:${g};text-shadow:${M} 1px 0px 2px">${n || ""}</span>`,
|
|
18282
|
-
className:
|
|
18284
|
+
className: S,
|
|
18285
|
+
iconAnchor: E
|
|
18283
18286
|
}), U.Marker.prototype.initialize.call(this, e, this.options);
|
|
18284
18287
|
},
|
|
18285
18288
|
setStyle(e) {
|
|
@@ -19834,8 +19837,8 @@ const cl = U.Handler.extend({
|
|
|
19834
19837
|
83: "bottom"
|
|
19835
19838
|
},
|
|
19836
19839
|
zoomKeyCodeMap: {
|
|
19837
|
-
|
|
19838
|
-
|
|
19840
|
+
69: "add",
|
|
19841
|
+
81: "minus"
|
|
19839
19842
|
}
|
|
19840
19843
|
},
|
|
19841
19844
|
enable(e) {
|
|
@@ -20080,7 +20083,6 @@ function ip(e) {
|
|
|
20080
20083
|
position: relative;
|
|
20081
20084
|
box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.1);
|
|
20082
20085
|
}
|
|
20083
|
-
|
|
20084
20086
|
.${e}-dive-icon {
|
|
20085
20087
|
content: '';
|
|
20086
20088
|
border-radius: 100%;
|