tg-blog 1.1.4 → 1.1.5
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/{Location-81e58527.js → Location-0e22d74d.js} +1083 -1056
- package/dist/Location-0e22d74d.js.map +1 -0
- package/dist/Location-111c5a11.cjs +5 -0
- package/dist/Location-111c5a11.cjs.map +1 -0
- package/dist/{Poll-65ead0f9.js → Poll-12d711c7.js} +2 -2
- package/dist/{Poll-65ead0f9.js.map → Poll-12d711c7.js.map} +1 -1
- package/dist/{Poll-4e94e816.cjs → Poll-830003a5.cjs} +2 -2
- package/dist/{Poll-4e94e816.cjs.map → Poll-830003a5.cjs.map} +1 -1
- package/dist/{VideoPlayer-8b06fc9a.js → VideoPlayer-328c0f9f.js} +656 -654
- package/dist/VideoPlayer-328c0f9f.js.map +1 -0
- package/dist/VideoPlayer-fe2d64b7.cjs +3 -0
- package/dist/VideoPlayer-fe2d64b7.cjs.map +1 -0
- package/dist/{index-983584dc.js → index-6be3cc35.js} +4091 -3566
- package/dist/index-6be3cc35.js.map +1 -0
- package/dist/index-cf1ecdad.cjs +104 -0
- package/dist/index-cf1ecdad.cjs.map +1 -0
- package/dist/leaflet-src.esm-8a34e616.cjs +5 -0
- package/dist/leaflet-src.esm-8a34e616.cjs.map +1 -0
- package/dist/{leaflet-src.esm-337e0d64.js → leaflet-src.esm-a9ea7d3e.js} +1039 -1006
- package/dist/leaflet-src.esm-a9ea7d3e.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/tg-blog.cjs.js +1 -1
- package/dist/tg-blog.es.js +1 -1
- package/dist/tg-blog.umd.js +48 -49
- package/dist/tg-blog.umd.js.map +1 -1
- package/dist/types/views/TgBlog.vue.d.ts +5 -0
- package/dist/types/views/VideoPlayer.vue.d.ts +10 -13
- package/package.json +6 -7
- package/src/auto-imports.d.ts +1 -0
- package/src/components.d.ts +1 -3
- package/src/logic/spoilers.ts +60 -5
- package/src/views/FileView.vue +4 -1
- package/src/views/PostView.vue +8 -2
- package/src/views/TgBlog.vue +30 -13
- package/dist/Location-717b132f.cjs +0 -5
- package/dist/Location-717b132f.cjs.map +0 -1
- package/dist/Location-81e58527.js.map +0 -1
- package/dist/VideoPlayer-8b06fc9a.js.map +0 -1
- package/dist/VideoPlayer-9f881121.cjs +0 -3
- package/dist/VideoPlayer-9f881121.cjs.map +0 -1
- package/dist/index-983584dc.js.map +0 -1
- package/dist/index-e949c1ad.cjs +0 -105
- package/dist/index-e949c1ad.cjs.map +0 -1
- package/dist/leaflet-src.esm-28c838de.cjs +0 -5
- package/dist/leaflet-src.esm-28c838de.cjs.map +0 -1
- package/dist/leaflet-src.esm-337e0d64.js.map +0 -1
|
@@ -1,41 +1,34 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ze = (
|
|
4
|
-
import { c as
|
|
5
|
-
import { ref as
|
|
6
|
-
function
|
|
1
|
+
var Os = Object.defineProperty;
|
|
2
|
+
var ks = (c, f, a) => f in c ? Os(c, f, { enumerable: !0, configurable: !0, writable: !0, value: a }) : c[f] = a;
|
|
3
|
+
var ze = (c, f, a) => (ks(c, typeof f != "symbol" ? f + "" : f, a), a);
|
|
4
|
+
import { c as Es, g as Zs, V as Bs, P as As, O as Is, _ as Rs } from "./index-6be3cc35.js";
|
|
5
|
+
import { ref as Lt, reactive as Ns, provide as Pt, onMounted as Ie, markRaw as Re, nextTick as Ne, onBeforeUnmount as Vn, computed as Wn, h as Be, inject as Mt, watch as Un, onUnmounted as qn, render as Ds, resolveComponent as xi, openBlock as Oe, createElementBlock as ke, createElementVNode as Hs, createVNode as bi, withCtx as Fs, toDisplayString as jn, createCommentVNode as Ti } from "vue";
|
|
6
|
+
function Ws(c, f) {
|
|
7
7
|
for (var a = 0; a < f.length; a++) {
|
|
8
8
|
const d = f[a];
|
|
9
9
|
if (typeof d != "string" && !Array.isArray(d)) {
|
|
10
10
|
for (const m in d)
|
|
11
|
-
if (m !== "default" && !(m in
|
|
11
|
+
if (m !== "default" && !(m in c)) {
|
|
12
12
|
const w = Object.getOwnPropertyDescriptor(d, m);
|
|
13
|
-
w && Object.defineProperty(
|
|
13
|
+
w && Object.defineProperty(c, m, w.get ? w : {
|
|
14
14
|
enumerable: !0,
|
|
15
15
|
get: () => d[m]
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
return Object.freeze(Object.defineProperty(
|
|
20
|
+
return Object.freeze(Object.defineProperty(c, Symbol.toStringTag, { value: "Module" }));
|
|
21
21
|
}
|
|
22
|
-
var
|
|
23
|
-
get exports() {
|
|
24
|
-
return re;
|
|
25
|
-
},
|
|
26
|
-
set exports(l) {
|
|
27
|
-
re = l;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
22
|
+
var Mi = { exports: {} };
|
|
30
23
|
/* @preserve
|
|
31
|
-
* Leaflet 1.9.
|
|
32
|
-
* (c) 2010-
|
|
24
|
+
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
25
|
+
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
33
26
|
*/
|
|
34
|
-
(function(
|
|
27
|
+
(function(c, f) {
|
|
35
28
|
(function(a, d) {
|
|
36
29
|
d(f);
|
|
37
|
-
})(
|
|
38
|
-
var d = "1.9.
|
|
30
|
+
})(Es, function(a) {
|
|
31
|
+
var d = "1.9.4";
|
|
39
32
|
function m(t) {
|
|
40
33
|
var e, i, n, o;
|
|
41
34
|
for (i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -77,20 +70,20 @@ var re = {}, Hs = {
|
|
|
77
70
|
var n = e[1], o = e[0], s = n - o;
|
|
78
71
|
return t === n && i ? t : ((t - o) % s + s) % s + o;
|
|
79
72
|
}
|
|
80
|
-
function
|
|
73
|
+
function S() {
|
|
81
74
|
return !1;
|
|
82
75
|
}
|
|
83
|
-
function
|
|
76
|
+
function K(t, e) {
|
|
84
77
|
if (e === !1)
|
|
85
78
|
return t;
|
|
86
79
|
var i = Math.pow(10, e === void 0 ? 6 : e);
|
|
87
80
|
return Math.round(t * i) / i;
|
|
88
81
|
}
|
|
89
|
-
function
|
|
82
|
+
function at(t) {
|
|
90
83
|
return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
|
|
91
84
|
}
|
|
92
|
-
function
|
|
93
|
-
return
|
|
85
|
+
function G(t) {
|
|
86
|
+
return at(t).split(/\s+/);
|
|
94
87
|
}
|
|
95
88
|
function z(t, e) {
|
|
96
89
|
Object.prototype.hasOwnProperty.call(t, "options") || (t.options = t.options ? w(t.options) : {});
|
|
@@ -98,52 +91,52 @@ var re = {}, Hs = {
|
|
|
98
91
|
t.options[i] = e[i];
|
|
99
92
|
return t.options;
|
|
100
93
|
}
|
|
101
|
-
function
|
|
94
|
+
function it(t, e, i) {
|
|
102
95
|
var n = [];
|
|
103
96
|
for (var o in t)
|
|
104
97
|
n.push(encodeURIComponent(i ? o.toUpperCase() : o) + "=" + encodeURIComponent(t[o]));
|
|
105
98
|
return (!e || e.indexOf("?") === -1 ? "?" : "&") + n.join("&");
|
|
106
99
|
}
|
|
107
|
-
var
|
|
108
|
-
function
|
|
109
|
-
return t.replace(
|
|
100
|
+
var Gt = /\{ *([\w_ -]+) *\}/g;
|
|
101
|
+
function ue(t, e) {
|
|
102
|
+
return t.replace(Gt, function(i, n) {
|
|
110
103
|
var o = e[n];
|
|
111
104
|
if (o === void 0)
|
|
112
105
|
throw new Error("No value provided for variable " + i);
|
|
113
106
|
return typeof o == "function" && (o = o(e)), o;
|
|
114
107
|
});
|
|
115
108
|
}
|
|
116
|
-
var
|
|
109
|
+
var tt = Array.isArray || function(t) {
|
|
117
110
|
return Object.prototype.toString.call(t) === "[object Array]";
|
|
118
111
|
};
|
|
119
|
-
function
|
|
112
|
+
function _t(t, e) {
|
|
120
113
|
for (var i = 0; i < t.length; i++)
|
|
121
114
|
if (t[i] === e)
|
|
122
115
|
return i;
|
|
123
116
|
return -1;
|
|
124
117
|
}
|
|
125
|
-
var
|
|
118
|
+
var Zt = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
|
|
126
119
|
function x(t) {
|
|
127
120
|
return window["webkit" + t] || window["moz" + t] || window["ms" + t];
|
|
128
121
|
}
|
|
129
122
|
var R = 0;
|
|
130
|
-
function
|
|
131
|
-
var e =
|
|
123
|
+
function Vt(t) {
|
|
124
|
+
var e = +/* @__PURE__ */ new Date(), i = Math.max(0, 16 - (e - R));
|
|
132
125
|
return R = e + i, window.setTimeout(t, i);
|
|
133
126
|
}
|
|
134
|
-
var We = window.requestAnimationFrame || x("RequestAnimationFrame") ||
|
|
127
|
+
var We = window.requestAnimationFrame || x("RequestAnimationFrame") || Vt, zi = window.cancelAnimationFrame || x("CancelAnimationFrame") || x("CancelRequestAnimationFrame") || function(t) {
|
|
135
128
|
window.clearTimeout(t);
|
|
136
129
|
};
|
|
137
|
-
function
|
|
138
|
-
if (i && We ===
|
|
130
|
+
function J(t, e, i) {
|
|
131
|
+
if (i && We === Vt)
|
|
139
132
|
t.call(e);
|
|
140
133
|
else
|
|
141
134
|
return We.call(window, v(t, e));
|
|
142
135
|
}
|
|
143
|
-
function
|
|
144
|
-
t &&
|
|
136
|
+
function nt(t) {
|
|
137
|
+
t && zi.call(window, t);
|
|
145
138
|
}
|
|
146
|
-
var
|
|
139
|
+
var no = {
|
|
147
140
|
__proto__: null,
|
|
148
141
|
extend: m,
|
|
149
142
|
create: w,
|
|
@@ -154,56 +147,56 @@ var re = {}, Hs = {
|
|
|
154
147
|
stamp: g,
|
|
155
148
|
throttle: I,
|
|
156
149
|
wrapNum: H,
|
|
157
|
-
falseFn:
|
|
158
|
-
formatNum:
|
|
159
|
-
trim:
|
|
160
|
-
splitWords:
|
|
150
|
+
falseFn: S,
|
|
151
|
+
formatNum: K,
|
|
152
|
+
trim: at,
|
|
153
|
+
splitWords: G,
|
|
161
154
|
setOptions: z,
|
|
162
|
-
getParamString:
|
|
163
|
-
template:
|
|
164
|
-
isArray:
|
|
165
|
-
indexOf:
|
|
166
|
-
emptyImageUrl:
|
|
155
|
+
getParamString: it,
|
|
156
|
+
template: ue,
|
|
157
|
+
isArray: tt,
|
|
158
|
+
indexOf: _t,
|
|
159
|
+
emptyImageUrl: Zt,
|
|
167
160
|
requestFn: We,
|
|
168
|
-
cancelFn:
|
|
169
|
-
requestAnimFrame:
|
|
170
|
-
cancelAnimFrame:
|
|
161
|
+
cancelFn: zi,
|
|
162
|
+
requestAnimFrame: J,
|
|
163
|
+
cancelAnimFrame: nt
|
|
171
164
|
};
|
|
172
|
-
function
|
|
165
|
+
function mt() {
|
|
173
166
|
}
|
|
174
|
-
|
|
167
|
+
mt.extend = function(t) {
|
|
175
168
|
var e = function() {
|
|
176
169
|
z(this), this.initialize && this.initialize.apply(this, arguments), this.callInitHooks();
|
|
177
170
|
}, i = e.__super__ = this.prototype, n = w(i);
|
|
178
171
|
n.constructor = e, e.prototype = n;
|
|
179
172
|
for (var o in this)
|
|
180
173
|
Object.prototype.hasOwnProperty.call(this, o) && o !== "prototype" && o !== "__super__" && (e[o] = this[o]);
|
|
181
|
-
return t.statics && m(e, t.statics), t.includes && (
|
|
174
|
+
return t.statics && m(e, t.statics), t.includes && (oo(t.includes), m.apply(null, [n].concat(t.includes))), m(n, t), delete n.statics, delete n.includes, n.options && (n.options = i.options ? w(i.options) : {}, m(n.options, t.options)), n._initHooks = [], n.callInitHooks = function() {
|
|
182
175
|
if (!this._initHooksCalled) {
|
|
183
176
|
i.callInitHooks && i.callInitHooks.call(this), this._initHooksCalled = !0;
|
|
184
177
|
for (var s = 0, r = n._initHooks.length; s < r; s++)
|
|
185
178
|
n._initHooks[s].call(this);
|
|
186
179
|
}
|
|
187
180
|
}, e;
|
|
188
|
-
},
|
|
181
|
+
}, mt.include = function(t) {
|
|
189
182
|
var e = this.prototype.options;
|
|
190
183
|
return m(this.prototype, t), t.options && (this.prototype.options = e, this.mergeOptions(t.options)), this;
|
|
191
|
-
},
|
|
184
|
+
}, mt.mergeOptions = function(t) {
|
|
192
185
|
return m(this.prototype.options, t), this;
|
|
193
|
-
},
|
|
186
|
+
}, mt.addInitHook = function(t) {
|
|
194
187
|
var e = Array.prototype.slice.call(arguments, 1), i = typeof t == "function" ? t : function() {
|
|
195
188
|
this[t].apply(this, e);
|
|
196
189
|
};
|
|
197
190
|
return this.prototype._initHooks = this.prototype._initHooks || [], this.prototype._initHooks.push(i), this;
|
|
198
191
|
};
|
|
199
|
-
function
|
|
192
|
+
function oo(t) {
|
|
200
193
|
if (!(typeof L > "u" || !L || !L.Mixin)) {
|
|
201
|
-
t =
|
|
194
|
+
t = tt(t) ? t : [t];
|
|
202
195
|
for (var e = 0; e < t.length; e++)
|
|
203
196
|
t[e] === L.Mixin.Events && console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.", new Error().stack);
|
|
204
197
|
}
|
|
205
198
|
}
|
|
206
|
-
var
|
|
199
|
+
var et = {
|
|
207
200
|
/* @method on(type: String, fn: Function, context?: Object): this
|
|
208
201
|
* Adds a listener function (`fn`) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. `'click dblclick'`).
|
|
209
202
|
*
|
|
@@ -216,7 +209,7 @@ var re = {}, Hs = {
|
|
|
216
209
|
for (var n in t)
|
|
217
210
|
this._on(n, t[n], e);
|
|
218
211
|
else {
|
|
219
|
-
t =
|
|
212
|
+
t = G(t);
|
|
220
213
|
for (var o = 0, s = t.length; o < s; o++)
|
|
221
214
|
this._on(t[o], e, i);
|
|
222
215
|
}
|
|
@@ -240,7 +233,7 @@ var re = {}, Hs = {
|
|
|
240
233
|
for (var n in t)
|
|
241
234
|
this._off(n, t[n], e);
|
|
242
235
|
else {
|
|
243
|
-
t =
|
|
236
|
+
t = G(t);
|
|
244
237
|
for (var o = arguments.length === 1, s = 0, r = t.length; s < r; s++)
|
|
245
238
|
o ? this._off(t[s]) : this._off(t[s], e, i);
|
|
246
239
|
}
|
|
@@ -264,7 +257,7 @@ var re = {}, Hs = {
|
|
|
264
257
|
if (arguments.length === 1) {
|
|
265
258
|
if (this._firingCount)
|
|
266
259
|
for (o = 0, s = n.length; o < s; o++)
|
|
267
|
-
n[o].fn =
|
|
260
|
+
n[o].fn = S;
|
|
268
261
|
delete this._events[t];
|
|
269
262
|
return;
|
|
270
263
|
}
|
|
@@ -275,7 +268,7 @@ var re = {}, Hs = {
|
|
|
275
268
|
var r = this._listens(t, e, i);
|
|
276
269
|
if (r !== !1) {
|
|
277
270
|
var h = n[r];
|
|
278
|
-
this._firingCount && (h.fn =
|
|
271
|
+
this._firingCount && (h.fn = S, this._events[t] = n = n.slice()), n.splice(r, 1);
|
|
279
272
|
}
|
|
280
273
|
}
|
|
281
274
|
},
|
|
@@ -342,7 +335,7 @@ var re = {}, Hs = {
|
|
|
342
335
|
for (var n in t)
|
|
343
336
|
this._on(n, t[n], e, !0);
|
|
344
337
|
else {
|
|
345
|
-
t =
|
|
338
|
+
t = G(t);
|
|
346
339
|
for (var o = 0, s = t.length; o < s; o++)
|
|
347
340
|
this._on(t[o], e, i, !0);
|
|
348
341
|
}
|
|
@@ -366,12 +359,12 @@ var re = {}, Hs = {
|
|
|
366
359
|
}, t), !0);
|
|
367
360
|
}
|
|
368
361
|
};
|
|
369
|
-
|
|
370
|
-
var
|
|
362
|
+
et.addEventListener = et.on, et.removeEventListener = et.clearAllEventListeners = et.off, et.addOneTimeEventListener = et.once, et.fireEvent = et.fire, et.hasEventListeners = et.listens;
|
|
363
|
+
var qt = mt.extend(et);
|
|
371
364
|
function b(t, e, i) {
|
|
372
365
|
this.x = i ? Math.round(t) : t, this.y = i ? Math.round(e) : e;
|
|
373
366
|
}
|
|
374
|
-
var
|
|
367
|
+
var Oi = Math.trunc || function(t) {
|
|
375
368
|
return t > 0 ? Math.floor(t) : Math.ceil(t);
|
|
376
369
|
};
|
|
377
370
|
b.prototype = {
|
|
@@ -456,7 +449,7 @@ var re = {}, Hs = {
|
|
|
456
449
|
return this.clone()._trunc();
|
|
457
450
|
},
|
|
458
451
|
_trunc: function() {
|
|
459
|
-
return this.x =
|
|
452
|
+
return this.x = Oi(this.x), this.y = Oi(this.y), this;
|
|
460
453
|
},
|
|
461
454
|
// @method distanceTo(otherPoint: Point): Number
|
|
462
455
|
// Returns the cartesian distance between the current and the given points.
|
|
@@ -478,11 +471,11 @@ var re = {}, Hs = {
|
|
|
478
471
|
// @method toString(): String
|
|
479
472
|
// Returns a string representation of the point for debugging purposes.
|
|
480
473
|
toString: function() {
|
|
481
|
-
return "Point(" +
|
|
474
|
+
return "Point(" + K(this.x) + ", " + K(this.y) + ")";
|
|
482
475
|
}
|
|
483
476
|
};
|
|
484
477
|
function P(t, e, i) {
|
|
485
|
-
return t instanceof b ? t :
|
|
478
|
+
return t instanceof b ? t : tt(t) ? new b(t[0], t[1]) : t == null ? t : typeof t == "object" && "x" in t && "y" in t ? new b(t.x, t.y) : new b(t, e, i);
|
|
486
479
|
}
|
|
487
480
|
function N(t, e) {
|
|
488
481
|
if (t)
|
|
@@ -501,7 +494,7 @@ var re = {}, Hs = {
|
|
|
501
494
|
return this;
|
|
502
495
|
if (t instanceof b || typeof t[0] == "number" || "x" in t)
|
|
503
496
|
e = i = P(t);
|
|
504
|
-
else if (t =
|
|
497
|
+
else if (t = X(t), e = t.min, i = t.max, !e || !i)
|
|
505
498
|
return this;
|
|
506
499
|
return !this.min && !this.max ? (this.min = e.clone(), this.max = i.clone()) : (this.min.x = Math.min(e.x, this.min.x), this.max.x = Math.max(i.x, this.max.x), this.min.y = Math.min(e.y, this.min.y), this.max.y = Math.max(i.y, this.max.y)), this;
|
|
507
500
|
},
|
|
@@ -546,13 +539,13 @@ var re = {}, Hs = {
|
|
|
546
539
|
// Returns `true` if the rectangle contains the given point.
|
|
547
540
|
contains: function(t) {
|
|
548
541
|
var e, i;
|
|
549
|
-
return typeof t[0] == "number" || t instanceof b ? t = P(t) : t =
|
|
542
|
+
return typeof t[0] == "number" || t instanceof b ? t = P(t) : t = X(t), t instanceof N ? (e = t.min, i = t.max) : e = i = t, e.x >= this.min.x && i.x <= this.max.x && e.y >= this.min.y && i.y <= this.max.y;
|
|
550
543
|
},
|
|
551
544
|
// @method intersects(otherBounds: Bounds): Boolean
|
|
552
545
|
// Returns `true` if the rectangle intersects the given bounds. Two bounds
|
|
553
546
|
// intersect if they have at least one point in common.
|
|
554
547
|
intersects: function(t) {
|
|
555
|
-
t =
|
|
548
|
+
t = X(t);
|
|
556
549
|
var e = this.min, i = this.max, n = t.min, o = t.max, s = o.x >= e.x && n.x <= i.x, r = o.y >= e.y && n.y <= i.y;
|
|
557
550
|
return s && r;
|
|
558
551
|
},
|
|
@@ -560,7 +553,7 @@ var re = {}, Hs = {
|
|
|
560
553
|
// Returns `true` if the rectangle overlaps the given bounds. Two bounds
|
|
561
554
|
// overlap if their intersection is an area.
|
|
562
555
|
overlaps: function(t) {
|
|
563
|
-
t =
|
|
556
|
+
t = X(t);
|
|
564
557
|
var e = this.min, i = this.max, n = t.min, o = t.max, s = o.x > e.x && n.x < i.x, r = o.y > e.y && n.y < i.y;
|
|
565
558
|
return s && r;
|
|
566
559
|
},
|
|
@@ -575,7 +568,7 @@ var re = {}, Hs = {
|
|
|
575
568
|
// Negative values will retract the bounds.
|
|
576
569
|
pad: function(t) {
|
|
577
570
|
var e = this.min, i = this.max, n = Math.abs(e.x - i.x) * t, o = Math.abs(e.y - i.y) * t;
|
|
578
|
-
return
|
|
571
|
+
return X(
|
|
579
572
|
P(e.x - n, e.y - o),
|
|
580
573
|
P(i.x + n, i.y + o)
|
|
581
574
|
);
|
|
@@ -583,18 +576,18 @@ var re = {}, Hs = {
|
|
|
583
576
|
// @method equals(otherBounds: Bounds): Boolean
|
|
584
577
|
// Returns `true` if the rectangle is equivalent to the given bounds.
|
|
585
578
|
equals: function(t) {
|
|
586
|
-
return t ? (t =
|
|
579
|
+
return t ? (t = X(t), this.min.equals(t.getTopLeft()) && this.max.equals(t.getBottomRight())) : !1;
|
|
587
580
|
}
|
|
588
581
|
};
|
|
589
|
-
function
|
|
582
|
+
function X(t, e) {
|
|
590
583
|
return !t || t instanceof N ? t : new N(t, e);
|
|
591
584
|
}
|
|
592
|
-
function
|
|
585
|
+
function $(t, e) {
|
|
593
586
|
if (t)
|
|
594
587
|
for (var i = e ? [t, e] : t, n = 0, o = i.length; n < o; n++)
|
|
595
588
|
this.extend(i[n]);
|
|
596
589
|
}
|
|
597
|
-
|
|
590
|
+
$.prototype = {
|
|
598
591
|
// @method extend(latlng: LatLng): this
|
|
599
592
|
// Extend the bounds to contain the given point
|
|
600
593
|
// @alternative
|
|
@@ -602,14 +595,14 @@ var re = {}, Hs = {
|
|
|
602
595
|
// Extend the bounds to contain the given bounds
|
|
603
596
|
extend: function(t) {
|
|
604
597
|
var e = this._southWest, i = this._northEast, n, o;
|
|
605
|
-
if (t instanceof
|
|
598
|
+
if (t instanceof Z)
|
|
606
599
|
n = t, o = t;
|
|
607
|
-
else if (t instanceof
|
|
600
|
+
else if (t instanceof $) {
|
|
608
601
|
if (n = t._southWest, o = t._northEast, !n || !o)
|
|
609
602
|
return this;
|
|
610
603
|
} else
|
|
611
|
-
return t ? this.extend(
|
|
612
|
-
return !e && !i ? (this._southWest = new
|
|
604
|
+
return t ? this.extend(O(t) || W(t)) : this;
|
|
605
|
+
return !e && !i ? (this._southWest = new Z(n.lat, n.lng), this._northEast = new Z(o.lat, o.lng)) : (e.lat = Math.min(n.lat, e.lat), e.lng = Math.min(n.lng, e.lng), i.lat = Math.max(o.lat, i.lat), i.lng = Math.max(o.lng, i.lng)), this;
|
|
613
606
|
},
|
|
614
607
|
// @method pad(bufferRatio: Number): LatLngBounds
|
|
615
608
|
// Returns bounds created by extending or retracting the current bounds by a given ratio in each direction.
|
|
@@ -617,15 +610,15 @@ var re = {}, Hs = {
|
|
|
617
610
|
// Negative values will retract the bounds.
|
|
618
611
|
pad: function(t) {
|
|
619
612
|
var e = this._southWest, i = this._northEast, n = Math.abs(e.lat - i.lat) * t, o = Math.abs(e.lng - i.lng) * t;
|
|
620
|
-
return new
|
|
621
|
-
new
|
|
622
|
-
new
|
|
613
|
+
return new $(
|
|
614
|
+
new Z(e.lat - n, e.lng - o),
|
|
615
|
+
new Z(i.lat + n, i.lng + o)
|
|
623
616
|
);
|
|
624
617
|
},
|
|
625
618
|
// @method getCenter(): LatLng
|
|
626
619
|
// Returns the center point of the bounds.
|
|
627
620
|
getCenter: function() {
|
|
628
|
-
return new
|
|
621
|
+
return new Z(
|
|
629
622
|
(this._southWest.lat + this._northEast.lat) / 2,
|
|
630
623
|
(this._southWest.lng + this._northEast.lng) / 2
|
|
631
624
|
);
|
|
@@ -643,12 +636,12 @@ var re = {}, Hs = {
|
|
|
643
636
|
// @method getNorthWest(): LatLng
|
|
644
637
|
// Returns the north-west point of the bounds.
|
|
645
638
|
getNorthWest: function() {
|
|
646
|
-
return new
|
|
639
|
+
return new Z(this.getNorth(), this.getWest());
|
|
647
640
|
},
|
|
648
641
|
// @method getSouthEast(): LatLng
|
|
649
642
|
// Returns the south-east point of the bounds.
|
|
650
643
|
getSouthEast: function() {
|
|
651
|
-
return new
|
|
644
|
+
return new Z(this.getSouth(), this.getEast());
|
|
652
645
|
},
|
|
653
646
|
// @method getWest(): Number
|
|
654
647
|
// Returns the west longitude of the bounds
|
|
@@ -676,21 +669,21 @@ var re = {}, Hs = {
|
|
|
676
669
|
// @method contains (latlng: LatLng): Boolean
|
|
677
670
|
// Returns `true` if the rectangle contains the given point.
|
|
678
671
|
contains: function(t) {
|
|
679
|
-
typeof t[0] == "number" || t instanceof
|
|
672
|
+
typeof t[0] == "number" || t instanceof Z || "lat" in t ? t = O(t) : t = W(t);
|
|
680
673
|
var e = this._southWest, i = this._northEast, n, o;
|
|
681
|
-
return t instanceof
|
|
674
|
+
return t instanceof $ ? (n = t.getSouthWest(), o = t.getNorthEast()) : n = o = t, n.lat >= e.lat && o.lat <= i.lat && n.lng >= e.lng && o.lng <= i.lng;
|
|
682
675
|
},
|
|
683
676
|
// @method intersects(otherBounds: LatLngBounds): Boolean
|
|
684
677
|
// Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
|
|
685
678
|
intersects: function(t) {
|
|
686
|
-
t =
|
|
679
|
+
t = W(t);
|
|
687
680
|
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), o = t.getNorthEast(), s = o.lat >= e.lat && n.lat <= i.lat, r = o.lng >= e.lng && n.lng <= i.lng;
|
|
688
681
|
return s && r;
|
|
689
682
|
},
|
|
690
683
|
// @method overlaps(otherBounds: LatLngBounds): Boolean
|
|
691
684
|
// Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.
|
|
692
685
|
overlaps: function(t) {
|
|
693
|
-
t =
|
|
686
|
+
t = W(t);
|
|
694
687
|
var e = this._southWest, i = this._northEast, n = t.getSouthWest(), o = t.getNorthEast(), s = o.lat > e.lat && n.lat < i.lat, r = o.lng > e.lng && n.lng < i.lng;
|
|
695
688
|
return s && r;
|
|
696
689
|
},
|
|
@@ -702,7 +695,7 @@ var re = {}, Hs = {
|
|
|
702
695
|
// @method equals(otherBounds: LatLngBounds, maxMargin?: Number): Boolean
|
|
703
696
|
// Returns `true` if the rectangle is equivalent (within a small margin of error) to the given bounds. The margin of error can be overridden by setting `maxMargin` to a small number.
|
|
704
697
|
equals: function(t, e) {
|
|
705
|
-
return t ? (t =
|
|
698
|
+
return t ? (t = W(t), this._southWest.equals(t.getSouthWest(), e) && this._northEast.equals(t.getNorthEast(), e)) : !1;
|
|
706
699
|
},
|
|
707
700
|
// @method isValid(): Boolean
|
|
708
701
|
// Returns `true` if the bounds are properly initialized.
|
|
@@ -710,21 +703,21 @@ var re = {}, Hs = {
|
|
|
710
703
|
return !!(this._southWest && this._northEast);
|
|
711
704
|
}
|
|
712
705
|
};
|
|
713
|
-
function
|
|
714
|
-
return t instanceof
|
|
706
|
+
function W(t, e) {
|
|
707
|
+
return t instanceof $ ? t : new $(t, e);
|
|
715
708
|
}
|
|
716
|
-
function
|
|
709
|
+
function Z(t, e, i) {
|
|
717
710
|
if (isNaN(t) || isNaN(e))
|
|
718
711
|
throw new Error("Invalid LatLng object: (" + t + ", " + e + ")");
|
|
719
712
|
this.lat = +t, this.lng = +e, i !== void 0 && (this.alt = +i);
|
|
720
713
|
}
|
|
721
|
-
|
|
714
|
+
Z.prototype = {
|
|
722
715
|
// @method equals(otherLatLng: LatLng, maxMargin?: Number): Boolean
|
|
723
716
|
// Returns `true` if the given `LatLng` point is at the same position (within a small margin of error). The margin of error can be overridden by setting `maxMargin` to a small number.
|
|
724
717
|
equals: function(t, e) {
|
|
725
718
|
if (!t)
|
|
726
719
|
return !1;
|
|
727
|
-
t =
|
|
720
|
+
t = O(t);
|
|
728
721
|
var i = Math.max(
|
|
729
722
|
Math.abs(this.lat - t.lat),
|
|
730
723
|
Math.abs(this.lng - t.lng)
|
|
@@ -734,35 +727,35 @@ var re = {}, Hs = {
|
|
|
734
727
|
// @method toString(): String
|
|
735
728
|
// Returns a string representation of the point (for debugging purposes).
|
|
736
729
|
toString: function(t) {
|
|
737
|
-
return "LatLng(" +
|
|
730
|
+
return "LatLng(" + K(this.lat, t) + ", " + K(this.lng, t) + ")";
|
|
738
731
|
},
|
|
739
732
|
// @method distanceTo(otherLatLng: LatLng): Number
|
|
740
733
|
// 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).
|
|
741
734
|
distanceTo: function(t) {
|
|
742
|
-
return
|
|
735
|
+
return xt.distance(this, O(t));
|
|
743
736
|
},
|
|
744
737
|
// @method wrap(): LatLng
|
|
745
738
|
// Returns a new `LatLng` object with the longitude wrapped so it's always between -180 and +180 degrees.
|
|
746
739
|
wrap: function() {
|
|
747
|
-
return
|
|
740
|
+
return xt.wrapLatLng(this);
|
|
748
741
|
},
|
|
749
742
|
// @method toBounds(sizeInMeters: Number): LatLngBounds
|
|
750
743
|
// Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`.
|
|
751
744
|
toBounds: function(t) {
|
|
752
745
|
var e = 180 * t / 40075017, i = e / Math.cos(Math.PI / 180 * this.lat);
|
|
753
|
-
return
|
|
746
|
+
return W(
|
|
754
747
|
[this.lat - e, this.lng - i],
|
|
755
748
|
[this.lat + e, this.lng + i]
|
|
756
749
|
);
|
|
757
750
|
},
|
|
758
751
|
clone: function() {
|
|
759
|
-
return new
|
|
752
|
+
return new Z(this.lat, this.lng, this.alt);
|
|
760
753
|
}
|
|
761
754
|
};
|
|
762
|
-
function
|
|
763
|
-
return t instanceof
|
|
755
|
+
function O(t, e, i) {
|
|
756
|
+
return t instanceof Z ? t : tt(t) && typeof t[0] != "object" ? t.length === 3 ? new Z(t[0], t[1], t[2]) : t.length === 2 ? new Z(t[0], t[1]) : null : t == null ? t : typeof t == "object" && "lat" in t ? new Z(t.lat, "lng" in t ? t.lng : t.lon, t.alt) : e === void 0 ? null : new Z(t, e, i);
|
|
764
757
|
}
|
|
765
|
-
var
|
|
758
|
+
var pt = {
|
|
766
759
|
// @method latLngToPoint(latlng: LatLng, zoom: Number): Point
|
|
767
760
|
// Projects geographical coordinates into pixel coordinates for a given zoom.
|
|
768
761
|
latLngToPoint: function(t, e) {
|
|
@@ -831,7 +824,7 @@ var re = {}, Hs = {
|
|
|
831
824
|
// CRS's `wrapLat` and `wrapLng` properties, if they are outside the CRS's bounds.
|
|
832
825
|
wrapLatLng: function(t) {
|
|
833
826
|
var e = this.wrapLng ? H(t.lng, this.wrapLng, !0) : t.lng, i = this.wrapLat ? H(t.lat, this.wrapLat, !0) : t.lat, n = t.alt;
|
|
834
|
-
return new
|
|
827
|
+
return new Z(i, e, n);
|
|
835
828
|
},
|
|
836
829
|
// @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds
|
|
837
830
|
// Returns a `LatLngBounds` with the same size as the given one, ensuring
|
|
@@ -841,10 +834,10 @@ var re = {}, Hs = {
|
|
|
841
834
|
var e = t.getCenter(), i = this.wrapLatLng(e), n = e.lat - i.lat, o = e.lng - i.lng;
|
|
842
835
|
if (n === 0 && o === 0)
|
|
843
836
|
return t;
|
|
844
|
-
var s = t.getSouthWest(), r = t.getNorthEast(), h = new
|
|
845
|
-
return new
|
|
837
|
+
var s = t.getSouthWest(), r = t.getNorthEast(), h = new Z(s.lat - n, s.lng - o), u = new Z(r.lat - n, r.lng - o);
|
|
838
|
+
return new $(h, u);
|
|
846
839
|
}
|
|
847
|
-
},
|
|
840
|
+
}, xt = m({}, pt, {
|
|
848
841
|
wrapLng: [-180, 180],
|
|
849
842
|
// Mean Earth Radius, as recommended for use by
|
|
850
843
|
// the International Union of Geodesy and Geophysics,
|
|
@@ -855,8 +848,8 @@ var re = {}, Hs = {
|
|
|
855
848
|
var i = Math.PI / 180, n = t.lat * i, o = e.lat * i, s = Math.sin((e.lat - t.lat) * i / 2), r = Math.sin((e.lng - t.lng) * i / 2), h = s * s + Math.cos(n) * Math.cos(o) * r * r, u = 2 * Math.atan2(Math.sqrt(h), Math.sqrt(1 - h));
|
|
856
849
|
return this.R * u;
|
|
857
850
|
}
|
|
858
|
-
}),
|
|
859
|
-
R:
|
|
851
|
+
}), ki = 6378137, Ue = {
|
|
852
|
+
R: ki,
|
|
860
853
|
MAX_LATITUDE: 85.0511287798,
|
|
861
854
|
project: function(t) {
|
|
862
855
|
var e = Math.PI / 180, i = this.MAX_LATITUDE, n = Math.max(Math.min(i, t.lat), -i), o = Math.sin(n * e);
|
|
@@ -867,18 +860,18 @@ var re = {}, Hs = {
|
|
|
867
860
|
},
|
|
868
861
|
unproject: function(t) {
|
|
869
862
|
var e = 180 / Math.PI;
|
|
870
|
-
return new
|
|
863
|
+
return new Z(
|
|
871
864
|
(2 * Math.atan(Math.exp(t.y / this.R)) - Math.PI / 2) * e,
|
|
872
865
|
t.x * e / this.R
|
|
873
866
|
);
|
|
874
867
|
},
|
|
875
868
|
bounds: function() {
|
|
876
|
-
var t =
|
|
869
|
+
var t = ki * Math.PI;
|
|
877
870
|
return new N([-t, -t], [t, t]);
|
|
878
871
|
}()
|
|
879
872
|
};
|
|
880
873
|
function je(t, e, i, n) {
|
|
881
|
-
if (
|
|
874
|
+
if (tt(t)) {
|
|
882
875
|
this._a = t[0], this._b = t[1], this._c = t[2], this._d = t[3];
|
|
883
876
|
return;
|
|
884
877
|
}
|
|
@@ -905,23 +898,23 @@ var re = {}, Hs = {
|
|
|
905
898
|
);
|
|
906
899
|
}
|
|
907
900
|
};
|
|
908
|
-
function
|
|
901
|
+
function Kt(t, e, i, n) {
|
|
909
902
|
return new je(t, e, i, n);
|
|
910
903
|
}
|
|
911
|
-
var Ge = m({},
|
|
904
|
+
var Ge = m({}, xt, {
|
|
912
905
|
code: "EPSG:3857",
|
|
913
906
|
projection: Ue,
|
|
914
907
|
transformation: function() {
|
|
915
908
|
var t = 0.5 / (Math.PI * Ue.R);
|
|
916
|
-
return
|
|
909
|
+
return Kt(t, 0.5, -t, 0.5);
|
|
917
910
|
}()
|
|
918
|
-
}),
|
|
911
|
+
}), so = m({}, Ge, {
|
|
919
912
|
code: "EPSG:900913"
|
|
920
913
|
});
|
|
921
|
-
function
|
|
914
|
+
function Ei(t) {
|
|
922
915
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
923
916
|
}
|
|
924
|
-
function
|
|
917
|
+
function Zi(t, e) {
|
|
925
918
|
var i = "", n, o, s, r, h, u;
|
|
926
919
|
for (n = 0, s = t.length; n < s; n++) {
|
|
927
920
|
for (h = t[n], o = 0, r = h.length; o < r; o++)
|
|
@@ -930,7 +923,7 @@ var re = {}, Hs = {
|
|
|
930
923
|
}
|
|
931
924
|
return i || "M0 0";
|
|
932
925
|
}
|
|
933
|
-
var Ve = document.documentElement.style,
|
|
926
|
+
var Ve = document.documentElement.style, le = "ActiveXObject" in window, ro = le && !document.addEventListener, Bi = "msLaunchUri" in navigator && !("documentMode" in document), qe = lt("webkit"), Ai = lt("android"), Ii = lt("android 2") || lt("android 3"), ao = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), ho = Ai && lt("Google") && ao < 537 && !("AudioNode" in window), Ke = !!window.opera, Ri = !Bi && lt("chrome"), Ni = lt("gecko") && !qe && !Ke && !le, uo = !Ri && lt("safari"), Di = lt("phantom"), Hi = "OTransition" in Ve, lo = navigator.platform.indexOf("Win") === 0, Fi = le && "transition" in Ve, Ye = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Ii, Wi = "MozPerspective" in Ve, co = !window.L_DISABLE_3D && (Fi || Ye || Wi) && !Hi && !Di, Yt = typeof orientation < "u" || lt("mobile"), fo = Yt && qe, _o = Yt && Ye, Ui = !window.PointerEvent && window.MSPointerEvent, ji = !!(window.PointerEvent || Ui), Gi = "ontouchstart" in window || !!window.TouchEvent, mo = !window.L_NO_TOUCH && (Gi || ji), po = Yt && Ke, vo = Yt && Ni, go = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, yo = function() {
|
|
934
927
|
var t = !1;
|
|
935
928
|
try {
|
|
936
929
|
var e = Object.defineProperty({}, "passive", {
|
|
@@ -938,16 +931,16 @@ var re = {}, Hs = {
|
|
|
938
931
|
t = !0;
|
|
939
932
|
}
|
|
940
933
|
});
|
|
941
|
-
window.addEventListener("testPassiveEventSupport",
|
|
934
|
+
window.addEventListener("testPassiveEventSupport", S, e), window.removeEventListener("testPassiveEventSupport", S, e);
|
|
942
935
|
} catch {
|
|
943
936
|
}
|
|
944
937
|
return t;
|
|
945
|
-
}(),
|
|
938
|
+
}(), wo = function() {
|
|
946
939
|
return !!document.createElement("canvas").getContext;
|
|
947
|
-
}(), Je = !!(document.createElementNS &&
|
|
940
|
+
}(), Je = !!(document.createElementNS && Ei("svg").createSVGRect), Lo = !!Je && function() {
|
|
948
941
|
var t = document.createElement("div");
|
|
949
942
|
return t.innerHTML = "<svg/>", (t.firstChild && t.firstChild.namespaceURI) === "http://www.w3.org/2000/svg";
|
|
950
|
-
}(),
|
|
943
|
+
}(), Po = !Je && function() {
|
|
951
944
|
try {
|
|
952
945
|
var t = document.createElement("div");
|
|
953
946
|
t.innerHTML = '<v:shape adj="1"/>';
|
|
@@ -956,98 +949,98 @@ var re = {}, Hs = {
|
|
|
956
949
|
} catch {
|
|
957
950
|
return !1;
|
|
958
951
|
}
|
|
959
|
-
}(),
|
|
960
|
-
function
|
|
952
|
+
}(), xo = navigator.platform.indexOf("Mac") === 0, bo = navigator.platform.indexOf("Linux") === 0;
|
|
953
|
+
function lt(t) {
|
|
961
954
|
return navigator.userAgent.toLowerCase().indexOf(t) >= 0;
|
|
962
955
|
}
|
|
963
956
|
var p = {
|
|
964
|
-
ie:
|
|
965
|
-
ielt9:
|
|
966
|
-
edge:
|
|
957
|
+
ie: le,
|
|
958
|
+
ielt9: ro,
|
|
959
|
+
edge: Bi,
|
|
967
960
|
webkit: qe,
|
|
968
|
-
android:
|
|
969
|
-
android23:
|
|
970
|
-
androidStock:
|
|
961
|
+
android: Ai,
|
|
962
|
+
android23: Ii,
|
|
963
|
+
androidStock: ho,
|
|
971
964
|
opera: Ke,
|
|
972
|
-
chrome:
|
|
973
|
-
gecko:
|
|
974
|
-
safari:
|
|
975
|
-
phantom:
|
|
976
|
-
opera12:
|
|
977
|
-
win:
|
|
978
|
-
ie3d:
|
|
965
|
+
chrome: Ri,
|
|
966
|
+
gecko: Ni,
|
|
967
|
+
safari: uo,
|
|
968
|
+
phantom: Di,
|
|
969
|
+
opera12: Hi,
|
|
970
|
+
win: lo,
|
|
971
|
+
ie3d: Fi,
|
|
979
972
|
webkit3d: Ye,
|
|
980
|
-
gecko3d:
|
|
981
|
-
any3d:
|
|
982
|
-
mobile:
|
|
983
|
-
mobileWebkit:
|
|
984
|
-
mobileWebkit3d:
|
|
985
|
-
msPointer:
|
|
986
|
-
pointer:
|
|
987
|
-
touch:
|
|
988
|
-
touchNative:
|
|
989
|
-
mobileOpera:
|
|
990
|
-
mobileGecko:
|
|
991
|
-
retina:
|
|
992
|
-
passiveEvents:
|
|
993
|
-
canvas:
|
|
973
|
+
gecko3d: Wi,
|
|
974
|
+
any3d: co,
|
|
975
|
+
mobile: Yt,
|
|
976
|
+
mobileWebkit: fo,
|
|
977
|
+
mobileWebkit3d: _o,
|
|
978
|
+
msPointer: Ui,
|
|
979
|
+
pointer: ji,
|
|
980
|
+
touch: mo,
|
|
981
|
+
touchNative: Gi,
|
|
982
|
+
mobileOpera: po,
|
|
983
|
+
mobileGecko: vo,
|
|
984
|
+
retina: go,
|
|
985
|
+
passiveEvents: yo,
|
|
986
|
+
canvas: wo,
|
|
994
987
|
svg: Je,
|
|
995
|
-
vml:
|
|
996
|
-
inlineSvg:
|
|
997
|
-
mac:
|
|
998
|
-
linux:
|
|
999
|
-
},
|
|
1000
|
-
touchstart:
|
|
1001
|
-
touchmove:
|
|
1002
|
-
touchend:
|
|
1003
|
-
touchcancel:
|
|
1004
|
-
},
|
|
1005
|
-
touchstart:
|
|
1006
|
-
touchmove:
|
|
1007
|
-
touchend:
|
|
1008
|
-
touchcancel:
|
|
1009
|
-
},
|
|
1010
|
-
function
|
|
1011
|
-
return e === "touchstart" &&
|
|
1012
|
-
}
|
|
1013
|
-
function
|
|
988
|
+
vml: Po,
|
|
989
|
+
inlineSvg: Lo,
|
|
990
|
+
mac: xo,
|
|
991
|
+
linux: bo
|
|
992
|
+
}, Vi = p.msPointer ? "MSPointerDown" : "pointerdown", qi = p.msPointer ? "MSPointerMove" : "pointermove", Ki = p.msPointer ? "MSPointerUp" : "pointerup", Yi = p.msPointer ? "MSPointerCancel" : "pointercancel", Xe = {
|
|
993
|
+
touchstart: Vi,
|
|
994
|
+
touchmove: qi,
|
|
995
|
+
touchend: Ki,
|
|
996
|
+
touchcancel: Yi
|
|
997
|
+
}, Ji = {
|
|
998
|
+
touchstart: Oo,
|
|
999
|
+
touchmove: ce,
|
|
1000
|
+
touchend: ce,
|
|
1001
|
+
touchcancel: ce
|
|
1002
|
+
}, Bt = {}, Xi = !1;
|
|
1003
|
+
function To(t, e, i) {
|
|
1004
|
+
return e === "touchstart" && zo(), Ji[e] ? (i = Ji[e].bind(this, i), t.addEventListener(Xe[e], i, !1), i) : (console.warn("wrong event specified:", e), S);
|
|
1005
|
+
}
|
|
1006
|
+
function Mo(t, e, i) {
|
|
1014
1007
|
if (!Xe[e]) {
|
|
1015
1008
|
console.warn("wrong event specified:", e);
|
|
1016
1009
|
return;
|
|
1017
1010
|
}
|
|
1018
1011
|
t.removeEventListener(Xe[e], i, !1);
|
|
1019
1012
|
}
|
|
1020
|
-
function
|
|
1021
|
-
|
|
1013
|
+
function Co(t) {
|
|
1014
|
+
Bt[t.pointerId] = t;
|
|
1022
1015
|
}
|
|
1023
|
-
function
|
|
1024
|
-
|
|
1016
|
+
function So(t) {
|
|
1017
|
+
Bt[t.pointerId] && (Bt[t.pointerId] = t);
|
|
1025
1018
|
}
|
|
1026
|
-
function
|
|
1027
|
-
delete
|
|
1019
|
+
function $i(t) {
|
|
1020
|
+
delete Bt[t.pointerId];
|
|
1028
1021
|
}
|
|
1029
|
-
function
|
|
1030
|
-
|
|
1022
|
+
function zo() {
|
|
1023
|
+
Xi || (document.addEventListener(Vi, Co, !0), document.addEventListener(qi, So, !0), document.addEventListener(Ki, $i, !0), document.addEventListener(Yi, $i, !0), Xi = !0);
|
|
1031
1024
|
}
|
|
1032
|
-
function
|
|
1025
|
+
function ce(t, e) {
|
|
1033
1026
|
if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
|
|
1034
1027
|
e.touches = [];
|
|
1035
|
-
for (var i in
|
|
1036
|
-
e.touches.push(
|
|
1028
|
+
for (var i in Bt)
|
|
1029
|
+
e.touches.push(Bt[i]);
|
|
1037
1030
|
e.changedTouches = [e], t(e);
|
|
1038
1031
|
}
|
|
1039
1032
|
}
|
|
1040
|
-
function
|
|
1041
|
-
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH &&
|
|
1033
|
+
function Oo(t, e) {
|
|
1034
|
+
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && q(e), ce(t, e);
|
|
1042
1035
|
}
|
|
1043
|
-
function
|
|
1036
|
+
function ko(t) {
|
|
1044
1037
|
var e = {}, i, n;
|
|
1045
1038
|
for (n in t)
|
|
1046
1039
|
i = t[n], e[n] = i && i.bind ? i.bind(t) : i;
|
|
1047
1040
|
return t = e, e.type = "dblclick", e.detail = 2, e.isTrusted = !1, e._simulated = !0, e;
|
|
1048
1041
|
}
|
|
1049
|
-
var
|
|
1050
|
-
function
|
|
1042
|
+
var Eo = 200;
|
|
1043
|
+
function Zo(t, e) {
|
|
1051
1044
|
t.addEventListener("dblclick", e);
|
|
1052
1045
|
var i = 0, n;
|
|
1053
1046
|
function o(s) {
|
|
@@ -1056,14 +1049,14 @@ var re = {}, Hs = {
|
|
|
1056
1049
|
return;
|
|
1057
1050
|
}
|
|
1058
1051
|
if (!(s.pointerType === "mouse" || s.sourceCapabilities && !s.sourceCapabilities.firesTouchEvents)) {
|
|
1059
|
-
var r =
|
|
1052
|
+
var r = on(s);
|
|
1060
1053
|
if (!(r.some(function(u) {
|
|
1061
1054
|
return u instanceof HTMLLabelElement && u.attributes.for;
|
|
1062
1055
|
}) && !r.some(function(u) {
|
|
1063
1056
|
return u instanceof HTMLInputElement || u instanceof HTMLSelectElement;
|
|
1064
1057
|
}))) {
|
|
1065
1058
|
var h = Date.now();
|
|
1066
|
-
h - i <=
|
|
1059
|
+
h - i <= Eo ? (n++, n === 2 && e(ko(s))) : n = 1, i = h;
|
|
1067
1060
|
}
|
|
1068
1061
|
}
|
|
1069
1062
|
}
|
|
@@ -1072,18 +1065,18 @@ var re = {}, Hs = {
|
|
|
1072
1065
|
simDblclick: o
|
|
1073
1066
|
};
|
|
1074
1067
|
}
|
|
1075
|
-
function
|
|
1068
|
+
function Bo(t, e) {
|
|
1076
1069
|
t.removeEventListener("dblclick", e.dblclick), t.removeEventListener("click", e.simDblclick);
|
|
1077
1070
|
}
|
|
1078
|
-
var $e =
|
|
1071
|
+
var $e = _e(
|
|
1079
1072
|
["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]
|
|
1080
|
-
),
|
|
1073
|
+
), Jt = _e(
|
|
1081
1074
|
["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]
|
|
1082
|
-
),
|
|
1083
|
-
function
|
|
1075
|
+
), Qi = Jt === "webkitTransition" || Jt === "OTransition" ? Jt + "End" : "transitionend";
|
|
1076
|
+
function tn(t) {
|
|
1084
1077
|
return typeof t == "string" ? document.getElementById(t) : t;
|
|
1085
1078
|
}
|
|
1086
|
-
function
|
|
1079
|
+
function Xt(t, e) {
|
|
1087
1080
|
var i = t.style[e] || t.currentStyle && t.currentStyle[e];
|
|
1088
1081
|
if ((!i || i === "auto") && document.defaultView) {
|
|
1089
1082
|
var n = document.defaultView.getComputedStyle(t, null);
|
|
@@ -1091,7 +1084,7 @@ var re = {}, Hs = {
|
|
|
1091
1084
|
}
|
|
1092
1085
|
return i === "auto" ? null : i;
|
|
1093
1086
|
}
|
|
1094
|
-
function
|
|
1087
|
+
function E(t, e, i) {
|
|
1095
1088
|
var n = document.createElement(t);
|
|
1096
1089
|
return n.className = e || "", i && i.appendChild(n), n;
|
|
1097
1090
|
}
|
|
@@ -1099,46 +1092,46 @@ var re = {}, Hs = {
|
|
|
1099
1092
|
var e = t.parentNode;
|
|
1100
1093
|
e && e.removeChild(t);
|
|
1101
1094
|
}
|
|
1102
|
-
function
|
|
1095
|
+
function de(t) {
|
|
1103
1096
|
for (; t.firstChild; )
|
|
1104
1097
|
t.removeChild(t.firstChild);
|
|
1105
1098
|
}
|
|
1106
|
-
function
|
|
1099
|
+
function At(t) {
|
|
1107
1100
|
var e = t.parentNode;
|
|
1108
1101
|
e && e.lastChild !== t && e.appendChild(t);
|
|
1109
1102
|
}
|
|
1110
|
-
function
|
|
1103
|
+
function It(t) {
|
|
1111
1104
|
var e = t.parentNode;
|
|
1112
1105
|
e && e.firstChild !== t && e.insertBefore(t, e.firstChild);
|
|
1113
1106
|
}
|
|
1114
1107
|
function Qe(t, e) {
|
|
1115
1108
|
if (t.classList !== void 0)
|
|
1116
1109
|
return t.classList.contains(e);
|
|
1117
|
-
var i =
|
|
1110
|
+
var i = fe(t);
|
|
1118
1111
|
return i.length > 0 && new RegExp("(^|\\s)" + e + "(\\s|$)").test(i);
|
|
1119
1112
|
}
|
|
1120
1113
|
function M(t, e) {
|
|
1121
1114
|
if (t.classList !== void 0)
|
|
1122
|
-
for (var i =
|
|
1115
|
+
for (var i = G(e), n = 0, o = i.length; n < o; n++)
|
|
1123
1116
|
t.classList.add(i[n]);
|
|
1124
1117
|
else if (!Qe(t, e)) {
|
|
1125
|
-
var s =
|
|
1118
|
+
var s = fe(t);
|
|
1126
1119
|
ti(t, (s ? s + " " : "") + e);
|
|
1127
1120
|
}
|
|
1128
1121
|
}
|
|
1129
1122
|
function F(t, e) {
|
|
1130
|
-
t.classList !== void 0 ? t.classList.remove(e) : ti(t,
|
|
1123
|
+
t.classList !== void 0 ? t.classList.remove(e) : ti(t, at((" " + fe(t) + " ").replace(" " + e + " ", " ")));
|
|
1131
1124
|
}
|
|
1132
1125
|
function ti(t, e) {
|
|
1133
1126
|
t.className.baseVal === void 0 ? t.className = e : t.className.baseVal = e;
|
|
1134
1127
|
}
|
|
1135
|
-
function
|
|
1128
|
+
function fe(t) {
|
|
1136
1129
|
return t.correspondingElement && (t = t.correspondingElement), t.className.baseVal === void 0 ? t.className : t.className.baseVal;
|
|
1137
1130
|
}
|
|
1138
|
-
function
|
|
1139
|
-
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style &&
|
|
1131
|
+
function ot(t, e) {
|
|
1132
|
+
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style && Ao(t, e);
|
|
1140
1133
|
}
|
|
1141
|
-
function
|
|
1134
|
+
function Ao(t, e) {
|
|
1142
1135
|
var i = !1, n = "DXImageTransform.Microsoft.Alpha";
|
|
1143
1136
|
try {
|
|
1144
1137
|
i = t.filters.item(n);
|
|
@@ -1148,58 +1141,58 @@ var re = {}, Hs = {
|
|
|
1148
1141
|
}
|
|
1149
1142
|
e = Math.round(e * 100), i ? (i.Enabled = e !== 100, i.Opacity = e) : t.style.filter += " progid:" + n + "(opacity=" + e + ")";
|
|
1150
1143
|
}
|
|
1151
|
-
function
|
|
1144
|
+
function _e(t) {
|
|
1152
1145
|
for (var e = document.documentElement.style, i = 0; i < t.length; i++)
|
|
1153
1146
|
if (t[i] in e)
|
|
1154
1147
|
return t[i];
|
|
1155
1148
|
return !1;
|
|
1156
1149
|
}
|
|
1157
|
-
function
|
|
1150
|
+
function Ct(t, e, i) {
|
|
1158
1151
|
var n = e || new b(0, 0);
|
|
1159
1152
|
t.style[$e] = (p.ie3d ? "translate(" + n.x + "px," + n.y + "px)" : "translate3d(" + n.x + "px," + n.y + "px,0)") + (i ? " scale(" + i + ")" : "");
|
|
1160
1153
|
}
|
|
1161
|
-
function
|
|
1162
|
-
t._leaflet_pos = e, p.any3d ?
|
|
1154
|
+
function U(t, e) {
|
|
1155
|
+
t._leaflet_pos = e, p.any3d ? Ct(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
|
|
1163
1156
|
}
|
|
1164
|
-
function
|
|
1157
|
+
function St(t) {
|
|
1165
1158
|
return t._leaflet_pos || new b(0, 0);
|
|
1166
1159
|
}
|
|
1167
|
-
var
|
|
1160
|
+
var $t, Qt, ei;
|
|
1168
1161
|
if ("onselectstart" in document)
|
|
1169
|
-
|
|
1170
|
-
T(window, "selectstart",
|
|
1171
|
-
},
|
|
1172
|
-
B(window, "selectstart",
|
|
1162
|
+
$t = function() {
|
|
1163
|
+
T(window, "selectstart", q);
|
|
1164
|
+
}, Qt = function() {
|
|
1165
|
+
B(window, "selectstart", q);
|
|
1173
1166
|
};
|
|
1174
1167
|
else {
|
|
1175
|
-
var
|
|
1168
|
+
var te = _e(
|
|
1176
1169
|
["userSelect", "WebkitUserSelect", "OUserSelect", "MozUserSelect", "msUserSelect"]
|
|
1177
1170
|
);
|
|
1178
|
-
|
|
1179
|
-
if (
|
|
1171
|
+
$t = function() {
|
|
1172
|
+
if (te) {
|
|
1180
1173
|
var t = document.documentElement.style;
|
|
1181
|
-
ei = t[
|
|
1174
|
+
ei = t[te], t[te] = "none";
|
|
1182
1175
|
}
|
|
1183
|
-
},
|
|
1184
|
-
|
|
1176
|
+
}, Qt = function() {
|
|
1177
|
+
te && (document.documentElement.style[te] = ei, ei = void 0);
|
|
1185
1178
|
};
|
|
1186
1179
|
}
|
|
1187
1180
|
function ii() {
|
|
1188
|
-
T(window, "dragstart",
|
|
1181
|
+
T(window, "dragstart", q);
|
|
1189
1182
|
}
|
|
1190
1183
|
function ni() {
|
|
1191
|
-
B(window, "dragstart",
|
|
1184
|
+
B(window, "dragstart", q);
|
|
1192
1185
|
}
|
|
1193
|
-
var
|
|
1186
|
+
var me, oi;
|
|
1194
1187
|
function si(t) {
|
|
1195
1188
|
for (; t.tabIndex === -1; )
|
|
1196
1189
|
t = t.parentNode;
|
|
1197
|
-
t.style && (
|
|
1190
|
+
t.style && (pe(), me = t, oi = t.style.outlineStyle, t.style.outlineStyle = "none", T(window, "keydown", pe));
|
|
1198
1191
|
}
|
|
1199
|
-
function
|
|
1200
|
-
|
|
1192
|
+
function pe() {
|
|
1193
|
+
me && (me.style.outlineStyle = oi, me = void 0, oi = void 0, B(window, "keydown", pe));
|
|
1201
1194
|
}
|
|
1202
|
-
function
|
|
1195
|
+
function en(t) {
|
|
1203
1196
|
do
|
|
1204
1197
|
t = t.parentNode;
|
|
1205
1198
|
while ((!t.offsetWidth || !t.offsetHeight) && t !== document.body);
|
|
@@ -1213,39 +1206,39 @@ var re = {}, Hs = {
|
|
|
1213
1206
|
boundingClientRect: e
|
|
1214
1207
|
};
|
|
1215
1208
|
}
|
|
1216
|
-
var
|
|
1209
|
+
var Io = {
|
|
1217
1210
|
__proto__: null,
|
|
1218
1211
|
TRANSFORM: $e,
|
|
1219
|
-
TRANSITION:
|
|
1220
|
-
TRANSITION_END:
|
|
1221
|
-
get:
|
|
1222
|
-
getStyle:
|
|
1223
|
-
create:
|
|
1212
|
+
TRANSITION: Jt,
|
|
1213
|
+
TRANSITION_END: Qi,
|
|
1214
|
+
get: tn,
|
|
1215
|
+
getStyle: Xt,
|
|
1216
|
+
create: E,
|
|
1224
1217
|
remove: D,
|
|
1225
|
-
empty:
|
|
1226
|
-
toFront:
|
|
1227
|
-
toBack:
|
|
1218
|
+
empty: de,
|
|
1219
|
+
toFront: At,
|
|
1220
|
+
toBack: It,
|
|
1228
1221
|
hasClass: Qe,
|
|
1229
1222
|
addClass: M,
|
|
1230
1223
|
removeClass: F,
|
|
1231
1224
|
setClass: ti,
|
|
1232
|
-
getClass:
|
|
1233
|
-
setOpacity:
|
|
1234
|
-
testProp:
|
|
1235
|
-
setTransform:
|
|
1236
|
-
setPosition:
|
|
1237
|
-
getPosition:
|
|
1225
|
+
getClass: fe,
|
|
1226
|
+
setOpacity: ot,
|
|
1227
|
+
testProp: _e,
|
|
1228
|
+
setTransform: Ct,
|
|
1229
|
+
setPosition: U,
|
|
1230
|
+
getPosition: St,
|
|
1238
1231
|
get disableTextSelection() {
|
|
1239
|
-
return
|
|
1232
|
+
return $t;
|
|
1240
1233
|
},
|
|
1241
1234
|
get enableTextSelection() {
|
|
1242
|
-
return
|
|
1235
|
+
return Qt;
|
|
1243
1236
|
},
|
|
1244
1237
|
disableImageDrag: ii,
|
|
1245
1238
|
enableImageDrag: ni,
|
|
1246
1239
|
preventOutline: si,
|
|
1247
|
-
restoreOutline:
|
|
1248
|
-
getSizedParentNode:
|
|
1240
|
+
restoreOutline: pe,
|
|
1241
|
+
getSizedParentNode: en,
|
|
1249
1242
|
getScale: ri
|
|
1250
1243
|
};
|
|
1251
1244
|
function T(t, e, i, n) {
|
|
@@ -1253,30 +1246,30 @@ var re = {}, Hs = {
|
|
|
1253
1246
|
for (var o in e)
|
|
1254
1247
|
hi(t, o, e[o], i);
|
|
1255
1248
|
else {
|
|
1256
|
-
e =
|
|
1249
|
+
e = G(e);
|
|
1257
1250
|
for (var s = 0, r = e.length; s < r; s++)
|
|
1258
1251
|
hi(t, e[s], i, n);
|
|
1259
1252
|
}
|
|
1260
1253
|
return this;
|
|
1261
1254
|
}
|
|
1262
|
-
var
|
|
1255
|
+
var ct = "_leaflet_events";
|
|
1263
1256
|
function B(t, e, i, n) {
|
|
1264
1257
|
if (arguments.length === 1)
|
|
1265
|
-
|
|
1258
|
+
nn(t), delete t[ct];
|
|
1266
1259
|
else if (e && typeof e == "object")
|
|
1267
1260
|
for (var o in e)
|
|
1268
1261
|
ui(t, o, e[o], i);
|
|
1269
|
-
else if (e =
|
|
1270
|
-
|
|
1271
|
-
return
|
|
1262
|
+
else if (e = G(e), arguments.length === 2)
|
|
1263
|
+
nn(t, function(h) {
|
|
1264
|
+
return _t(e, h) !== -1;
|
|
1272
1265
|
});
|
|
1273
1266
|
else
|
|
1274
1267
|
for (var s = 0, r = e.length; s < r; s++)
|
|
1275
1268
|
ui(t, e[s], i, n);
|
|
1276
1269
|
return this;
|
|
1277
1270
|
}
|
|
1278
|
-
function
|
|
1279
|
-
for (var i in t[
|
|
1271
|
+
function nn(t, e) {
|
|
1272
|
+
for (var i in t[ct]) {
|
|
1280
1273
|
var n = i.split(/\d/)[0];
|
|
1281
1274
|
(!e || e(n)) && ui(t, n, null, null, i);
|
|
1282
1275
|
}
|
|
@@ -1288,45 +1281,45 @@ var re = {}, Hs = {
|
|
|
1288
1281
|
};
|
|
1289
1282
|
function hi(t, e, i, n) {
|
|
1290
1283
|
var o = e + g(i) + (n ? "_" + g(n) : "");
|
|
1291
|
-
if (t[
|
|
1284
|
+
if (t[ct] && t[ct][o])
|
|
1292
1285
|
return this;
|
|
1293
1286
|
var s = function(h) {
|
|
1294
1287
|
return i.call(n || t, h || window.event);
|
|
1295
1288
|
}, r = s;
|
|
1296
|
-
!p.touchNative && p.pointer && e.indexOf("touch") === 0 ? s =
|
|
1289
|
+
!p.touchNative && p.pointer && e.indexOf("touch") === 0 ? s = To(t, e, s) : p.touch && e === "dblclick" ? s = Zo(t, s) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(ai[e] || e, s, p.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (s = function(h) {
|
|
1297
1290
|
h = h || window.event, ci(t, h) && r(h);
|
|
1298
|
-
}, t.addEventListener(ai[e], s, !1)) : t.addEventListener(e, r, !1) : t.attachEvent("on" + e, s), t[
|
|
1291
|
+
}, t.addEventListener(ai[e], s, !1)) : t.addEventListener(e, r, !1) : t.attachEvent("on" + e, s), t[ct] = t[ct] || {}, t[ct][o] = s;
|
|
1299
1292
|
}
|
|
1300
1293
|
function ui(t, e, i, n, o) {
|
|
1301
1294
|
o = o || e + g(i) + (n ? "_" + g(n) : "");
|
|
1302
|
-
var s = t[
|
|
1295
|
+
var s = t[ct] && t[ct][o];
|
|
1303
1296
|
if (!s)
|
|
1304
1297
|
return this;
|
|
1305
|
-
!p.touchNative && p.pointer && e.indexOf("touch") === 0 ?
|
|
1298
|
+
!p.touchNative && p.pointer && e.indexOf("touch") === 0 ? Mo(t, e, s) : p.touch && e === "dblclick" ? Bo(t, s) : "removeEventListener" in t ? t.removeEventListener(ai[e] || e, s, !1) : t.detachEvent("on" + e, s), t[ct][o] = null;
|
|
1306
1299
|
}
|
|
1307
|
-
function
|
|
1300
|
+
function zt(t) {
|
|
1308
1301
|
return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
|
|
1309
1302
|
}
|
|
1310
1303
|
function li(t) {
|
|
1311
|
-
return hi(t, "wheel",
|
|
1304
|
+
return hi(t, "wheel", zt), this;
|
|
1312
1305
|
}
|
|
1313
|
-
function
|
|
1314
|
-
return T(t, "mousedown touchstart dblclick contextmenu",
|
|
1306
|
+
function ee(t) {
|
|
1307
|
+
return T(t, "mousedown touchstart dblclick contextmenu", zt), t._leaflet_disable_click = !0, this;
|
|
1315
1308
|
}
|
|
1316
|
-
function
|
|
1309
|
+
function q(t) {
|
|
1317
1310
|
return t.preventDefault ? t.preventDefault() : t.returnValue = !1, this;
|
|
1318
1311
|
}
|
|
1319
|
-
function
|
|
1320
|
-
return
|
|
1312
|
+
function Ot(t) {
|
|
1313
|
+
return q(t), zt(t), this;
|
|
1321
1314
|
}
|
|
1322
|
-
function
|
|
1315
|
+
function on(t) {
|
|
1323
1316
|
if (t.composedPath)
|
|
1324
1317
|
return t.composedPath();
|
|
1325
1318
|
for (var e = [], i = t.target; i; )
|
|
1326
1319
|
e.push(i), i = i.parentNode;
|
|
1327
1320
|
return e;
|
|
1328
1321
|
}
|
|
1329
|
-
function
|
|
1322
|
+
function sn(t, e) {
|
|
1330
1323
|
if (!e)
|
|
1331
1324
|
return new b(t.clientX, t.clientY);
|
|
1332
1325
|
var i = ri(e), n = i.boundingClientRect;
|
|
@@ -1337,11 +1330,11 @@ var re = {}, Hs = {
|
|
|
1337
1330
|
(t.clientY - n.top) / i.y - e.clientTop
|
|
1338
1331
|
);
|
|
1339
1332
|
}
|
|
1340
|
-
var
|
|
1341
|
-
function
|
|
1333
|
+
var Ro = p.linux && p.chrome ? window.devicePixelRatio : p.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
|
|
1334
|
+
function rn(t) {
|
|
1342
1335
|
return p.edge ? t.wheelDeltaY / 2 : (
|
|
1343
1336
|
// Don't trust window-geometry-based delta
|
|
1344
|
-
t.deltaY && t.deltaMode === 0 ? -t.deltaY /
|
|
1337
|
+
t.deltaY && t.deltaMode === 0 ? -t.deltaY / Ro : (
|
|
1345
1338
|
// Pixels
|
|
1346
1339
|
t.deltaY && t.deltaMode === 1 ? -t.deltaY * 20 : (
|
|
1347
1340
|
// Lines
|
|
@@ -1377,29 +1370,29 @@ var re = {}, Hs = {
|
|
|
1377
1370
|
}
|
|
1378
1371
|
return i !== t;
|
|
1379
1372
|
}
|
|
1380
|
-
var
|
|
1373
|
+
var No = {
|
|
1381
1374
|
__proto__: null,
|
|
1382
1375
|
on: T,
|
|
1383
1376
|
off: B,
|
|
1384
|
-
stopPropagation:
|
|
1377
|
+
stopPropagation: zt,
|
|
1385
1378
|
disableScrollPropagation: li,
|
|
1386
|
-
disableClickPropagation:
|
|
1387
|
-
preventDefault:
|
|
1388
|
-
stop:
|
|
1389
|
-
getPropagationPath:
|
|
1390
|
-
getMousePosition:
|
|
1391
|
-
getWheelDelta:
|
|
1379
|
+
disableClickPropagation: ee,
|
|
1380
|
+
preventDefault: q,
|
|
1381
|
+
stop: Ot,
|
|
1382
|
+
getPropagationPath: on,
|
|
1383
|
+
getMousePosition: sn,
|
|
1384
|
+
getWheelDelta: rn,
|
|
1392
1385
|
isExternalTarget: ci,
|
|
1393
1386
|
addListener: T,
|
|
1394
1387
|
removeListener: B
|
|
1395
|
-
},
|
|
1388
|
+
}, an = qt.extend({
|
|
1396
1389
|
// @method run(el: HTMLElement, newPos: Point, duration?: Number, easeLinearity?: Number)
|
|
1397
1390
|
// Run an animation of a given element to a new position, optionally setting
|
|
1398
1391
|
// duration in seconds (`0.25` by default) and easing linearity factor (3rd
|
|
1399
1392
|
// argument of the [cubic bezier curve](https://cubic-bezier.com/#0,0,.5,1),
|
|
1400
1393
|
// `0.5` by default).
|
|
1401
1394
|
run: function(t, e, i, n) {
|
|
1402
|
-
this.stop(), this._el = t, this._inProgress = !0, this._duration = i || 0.25, this._easeOutPower = 1 / Math.max(n || 0.5, 0.2), this._startPos =
|
|
1395
|
+
this.stop(), this._el = t, this._inProgress = !0, this._duration = i || 0.25, this._easeOutPower = 1 / Math.max(n || 0.5, 0.2), this._startPos = St(t), this._offset = e.subtract(this._startPos), this._startTime = +/* @__PURE__ */ new Date(), this.fire("start"), this._animate();
|
|
1403
1396
|
},
|
|
1404
1397
|
// @method stop()
|
|
1405
1398
|
// Stops the animation (if currently running).
|
|
@@ -1407,23 +1400,23 @@ var re = {}, Hs = {
|
|
|
1407
1400
|
this._inProgress && (this._step(!0), this._complete());
|
|
1408
1401
|
},
|
|
1409
1402
|
_animate: function() {
|
|
1410
|
-
this._animId =
|
|
1403
|
+
this._animId = J(this._animate, this), this._step();
|
|
1411
1404
|
},
|
|
1412
1405
|
_step: function(t) {
|
|
1413
|
-
var e =
|
|
1406
|
+
var e = +/* @__PURE__ */ new Date() - this._startTime, i = this._duration * 1e3;
|
|
1414
1407
|
e < i ? this._runFrame(this._easeOut(e / i), t) : (this._runFrame(1), this._complete());
|
|
1415
1408
|
},
|
|
1416
1409
|
_runFrame: function(t, e) {
|
|
1417
1410
|
var i = this._startPos.add(this._offset.multiplyBy(t));
|
|
1418
|
-
e && i._round(),
|
|
1411
|
+
e && i._round(), U(this._el, i), this.fire("step");
|
|
1419
1412
|
},
|
|
1420
1413
|
_complete: function() {
|
|
1421
|
-
|
|
1414
|
+
nt(this._animId), this._inProgress = !1, this.fire("end");
|
|
1422
1415
|
},
|
|
1423
1416
|
_easeOut: function(t) {
|
|
1424
1417
|
return 1 - Math.pow(1 - t, this._easeOutPower);
|
|
1425
1418
|
}
|
|
1426
|
-
}),
|
|
1419
|
+
}), k = qt.extend({
|
|
1427
1420
|
options: {
|
|
1428
1421
|
// @section Map State Options
|
|
1429
1422
|
// @option crs: CRS = L.CRS.EPSG3857
|
|
@@ -1501,14 +1494,14 @@ var re = {}, Hs = {
|
|
|
1501
1494
|
trackResize: !0
|
|
1502
1495
|
},
|
|
1503
1496
|
initialize: function(t, e) {
|
|
1504
|
-
e = z(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = v(this._onResize, this), this._initEvents(), e.maxBounds && this.setMaxBounds(e.maxBounds), e.zoom !== void 0 && (this._zoom = this._limitZoom(e.zoom)), e.center && e.zoom !== void 0 && this.setView(
|
|
1497
|
+
e = z(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = v(this._onResize, this), this._initEvents(), e.maxBounds && this.setMaxBounds(e.maxBounds), e.zoom !== void 0 && (this._zoom = this._limitZoom(e.zoom)), e.center && e.zoom !== void 0 && this.setView(O(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = Jt && p.any3d && !p.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), T(this._proxy, Qi, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
|
|
1505
1498
|
},
|
|
1506
1499
|
// @section Methods for modifying map state
|
|
1507
1500
|
// @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
|
|
1508
1501
|
// Sets the view of the map (geographical center and zoom) with the given
|
|
1509
1502
|
// animation options.
|
|
1510
1503
|
setView: function(t, e, i) {
|
|
1511
|
-
if (e = e === void 0 ? this._zoom : this._limitZoom(e), t = this._limitCenter(
|
|
1504
|
+
if (e = e === void 0 ? this._zoom : this._limitZoom(e), t = this._limitCenter(O(t), e, this.options.maxBounds), i = i || {}, this._stop(), this._loaded && !i.reset && i !== !0) {
|
|
1512
1505
|
i.animate !== void 0 && (i.zoom = m({ animate: i.animate }, i.zoom), i.pan = m({ animate: i.animate, duration: i.duration }, i.pan));
|
|
1513
1506
|
var n = this._zoom !== e ? this._tryAnimatedZoom && this._tryAnimatedZoom(t, e, i.zoom) : this._tryAnimatedPan(t, i.pan);
|
|
1514
1507
|
if (n)
|
|
@@ -1542,7 +1535,7 @@ var re = {}, Hs = {
|
|
|
1542
1535
|
return this.setView(h, e, { zoom: i });
|
|
1543
1536
|
},
|
|
1544
1537
|
_getBoundsCenterZoom: function(t, e) {
|
|
1545
|
-
e = e || {}, t = t.getBounds ? t.getBounds() :
|
|
1538
|
+
e = e || {}, t = t.getBounds ? t.getBounds() : W(t);
|
|
1546
1539
|
var i = P(e.paddingTopLeft || e.padding || [0, 0]), n = P(e.paddingBottomRight || e.padding || [0, 0]), o = this.getBoundsZoom(t, !1, i.add(n));
|
|
1547
1540
|
if (o = typeof e.maxZoom == "number" ? Math.min(e.maxZoom, o) : o, o === 1 / 0)
|
|
1548
1541
|
return {
|
|
@@ -1559,7 +1552,7 @@ var re = {}, Hs = {
|
|
|
1559
1552
|
// Sets a map view that contains the given geographical bounds with the
|
|
1560
1553
|
// maximum zoom level possible.
|
|
1561
1554
|
fitBounds: function(t, e) {
|
|
1562
|
-
if (t =
|
|
1555
|
+
if (t = W(t), !t.isValid())
|
|
1563
1556
|
throw new Error("Bounds are not valid.");
|
|
1564
1557
|
var i = this._getBoundsCenterZoom(t, e);
|
|
1565
1558
|
return this.setView(i.center, i.zoom, e);
|
|
@@ -1582,7 +1575,7 @@ var re = {}, Hs = {
|
|
|
1582
1575
|
return this.fire("moveend");
|
|
1583
1576
|
if (e.animate !== !0 && !this.getSize().contains(t))
|
|
1584
1577
|
return this._resetView(this.unproject(this.project(this.getCenter()).add(t)), this.getZoom()), this;
|
|
1585
|
-
if (this._panAnim || (this._panAnim = new
|
|
1578
|
+
if (this._panAnim || (this._panAnim = new an(), this._panAnim.on({
|
|
1586
1579
|
step: this._onPanTransitionStep,
|
|
1587
1580
|
end: this._onPanTransitionEnd
|
|
1588
1581
|
}, this)), e.noMoveStart || this.fire("movestart"), e.animate !== !1) {
|
|
@@ -1601,41 +1594,41 @@ var re = {}, Hs = {
|
|
|
1601
1594
|
return this.setView(t, e, i);
|
|
1602
1595
|
this._stop();
|
|
1603
1596
|
var n = this.project(this.getCenter()), o = this.project(t), s = this.getSize(), r = this._zoom;
|
|
1604
|
-
t =
|
|
1605
|
-
var h = Math.max(s.x, s.y), u = h * this.getZoomScale(r, e),
|
|
1606
|
-
function
|
|
1607
|
-
var Se =
|
|
1608
|
-
return
|
|
1597
|
+
t = O(t), e = e === void 0 ? r : e;
|
|
1598
|
+
var h = Math.max(s.x, s.y), u = h * this.getZoomScale(r, e), l = o.distanceTo(n) || 1, _ = 1.42, y = _ * _;
|
|
1599
|
+
function C(j) {
|
|
1600
|
+
var Se = j ? -1 : 1, Ms = j ? u : h, Cs = u * u - h * h + Se * y * y * l * l, Ss = 2 * Ms * y * l, Pi = Cs / Ss, Fn = Math.sqrt(Pi * Pi + 1) - Pi, zs = Fn < 1e-9 ? -18 : Math.log(Fn);
|
|
1601
|
+
return zs;
|
|
1609
1602
|
}
|
|
1610
|
-
function
|
|
1611
|
-
return (Math.exp(
|
|
1603
|
+
function Y(j) {
|
|
1604
|
+
return (Math.exp(j) - Math.exp(-j)) / 2;
|
|
1612
1605
|
}
|
|
1613
|
-
function
|
|
1614
|
-
return (Math.exp(
|
|
1606
|
+
function V(j) {
|
|
1607
|
+
return (Math.exp(j) + Math.exp(-j)) / 2;
|
|
1615
1608
|
}
|
|
1616
|
-
function
|
|
1617
|
-
return
|
|
1609
|
+
function rt(j) {
|
|
1610
|
+
return Y(j) / V(j);
|
|
1618
1611
|
}
|
|
1619
|
-
var
|
|
1620
|
-
function
|
|
1621
|
-
return h * (
|
|
1612
|
+
var Q = C(0);
|
|
1613
|
+
function Wt(j) {
|
|
1614
|
+
return h * (V(Q) / V(Q + _ * j));
|
|
1622
1615
|
}
|
|
1623
|
-
function
|
|
1624
|
-
return h * (
|
|
1616
|
+
function Ps(j) {
|
|
1617
|
+
return h * (V(Q) * rt(Q + _ * j) - Y(Q)) / y;
|
|
1625
1618
|
}
|
|
1626
|
-
function
|
|
1627
|
-
return 1 - Math.pow(1 -
|
|
1619
|
+
function xs(j) {
|
|
1620
|
+
return 1 - Math.pow(1 - j, 1.5);
|
|
1628
1621
|
}
|
|
1629
|
-
var
|
|
1630
|
-
function
|
|
1631
|
-
var
|
|
1632
|
-
|
|
1633
|
-
this.unproject(n.add(o.subtract(n).multiplyBy(
|
|
1634
|
-
this.getScaleZoom(h /
|
|
1622
|
+
var bs = Date.now(), Dn = (C(1) - Q) / _, Ts = i.duration ? 1e3 * i.duration : 1e3 * Dn * 0.8;
|
|
1623
|
+
function Hn() {
|
|
1624
|
+
var j = (Date.now() - bs) / Ts, Se = xs(j) * Dn;
|
|
1625
|
+
j <= 1 ? (this._flyToFrame = J(Hn, this), this._move(
|
|
1626
|
+
this.unproject(n.add(o.subtract(n).multiplyBy(Ps(Se) / l)), r),
|
|
1627
|
+
this.getScaleZoom(h / Wt(Se), r),
|
|
1635
1628
|
{ flyTo: !0 }
|
|
1636
1629
|
)) : this._move(t, e)._moveEnd(!0);
|
|
1637
1630
|
}
|
|
1638
|
-
return this._moveStart(!0, i.noMoveStart),
|
|
1631
|
+
return this._moveStart(!0, i.noMoveStart), Hn.call(this), this;
|
|
1639
1632
|
},
|
|
1640
1633
|
// @method flyToBounds(bounds: LatLngBounds, options?: fitBounds options): this
|
|
1641
1634
|
// Sets the view of the map with a smooth animation like [`flyTo`](#map-flyto),
|
|
@@ -1647,7 +1640,7 @@ var re = {}, Hs = {
|
|
|
1647
1640
|
// @method setMaxBounds(bounds: LatLngBounds): this
|
|
1648
1641
|
// Restricts the map view to the given bounds (see the [maxBounds](#map-maxbounds) option).
|
|
1649
1642
|
setMaxBounds: function(t) {
|
|
1650
|
-
return t =
|
|
1643
|
+
return t = W(t), this.listens("moveend", this._panInsideMaxBounds) && this.off("moveend", this._panInsideMaxBounds), t.isValid() ? (this.options.maxBounds = t, this._loaded && this._panInsideMaxBounds(), this.on("moveend", this._panInsideMaxBounds)) : (this.options.maxBounds = null, this);
|
|
1651
1644
|
},
|
|
1652
1645
|
// @method setMinZoom(zoom: Number): this
|
|
1653
1646
|
// Sets the lower limit for the available zoom levels (see the [minZoom](#map-minzoom) option).
|
|
@@ -1665,7 +1658,7 @@ var re = {}, Hs = {
|
|
|
1665
1658
|
// Pans the map to the closest view that would lie inside the given bounds (if it's not already), controlling the animation using the options specific, if any.
|
|
1666
1659
|
panInsideBounds: function(t, e) {
|
|
1667
1660
|
this._enforcingBounds = !0;
|
|
1668
|
-
var i = this.getCenter(), n = this._limitCenter(i, this._zoom,
|
|
1661
|
+
var i = this.getCenter(), n = this._limitCenter(i, this._zoom, W(t));
|
|
1669
1662
|
return i.equals(n) || this.panTo(n, e), this._enforcingBounds = !1, this;
|
|
1670
1663
|
},
|
|
1671
1664
|
// @method panInside(latlng: LatLng, options?: padding options): this
|
|
@@ -1675,11 +1668,11 @@ var re = {}, Hs = {
|
|
|
1675
1668
|
// the map will not be panned.
|
|
1676
1669
|
panInside: function(t, e) {
|
|
1677
1670
|
e = e || {};
|
|
1678
|
-
var i = P(e.paddingTopLeft || e.padding || [0, 0]), n = P(e.paddingBottomRight || e.padding || [0, 0]), o = this.project(this.getCenter()), s = this.project(t), r = this.getPixelBounds(), h =
|
|
1671
|
+
var i = P(e.paddingTopLeft || e.padding || [0, 0]), n = P(e.paddingBottomRight || e.padding || [0, 0]), o = this.project(this.getCenter()), s = this.project(t), r = this.getPixelBounds(), h = X([r.min.add(i), r.max.subtract(n)]), u = h.getSize();
|
|
1679
1672
|
if (!h.contains(s)) {
|
|
1680
1673
|
this._enforcingBounds = !0;
|
|
1681
|
-
var
|
|
1682
|
-
o.x +=
|
|
1674
|
+
var l = s.subtract(h.getCenter()), _ = h.extend(s).getSize().subtract(u);
|
|
1675
|
+
o.x += l.x < 0 ? -_.x : _.x, o.y += l.y < 0 ? -_.y : _.y, this.panTo(this.unproject(o), e), this._enforcingBounds = !1;
|
|
1683
1676
|
}
|
|
1684
1677
|
return this;
|
|
1685
1678
|
},
|
|
@@ -1759,7 +1752,7 @@ var re = {}, Hs = {
|
|
|
1759
1752
|
},
|
|
1760
1753
|
_handleGeolocationResponse: function(t) {
|
|
1761
1754
|
if (this._container._leaflet_id) {
|
|
1762
|
-
var e = t.coords.latitude, i = t.coords.longitude, n = new
|
|
1755
|
+
var e = t.coords.latitude, i = t.coords.longitude, n = new Z(e, i), o = n.toBounds(t.coords.accuracy * 2), s = this._locateOptions;
|
|
1763
1756
|
if (s.setView) {
|
|
1764
1757
|
var r = this.getBoundsZoom(o);
|
|
1765
1758
|
this.setView(n, s.maxZoom ? Math.min(r, s.maxZoom) : r);
|
|
@@ -1794,7 +1787,7 @@ var re = {}, Hs = {
|
|
|
1794
1787
|
} catch {
|
|
1795
1788
|
this._container._leaflet_id = void 0, this._containerId = void 0;
|
|
1796
1789
|
}
|
|
1797
|
-
this._locationWatchId !== void 0 && this.stopLocate(), this._stop(), D(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest && (
|
|
1790
|
+
this._locationWatchId !== void 0 && this.stopLocate(), this._stop(), D(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest && (nt(this._resizeRequest), this._resizeRequest = null), this._clearHandlers(), this._loaded && this.fire("unload");
|
|
1798
1791
|
var t;
|
|
1799
1792
|
for (t in this._layers)
|
|
1800
1793
|
this._layers[t].remove();
|
|
@@ -1808,7 +1801,7 @@ var re = {}, Hs = {
|
|
|
1808
1801
|
// then returns it. The pane is created as a child of `container`, or
|
|
1809
1802
|
// as a child of the main map pane if not set.
|
|
1810
1803
|
createPane: function(t, e) {
|
|
1811
|
-
var i = "leaflet-pane" + (t ? " leaflet-" + t.replace("Pane", "") + "-pane" : ""), n =
|
|
1804
|
+
var i = "leaflet-pane" + (t ? " leaflet-" + t.replace("Pane", "") + "-pane" : ""), n = E("div", i, e || this._mapPane);
|
|
1812
1805
|
return t && (this._panes[t] = n), n;
|
|
1813
1806
|
},
|
|
1814
1807
|
// @section Methods for Getting Map State
|
|
@@ -1826,7 +1819,7 @@ var re = {}, Hs = {
|
|
|
1826
1819
|
// Returns the geographical bounds visible in the current map view
|
|
1827
1820
|
getBounds: function() {
|
|
1828
1821
|
var t = this.getPixelBounds(), e = this.unproject(t.getBottomLeft()), i = this.unproject(t.getTopRight());
|
|
1829
|
-
return new
|
|
1822
|
+
return new $(e, i);
|
|
1830
1823
|
},
|
|
1831
1824
|
// @method getMinZoom(): Number
|
|
1832
1825
|
// Returns the minimum zoom level of the map (if set in the `minZoom` option of the map or of any layers), or `0` by default.
|
|
@@ -1844,9 +1837,9 @@ var re = {}, Hs = {
|
|
|
1844
1837
|
// instead returns the minimum zoom level on which the map view fits into
|
|
1845
1838
|
// the given bounds in its entirety.
|
|
1846
1839
|
getBoundsZoom: function(t, e, i) {
|
|
1847
|
-
t =
|
|
1848
|
-
var n = this.getZoom() || 0, o = this.getMinZoom(), s = this.getMaxZoom(), r = t.getNorthWest(), h = t.getSouthEast(), u = this.getSize().subtract(i),
|
|
1849
|
-
return n = this.getScaleZoom(
|
|
1840
|
+
t = W(t), i = P(i || [0, 0]);
|
|
1841
|
+
var n = this.getZoom() || 0, o = this.getMinZoom(), s = this.getMaxZoom(), r = t.getNorthWest(), h = t.getSouthEast(), u = this.getSize().subtract(i), l = X(this.project(h, n), this.project(r, n)).getSize(), _ = p.any3d ? this.options.zoomSnap : 1, y = u.x / l.x, C = u.y / l.y, Y = e ? Math.max(y, C) : Math.min(y, C);
|
|
1842
|
+
return n = this.getScaleZoom(Y, n), _ && (n = Math.round(n / (_ / 100)) * (_ / 100), n = e ? Math.ceil(n / _) * _ : Math.floor(n / _) * _), Math.max(o, Math.min(s, n));
|
|
1850
1843
|
},
|
|
1851
1844
|
// @method getSize(): Point
|
|
1852
1845
|
// Returns the current size of the map container (in pixels).
|
|
@@ -1919,7 +1912,7 @@ var re = {}, Hs = {
|
|
|
1919
1912
|
// `Transformation`. The result is pixel coordinate relative to
|
|
1920
1913
|
// the CRS origin.
|
|
1921
1914
|
project: function(t, e) {
|
|
1922
|
-
return e = e === void 0 ? this._zoom : e, this.options.crs.latLngToPoint(
|
|
1915
|
+
return e = e === void 0 ? this._zoom : e, this.options.crs.latLngToPoint(O(t), e);
|
|
1923
1916
|
},
|
|
1924
1917
|
// @method unproject(point: Point, zoom: Number): LatLng
|
|
1925
1918
|
// Inverse of [`project`](#map-project).
|
|
@@ -1937,7 +1930,7 @@ var re = {}, Hs = {
|
|
|
1937
1930
|
// Given a geographical coordinate, returns the corresponding pixel coordinate
|
|
1938
1931
|
// relative to the [origin pixel](#map-getpixelorigin).
|
|
1939
1932
|
latLngToLayerPoint: function(t) {
|
|
1940
|
-
var e = this.project(
|
|
1933
|
+
var e = this.project(O(t))._round();
|
|
1941
1934
|
return e._subtract(this.getPixelOrigin());
|
|
1942
1935
|
},
|
|
1943
1936
|
// @method wrapLatLng(latlng: LatLng): LatLng
|
|
@@ -1947,7 +1940,7 @@ var re = {}, Hs = {
|
|
|
1947
1940
|
// By default this means longitude is wrapped around the dateline so its
|
|
1948
1941
|
// value is between -180 and +180 degrees.
|
|
1949
1942
|
wrapLatLng: function(t) {
|
|
1950
|
-
return this.options.crs.wrapLatLng(
|
|
1943
|
+
return this.options.crs.wrapLatLng(O(t));
|
|
1951
1944
|
},
|
|
1952
1945
|
// @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds
|
|
1953
1946
|
// Returns a `LatLngBounds` with the same size as the given one, ensuring that
|
|
@@ -1956,13 +1949,13 @@ var re = {}, Hs = {
|
|
|
1956
1949
|
// value is between -180 and +180 degrees, and the majority of the bounds
|
|
1957
1950
|
// overlaps the CRS's bounds.
|
|
1958
1951
|
wrapLatLngBounds: function(t) {
|
|
1959
|
-
return this.options.crs.wrapLatLngBounds(
|
|
1952
|
+
return this.options.crs.wrapLatLngBounds(W(t));
|
|
1960
1953
|
},
|
|
1961
1954
|
// @method distance(latlng1: LatLng, latlng2: LatLng): Number
|
|
1962
1955
|
// Returns the distance between two geographical coordinates according to
|
|
1963
1956
|
// the map's CRS. By default this measures distance in meters.
|
|
1964
1957
|
distance: function(t, e) {
|
|
1965
|
-
return this.options.crs.distance(
|
|
1958
|
+
return this.options.crs.distance(O(t), O(e));
|
|
1966
1959
|
},
|
|
1967
1960
|
// @method containerPointToLayerPoint(point: Point): Point
|
|
1968
1961
|
// Given a pixel coordinate relative to the map container, returns the corresponding
|
|
@@ -1987,13 +1980,13 @@ var re = {}, Hs = {
|
|
|
1987
1980
|
// Given a geographical coordinate, returns the corresponding pixel coordinate
|
|
1988
1981
|
// relative to the map container.
|
|
1989
1982
|
latLngToContainerPoint: function(t) {
|
|
1990
|
-
return this.layerPointToContainerPoint(this.latLngToLayerPoint(
|
|
1983
|
+
return this.layerPointToContainerPoint(this.latLngToLayerPoint(O(t)));
|
|
1991
1984
|
},
|
|
1992
1985
|
// @method mouseEventToContainerPoint(ev: MouseEvent): Point
|
|
1993
1986
|
// Given a MouseEvent object, returns the pixel coordinate relative to the
|
|
1994
1987
|
// map container where the event took place.
|
|
1995
1988
|
mouseEventToContainerPoint: function(t) {
|
|
1996
|
-
return
|
|
1989
|
+
return sn(t, this._container);
|
|
1997
1990
|
},
|
|
1998
1991
|
// @method mouseEventToLayerPoint(ev: MouseEvent): Point
|
|
1999
1992
|
// Given a MouseEvent object, returns the pixel coordinate relative to
|
|
@@ -2009,7 +2002,7 @@ var re = {}, Hs = {
|
|
|
2009
2002
|
},
|
|
2010
2003
|
// map initialization methods
|
|
2011
2004
|
_initContainer: function(t) {
|
|
2012
|
-
var e = this._container =
|
|
2005
|
+
var e = this._container = tn(t);
|
|
2013
2006
|
if (e) {
|
|
2014
2007
|
if (e._leaflet_id)
|
|
2015
2008
|
throw new Error("Map container is already initialized.");
|
|
@@ -2020,17 +2013,17 @@ var re = {}, Hs = {
|
|
|
2020
2013
|
_initLayout: function() {
|
|
2021
2014
|
var t = this._container;
|
|
2022
2015
|
this._fadeAnimated = this.options.fadeAnimation && p.any3d, M(t, "leaflet-container" + (p.touch ? " leaflet-touch" : "") + (p.retina ? " leaflet-retina" : "") + (p.ielt9 ? " leaflet-oldie" : "") + (p.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
|
|
2023
|
-
var e =
|
|
2016
|
+
var e = Xt(t, "position");
|
|
2024
2017
|
e !== "absolute" && e !== "relative" && e !== "fixed" && e !== "sticky" && (t.style.position = "relative"), this._initPanes(), this._initControlPos && this._initControlPos();
|
|
2025
2018
|
},
|
|
2026
2019
|
_initPanes: function() {
|
|
2027
2020
|
var t = this._panes = {};
|
|
2028
|
-
this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container),
|
|
2021
|
+
this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), U(this._mapPane, new b(0, 0)), this.createPane("tilePane"), this.createPane("overlayPane"), this.createPane("shadowPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (M(t.markerPane, "leaflet-zoom-hide"), M(t.shadowPane, "leaflet-zoom-hide"));
|
|
2029
2022
|
},
|
|
2030
2023
|
// private methods that modify map state
|
|
2031
2024
|
// @section Map state change events
|
|
2032
2025
|
_resetView: function(t, e, i) {
|
|
2033
|
-
|
|
2026
|
+
U(this._mapPane, new b(0, 0));
|
|
2034
2027
|
var n = !this._loaded;
|
|
2035
2028
|
this._loaded = !0, e = this._limitZoom(e), this.fire("viewprereset");
|
|
2036
2029
|
var o = this._zoom !== e;
|
|
@@ -2048,10 +2041,10 @@ var re = {}, Hs = {
|
|
|
2048
2041
|
return t && this.fire("zoomend"), this.fire("moveend");
|
|
2049
2042
|
},
|
|
2050
2043
|
_stop: function() {
|
|
2051
|
-
return
|
|
2044
|
+
return nt(this._flyToFrame), this._panAnim && this._panAnim.stop(), this;
|
|
2052
2045
|
},
|
|
2053
2046
|
_rawPanBy: function(t) {
|
|
2054
|
-
|
|
2047
|
+
U(this._mapPane, this._getMapPanePos().subtract(t));
|
|
2055
2048
|
},
|
|
2056
2049
|
_getZoomSpan: function() {
|
|
2057
2050
|
return this.getMaxZoom() - this.getMinZoom();
|
|
@@ -2071,7 +2064,7 @@ var re = {}, Hs = {
|
|
|
2071
2064
|
e(this._container, "click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup", this._handleDOMEvent, this), this.options.trackResize && e(window, "resize", this._onResize, this), p.any3d && this.options.transform3DLimit && (t ? this.off : this.on).call(this, "moveend", this._onMoveEnd);
|
|
2072
2065
|
},
|
|
2073
2066
|
_onResize: function() {
|
|
2074
|
-
|
|
2067
|
+
nt(this._resizeRequest), this._resizeRequest = J(
|
|
2075
2068
|
function() {
|
|
2076
2069
|
this.invalidateSize({ debounceMoveend: !0 });
|
|
2077
2070
|
},
|
|
@@ -2124,16 +2117,16 @@ var re = {}, Hs = {
|
|
|
2124
2117
|
o = s.concat(o);
|
|
2125
2118
|
}
|
|
2126
2119
|
if (o.length) {
|
|
2127
|
-
e === "contextmenu" &&
|
|
2120
|
+
e === "contextmenu" && q(t);
|
|
2128
2121
|
var h = o[0], u = {
|
|
2129
2122
|
originalEvent: t
|
|
2130
2123
|
};
|
|
2131
2124
|
if (t.type !== "keypress" && t.type !== "keydown" && t.type !== "keyup") {
|
|
2132
|
-
var
|
|
2133
|
-
u.containerPoint =
|
|
2125
|
+
var l = h.getLatLng && (!h._radius || h._radius <= 10);
|
|
2126
|
+
u.containerPoint = l ? this.latLngToContainerPoint(h.getLatLng()) : this.mouseEventToContainerPoint(t), u.layerPoint = this.containerPointToLayerPoint(u.containerPoint), u.latlng = l ? h.getLatLng() : this.layerPointToLatLng(u.layerPoint);
|
|
2134
2127
|
}
|
|
2135
2128
|
for (r = 0; r < o.length; r++)
|
|
2136
|
-
if (o[r].fire(e, u, !0), u.originalEvent._stopped || o[r].options.bubblingMouseEvents === !1 &&
|
|
2129
|
+
if (o[r].fire(e, u, !0), u.originalEvent._stopped || o[r].options.bubblingMouseEvents === !1 && _t(this._mouseEvents, e) !== -1)
|
|
2137
2130
|
return;
|
|
2138
2131
|
}
|
|
2139
2132
|
},
|
|
@@ -2154,7 +2147,7 @@ var re = {}, Hs = {
|
|
|
2154
2147
|
},
|
|
2155
2148
|
// private methods for getting map state
|
|
2156
2149
|
_getMapPanePos: function() {
|
|
2157
|
-
return
|
|
2150
|
+
return St(this._mapPane) || new b(0, 0);
|
|
2158
2151
|
},
|
|
2159
2152
|
_moved: function() {
|
|
2160
2153
|
var t = this._getMapPanePos();
|
|
@@ -2174,7 +2167,7 @@ var re = {}, Hs = {
|
|
|
2174
2167
|
},
|
|
2175
2168
|
_latLngBoundsToNewLayerBounds: function(t, e, i) {
|
|
2176
2169
|
var n = this._getNewPixelOrigin(i, e);
|
|
2177
|
-
return
|
|
2170
|
+
return X([
|
|
2178
2171
|
this.project(t.getSouthWest(), e)._subtract(n),
|
|
2179
2172
|
this.project(t.getNorthWest(), e)._subtract(n),
|
|
2180
2173
|
this.project(t.getSouthEast(), e)._subtract(n),
|
|
@@ -2205,7 +2198,7 @@ var re = {}, Hs = {
|
|
|
2205
2198
|
},
|
|
2206
2199
|
// returns offset needed for pxBounds to get inside maxBounds at a specified zoom
|
|
2207
2200
|
_getBoundsOffset: function(t, e, i) {
|
|
2208
|
-
var n =
|
|
2201
|
+
var n = X(
|
|
2209
2202
|
this.project(e.getNorthEast(), i),
|
|
2210
2203
|
this.project(e.getSouthWest(), i)
|
|
2211
2204
|
), o = n.min.subtract(t.min), s = n.max.subtract(t.max), r = this._rebound(o.x, -s.x), h = this._rebound(o.y, -s.y);
|
|
@@ -2229,10 +2222,10 @@ var re = {}, Hs = {
|
|
|
2229
2222
|
return (e && e.animate) !== !0 && !this.getSize().contains(i) ? !1 : (this.panBy(i, e), !0);
|
|
2230
2223
|
},
|
|
2231
2224
|
_createAnimProxy: function() {
|
|
2232
|
-
var t = this._proxy =
|
|
2225
|
+
var t = this._proxy = E("div", "leaflet-proxy leaflet-zoom-animated");
|
|
2233
2226
|
this._panes.mapPane.appendChild(t), this.on("zoomanim", function(e) {
|
|
2234
2227
|
var i = $e, n = this._proxy.style[i];
|
|
2235
|
-
|
|
2228
|
+
Ct(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1)), n === this._proxy.style[i] && this._animatingZoom && this._onZoomTransitionEnd();
|
|
2236
2229
|
}, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this);
|
|
2237
2230
|
},
|
|
2238
2231
|
_destroyAnimProxy: function() {
|
|
@@ -2240,7 +2233,7 @@ var re = {}, Hs = {
|
|
|
2240
2233
|
},
|
|
2241
2234
|
_animMoveEnd: function() {
|
|
2242
2235
|
var t = this.getCenter(), e = this.getZoom();
|
|
2243
|
-
|
|
2236
|
+
Ct(this._proxy, this.project(t, e), this.getZoomScale(e, 1));
|
|
2244
2237
|
},
|
|
2245
2238
|
_catchTransitionEnd: function(t) {
|
|
2246
2239
|
this._animatingZoom && t.propertyName.indexOf("transform") >= 0 && this._onZoomTransitionEnd();
|
|
@@ -2254,8 +2247,8 @@ var re = {}, Hs = {
|
|
|
2254
2247
|
if (i = i || {}, !this._zoomAnimated || i.animate === !1 || this._nothingToAnimate() || Math.abs(e - this._zoom) > this.options.zoomAnimationThreshold)
|
|
2255
2248
|
return !1;
|
|
2256
2249
|
var n = this.getZoomScale(e), o = this._getCenterOffset(t)._divideBy(1 - 1 / n);
|
|
2257
|
-
return i.animate !== !0 && !this.getSize().contains(o) ? !1 : (
|
|
2258
|
-
this._moveStart(!0, !1)._animateZoom(t, e, !0);
|
|
2250
|
+
return i.animate !== !0 && !this.getSize().contains(o) ? !1 : (J(function() {
|
|
2251
|
+
this._moveStart(!0, i.noMoveStart || !1)._animateZoom(t, e, !0);
|
|
2259
2252
|
}, this), !0);
|
|
2260
2253
|
},
|
|
2261
2254
|
_animateZoom: function(t, e, i, n) {
|
|
@@ -2269,10 +2262,10 @@ var re = {}, Hs = {
|
|
|
2269
2262
|
this._animatingZoom && (this._mapPane && F(this._mapPane, "leaflet-zoom-anim"), this._animatingZoom = !1, this._move(this._animateToCenter, this._animateToZoom, void 0, !0), this._tempFireZoomEvent && this.fire("zoom"), delete this._tempFireZoomEvent, this.fire("move"), this._moveEnd(!0));
|
|
2270
2263
|
}
|
|
2271
2264
|
});
|
|
2272
|
-
function
|
|
2273
|
-
return new
|
|
2265
|
+
function Do(t, e) {
|
|
2266
|
+
return new k(t, e);
|
|
2274
2267
|
}
|
|
2275
|
-
var
|
|
2268
|
+
var ht = mt.extend({
|
|
2276
2269
|
// @section
|
|
2277
2270
|
// @aka Control Options
|
|
2278
2271
|
options: {
|
|
@@ -2319,10 +2312,10 @@ var re = {}, Hs = {
|
|
|
2319
2312
|
_refocusOnMap: function(t) {
|
|
2320
2313
|
this._map && t && t.screenX > 0 && t.screenY > 0 && this._map.getContainer().focus();
|
|
2321
2314
|
}
|
|
2322
|
-
}),
|
|
2323
|
-
return new
|
|
2315
|
+
}), ie = function(t) {
|
|
2316
|
+
return new ht(t);
|
|
2324
2317
|
};
|
|
2325
|
-
|
|
2318
|
+
k.include({
|
|
2326
2319
|
// @method addControl(control: Control): this
|
|
2327
2320
|
// Adds the given control to the map
|
|
2328
2321
|
addControl: function(t) {
|
|
@@ -2334,10 +2327,10 @@ var re = {}, Hs = {
|
|
|
2334
2327
|
return t.remove(), this;
|
|
2335
2328
|
},
|
|
2336
2329
|
_initControlPos: function() {
|
|
2337
|
-
var t = this._controlCorners = {}, e = "leaflet-", i = this._controlContainer =
|
|
2330
|
+
var t = this._controlCorners = {}, e = "leaflet-", i = this._controlContainer = E("div", e + "control-container", this._container);
|
|
2338
2331
|
function n(o, s) {
|
|
2339
2332
|
var r = e + o + " " + e + s;
|
|
2340
|
-
t[o + s] =
|
|
2333
|
+
t[o + s] = E("div", r, i);
|
|
2341
2334
|
}
|
|
2342
2335
|
n("top", "left"), n("top", "right"), n("bottom", "left"), n("bottom", "right");
|
|
2343
2336
|
},
|
|
@@ -2347,7 +2340,7 @@ var re = {}, Hs = {
|
|
|
2347
2340
|
D(this._controlContainer), delete this._controlCorners, delete this._controlContainer;
|
|
2348
2341
|
}
|
|
2349
2342
|
});
|
|
2350
|
-
var
|
|
2343
|
+
var hn = ht.extend({
|
|
2351
2344
|
// @section
|
|
2352
2345
|
// @aka Control.Layers options
|
|
2353
2346
|
options: {
|
|
@@ -2376,7 +2369,7 @@ var re = {}, Hs = {
|
|
|
2376
2369
|
}
|
|
2377
2370
|
},
|
|
2378
2371
|
initialize: function(t, e, i) {
|
|
2379
|
-
z(this, i), this._layerControlInputs = [], this._layers = [], this._lastZIndex = 0, this._handlingClick = !1;
|
|
2372
|
+
z(this, i), this._layerControlInputs = [], this._layers = [], this._lastZIndex = 0, this._handlingClick = !1, this._preventClick = !1;
|
|
2380
2373
|
for (var n in t)
|
|
2381
2374
|
this._addLayer(t[n], n);
|
|
2382
2375
|
for (n in e)
|
|
@@ -2389,7 +2382,7 @@ var re = {}, Hs = {
|
|
|
2389
2382
|
return this._container;
|
|
2390
2383
|
},
|
|
2391
2384
|
addTo: function(t) {
|
|
2392
|
-
return
|
|
2385
|
+
return ht.prototype.addTo.call(this, t), this._expandIfNotCollapsed();
|
|
2393
2386
|
},
|
|
2394
2387
|
onRemove: function() {
|
|
2395
2388
|
this._map.off("zoomend", this._checkDisabledLayers, this);
|
|
@@ -2426,23 +2419,23 @@ var re = {}, Hs = {
|
|
|
2426
2419
|
return F(this._container, "leaflet-control-layers-expanded"), this;
|
|
2427
2420
|
},
|
|
2428
2421
|
_initLayout: function() {
|
|
2429
|
-
var t = "leaflet-control-layers", e = this._container =
|
|
2430
|
-
e.setAttribute("aria-haspopup", !0),
|
|
2431
|
-
var n = this._section =
|
|
2422
|
+
var t = "leaflet-control-layers", e = this._container = E("div", t), i = this.options.collapsed;
|
|
2423
|
+
e.setAttribute("aria-haspopup", !0), ee(e), li(e);
|
|
2424
|
+
var n = this._section = E("section", t + "-list");
|
|
2432
2425
|
i && (this._map.on("click", this.collapse, this), T(e, {
|
|
2433
2426
|
mouseenter: this._expandSafely,
|
|
2434
2427
|
mouseleave: this.collapse
|
|
2435
2428
|
}, this));
|
|
2436
|
-
var o = this._layersLink =
|
|
2429
|
+
var o = this._layersLink = E("a", t + "-toggle", e);
|
|
2437
2430
|
o.href = "#", o.title = "Layers", o.setAttribute("role", "button"), T(o, {
|
|
2438
2431
|
keydown: function(s) {
|
|
2439
2432
|
s.keyCode === 13 && this._expandSafely();
|
|
2440
2433
|
},
|
|
2441
2434
|
// Certain screen readers intercept the key event and instead send a click event
|
|
2442
2435
|
click: function(s) {
|
|
2443
|
-
|
|
2436
|
+
q(s), this._expandSafely();
|
|
2444
2437
|
}
|
|
2445
|
-
}, this), i || this.expand(), this._baseLayersList =
|
|
2438
|
+
}, this), i || this.expand(), this._baseLayersList = E("div", t + "-base", n), this._separator = E("div", t + "-separator", n), this._overlaysList = E("div", t + "-overlays", n), e.appendChild(n);
|
|
2446
2439
|
},
|
|
2447
2440
|
_getLayer: function(t) {
|
|
2448
2441
|
for (var e = 0; e < this._layers.length; e++)
|
|
@@ -2461,7 +2454,7 @@ var re = {}, Hs = {
|
|
|
2461
2454
|
_update: function() {
|
|
2462
2455
|
if (!this._container)
|
|
2463
2456
|
return this;
|
|
2464
|
-
|
|
2457
|
+
de(this._baseLayersList), de(this._overlaysList), this._layerControlInputs = [];
|
|
2465
2458
|
var t, e, i, n, o = 0;
|
|
2466
2459
|
for (i = 0; i < this._layers.length; i++)
|
|
2467
2460
|
n = this._layers[i], this._addItem(n), e = e || n.overlay, t = t || !n.overlay, o += n.overlay ? 0 : 1;
|
|
@@ -2488,15 +2481,17 @@ var re = {}, Hs = {
|
|
|
2488
2481
|
return r.appendChild(e), this._checkDisabledLayers(), e;
|
|
2489
2482
|
},
|
|
2490
2483
|
_onInputClick: function() {
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2484
|
+
if (!this._preventClick) {
|
|
2485
|
+
var t = this._layerControlInputs, e, i, n = [], o = [];
|
|
2486
|
+
this._handlingClick = !0;
|
|
2487
|
+
for (var s = t.length - 1; s >= 0; s--)
|
|
2488
|
+
e = t[s], i = this._getLayer(e.layerId).layer, e.checked ? n.push(i) : e.checked || o.push(i);
|
|
2489
|
+
for (s = 0; s < o.length; s++)
|
|
2490
|
+
this._map.hasLayer(o[s]) && this._map.removeLayer(o[s]);
|
|
2491
|
+
for (s = 0; s < n.length; s++)
|
|
2492
|
+
this._map.hasLayer(n[s]) || this._map.addLayer(n[s]);
|
|
2493
|
+
this._handlingClick = !1, this._refocusOnMap();
|
|
2494
|
+
}
|
|
2500
2495
|
},
|
|
2501
2496
|
_checkDisabledLayers: function() {
|
|
2502
2497
|
for (var t = this._layerControlInputs, e, i, n = this._map.getZoom(), o = t.length - 1; o >= 0; o--)
|
|
@@ -2507,13 +2502,15 @@ var re = {}, Hs = {
|
|
|
2507
2502
|
},
|
|
2508
2503
|
_expandSafely: function() {
|
|
2509
2504
|
var t = this._section;
|
|
2510
|
-
T(t, "click",
|
|
2511
|
-
|
|
2505
|
+
this._preventClick = !0, T(t, "click", q), this.expand();
|
|
2506
|
+
var e = this;
|
|
2507
|
+
setTimeout(function() {
|
|
2508
|
+
B(t, "click", q), e._preventClick = !1;
|
|
2512
2509
|
});
|
|
2513
2510
|
}
|
|
2514
|
-
}),
|
|
2515
|
-
return new
|
|
2516
|
-
}, di =
|
|
2511
|
+
}), Ho = function(t, e, i) {
|
|
2512
|
+
return new hn(t, e, i);
|
|
2513
|
+
}, di = ht.extend({
|
|
2517
2514
|
// @section
|
|
2518
2515
|
// @aka Control.Zoom options
|
|
2519
2516
|
options: {
|
|
@@ -2532,7 +2529,7 @@ var re = {}, Hs = {
|
|
|
2532
2529
|
zoomOutTitle: "Zoom out"
|
|
2533
2530
|
},
|
|
2534
2531
|
onAdd: function(t) {
|
|
2535
|
-
var e = "leaflet-control-zoom", i =
|
|
2532
|
+
var e = "leaflet-control-zoom", i = E("div", e + " leaflet-bar"), n = this.options;
|
|
2536
2533
|
return this._zoomInButton = this._createButton(
|
|
2537
2534
|
n.zoomInText,
|
|
2538
2535
|
n.zoomInTitle,
|
|
@@ -2563,22 +2560,22 @@ var re = {}, Hs = {
|
|
|
2563
2560
|
!this._disabled && this._map._zoom > this._map.getMinZoom() && this._map.zoomOut(this._map.options.zoomDelta * (t.shiftKey ? 3 : 1));
|
|
2564
2561
|
},
|
|
2565
2562
|
_createButton: function(t, e, i, n, o) {
|
|
2566
|
-
var s =
|
|
2567
|
-
return s.innerHTML = t, s.href = "#", s.title = e, s.setAttribute("role", "button"), s.setAttribute("aria-label", e),
|
|
2563
|
+
var s = E("a", i, n);
|
|
2564
|
+
return s.innerHTML = t, s.href = "#", s.title = e, s.setAttribute("role", "button"), s.setAttribute("aria-label", e), ee(s), T(s, "click", Ot), T(s, "click", o, this), T(s, "click", this._refocusOnMap, this), s;
|
|
2568
2565
|
},
|
|
2569
2566
|
_updateDisabled: function() {
|
|
2570
2567
|
var t = this._map, e = "leaflet-disabled";
|
|
2571
2568
|
F(this._zoomInButton, e), F(this._zoomOutButton, e), this._zoomInButton.setAttribute("aria-disabled", "false"), this._zoomOutButton.setAttribute("aria-disabled", "false"), (this._disabled || t._zoom === t.getMinZoom()) && (M(this._zoomOutButton, e), this._zoomOutButton.setAttribute("aria-disabled", "true")), (this._disabled || t._zoom === t.getMaxZoom()) && (M(this._zoomInButton, e), this._zoomInButton.setAttribute("aria-disabled", "true"));
|
|
2572
2569
|
}
|
|
2573
2570
|
});
|
|
2574
|
-
|
|
2571
|
+
k.mergeOptions({
|
|
2575
2572
|
zoomControl: !0
|
|
2576
|
-
}),
|
|
2573
|
+
}), k.addInitHook(function() {
|
|
2577
2574
|
this.options.zoomControl && (this.zoomControl = new di(), this.addControl(this.zoomControl));
|
|
2578
2575
|
});
|
|
2579
|
-
var
|
|
2576
|
+
var Fo = function(t) {
|
|
2580
2577
|
return new di(t);
|
|
2581
|
-
},
|
|
2578
|
+
}, un = ht.extend({
|
|
2582
2579
|
// @section
|
|
2583
2580
|
// @aka Control.Scale options
|
|
2584
2581
|
options: {
|
|
@@ -2596,14 +2593,14 @@ var re = {}, Hs = {
|
|
|
2596
2593
|
// If `true`, the control is updated on [`moveend`](#map-moveend), otherwise it's always up-to-date (updated on [`move`](#map-move)).
|
|
2597
2594
|
},
|
|
2598
2595
|
onAdd: function(t) {
|
|
2599
|
-
var e = "leaflet-control-scale", i =
|
|
2596
|
+
var e = "leaflet-control-scale", i = E("div", e), n = this.options;
|
|
2600
2597
|
return this._addScales(n, e + "-line", i), t.on(n.updateWhenIdle ? "moveend" : "move", this._update, this), t.whenReady(this._update, this), i;
|
|
2601
2598
|
},
|
|
2602
2599
|
onRemove: function(t) {
|
|
2603
2600
|
t.off(this.options.updateWhenIdle ? "moveend" : "move", this._update, this);
|
|
2604
2601
|
},
|
|
2605
2602
|
_addScales: function(t, e, i) {
|
|
2606
|
-
t.metric && (this._mScale =
|
|
2603
|
+
t.metric && (this._mScale = E("div", e, i)), t.imperial && (this._iScale = E("div", e, i));
|
|
2607
2604
|
},
|
|
2608
2605
|
_update: function() {
|
|
2609
2606
|
var t = this._map, e = t.getSize().y / 2, i = t.distance(
|
|
@@ -2630,22 +2627,22 @@ var re = {}, Hs = {
|
|
|
2630
2627
|
var e = Math.pow(10, (Math.floor(t) + "").length - 1), i = t / e;
|
|
2631
2628
|
return i = i >= 10 ? 10 : i >= 5 ? 5 : i >= 3 ? 3 : i >= 2 ? 2 : 1, e * i;
|
|
2632
2629
|
}
|
|
2633
|
-
}),
|
|
2634
|
-
return new
|
|
2635
|
-
},
|
|
2630
|
+
}), Wo = function(t) {
|
|
2631
|
+
return new un(t);
|
|
2632
|
+
}, Uo = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>', fi = ht.extend({
|
|
2636
2633
|
// @section
|
|
2637
2634
|
// @aka Control.Attribution options
|
|
2638
2635
|
options: {
|
|
2639
2636
|
position: "bottomright",
|
|
2640
2637
|
// @option prefix: String|false = 'Leaflet'
|
|
2641
2638
|
// The HTML text shown before the attributions. Pass `false` to disable.
|
|
2642
|
-
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (p.inlineSvg ?
|
|
2639
|
+
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (p.inlineSvg ? Uo + " " : "") + "Leaflet</a>"
|
|
2643
2640
|
},
|
|
2644
2641
|
initialize: function(t) {
|
|
2645
2642
|
z(this, t), this._attributions = {};
|
|
2646
2643
|
},
|
|
2647
2644
|
onAdd: function(t) {
|
|
2648
|
-
t.attributionControl = this, this._container =
|
|
2645
|
+
t.attributionControl = this, this._container = E("div", "leaflet-control-attribution"), ee(this._container);
|
|
2649
2646
|
for (var e in t._layers)
|
|
2650
2647
|
t._layers[e].getAttribution && this.addAttribution(t._layers[e].getAttribution());
|
|
2651
2648
|
return this._update(), t.on("layeradd", this._addAttribution, this), this._container;
|
|
@@ -2683,16 +2680,16 @@ var re = {}, Hs = {
|
|
|
2683
2680
|
}
|
|
2684
2681
|
}
|
|
2685
2682
|
});
|
|
2686
|
-
|
|
2683
|
+
k.mergeOptions({
|
|
2687
2684
|
attributionControl: !0
|
|
2688
|
-
}),
|
|
2685
|
+
}), k.addInitHook(function() {
|
|
2689
2686
|
this.options.attributionControl && new fi().addTo(this);
|
|
2690
2687
|
});
|
|
2691
|
-
var
|
|
2688
|
+
var jo = function(t) {
|
|
2692
2689
|
return new fi(t);
|
|
2693
2690
|
};
|
|
2694
|
-
|
|
2695
|
-
var
|
|
2691
|
+
ht.Layers = hn, ht.Zoom = di, ht.Scale = un, ht.Attribution = fi, ie.layers = Ho, ie.zoom = Fo, ie.scale = Wo, ie.attribution = jo;
|
|
2692
|
+
var dt = mt.extend({
|
|
2696
2693
|
initialize: function(t) {
|
|
2697
2694
|
this._map = t;
|
|
2698
2695
|
},
|
|
@@ -2718,10 +2715,10 @@ var re = {}, Hs = {
|
|
|
2718
2715
|
// @method removeHooks()
|
|
2719
2716
|
// Called when the handler is disabled, should remove the event hooks added previously.
|
|
2720
2717
|
});
|
|
2721
|
-
|
|
2718
|
+
dt.addTo = function(t, e) {
|
|
2722
2719
|
return t.addHandler(e, this), this;
|
|
2723
2720
|
};
|
|
2724
|
-
var
|
|
2721
|
+
var Go = { Events: et }, ln = p.touch ? "touchstart mousedown" : "mousedown", bt = qt.extend({
|
|
2725
2722
|
options: {
|
|
2726
2723
|
// @section
|
|
2727
2724
|
// @aka Draggable options
|
|
@@ -2738,23 +2735,23 @@ var re = {}, Hs = {
|
|
|
2738
2735
|
// @method enable()
|
|
2739
2736
|
// Enables the dragging ability
|
|
2740
2737
|
enable: function() {
|
|
2741
|
-
this._enabled || (T(this._dragStartTarget,
|
|
2738
|
+
this._enabled || (T(this._dragStartTarget, ln, this._onDown, this), this._enabled = !0);
|
|
2742
2739
|
},
|
|
2743
2740
|
// @method disable()
|
|
2744
2741
|
// Disables the dragging ability
|
|
2745
2742
|
disable: function() {
|
|
2746
|
-
this._enabled && (
|
|
2743
|
+
this._enabled && (bt._dragging === this && this.finishDrag(!0), B(this._dragStartTarget, ln, this._onDown, this), this._enabled = !1, this._moved = !1);
|
|
2747
2744
|
},
|
|
2748
2745
|
_onDown: function(t) {
|
|
2749
2746
|
if (this._enabled && (this._moved = !1, !Qe(this._element, "leaflet-zoom-anim"))) {
|
|
2750
2747
|
if (t.touches && t.touches.length !== 1) {
|
|
2751
|
-
|
|
2748
|
+
bt._dragging === this && this.finishDrag();
|
|
2752
2749
|
return;
|
|
2753
2750
|
}
|
|
2754
|
-
if (!(
|
|
2751
|
+
if (!(bt._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (bt._dragging = this, this._preventOutline && si(this._element), ii(), $t(), !this._moving)) {
|
|
2755
2752
|
this.fire("down");
|
|
2756
|
-
var e = t.touches ? t.touches[0] : t, i =
|
|
2757
|
-
this._startPoint = new b(e.clientX, e.clientY), this._startPos =
|
|
2753
|
+
var e = t.touches ? t.touches[0] : t, i = en(this._element);
|
|
2754
|
+
this._startPoint = new b(e.clientX, e.clientY), this._startPos = St(this._element), this._parentScale = ri(i);
|
|
2758
2755
|
var n = t.type === "mousedown";
|
|
2759
2756
|
T(document, n ? "mousemove" : "touchmove", this._onMove, this), T(document, n ? "mouseup" : "touchend touchcancel", this._onUp, this);
|
|
2760
2757
|
}
|
|
@@ -2767,161 +2764,180 @@ var re = {}, Hs = {
|
|
|
2767
2764
|
return;
|
|
2768
2765
|
}
|
|
2769
2766
|
var e = t.touches && t.touches.length === 1 ? t.touches[0] : t, i = new b(e.clientX, e.clientY)._subtract(this._startPoint);
|
|
2770
|
-
!i.x && !i.y || Math.abs(i.x) + Math.abs(i.y) < this.options.clickTolerance || (i.x /= this._parentScale.x, i.y /= this._parentScale.y,
|
|
2767
|
+
!i.x && !i.y || Math.abs(i.x) + Math.abs(i.y) < this.options.clickTolerance || (i.x /= this._parentScale.x, i.y /= this._parentScale.y, q(t), this._moved || (this.fire("dragstart"), this._moved = !0, M(document.body, "leaflet-dragging"), this._lastTarget = t.target || t.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), M(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(i), this._moving = !0, this._lastEvent = t, this._updatePosition());
|
|
2771
2768
|
}
|
|
2772
2769
|
},
|
|
2773
2770
|
_updatePosition: function() {
|
|
2774
2771
|
var t = { originalEvent: this._lastEvent };
|
|
2775
|
-
this.fire("predrag", t),
|
|
2772
|
+
this.fire("predrag", t), U(this._element, this._newPos), this.fire("drag", t);
|
|
2776
2773
|
},
|
|
2777
2774
|
_onUp: function() {
|
|
2778
2775
|
this._enabled && this.finishDrag();
|
|
2779
2776
|
},
|
|
2780
2777
|
finishDrag: function(t) {
|
|
2781
|
-
F(document.body, "leaflet-dragging"), this._lastTarget && (F(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), B(document, "mousemove touchmove", this._onMove, this), B(document, "mouseup touchend touchcancel", this._onUp, this), ni(),
|
|
2778
|
+
F(document.body, "leaflet-dragging"), this._lastTarget && (F(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), B(document, "mousemove touchmove", this._onMove, this), B(document, "mouseup touchend touchcancel", this._onUp, this), ni(), Qt();
|
|
2779
|
+
var e = this._moved && this._moving;
|
|
2780
|
+
this._moving = !1, bt._dragging = !1, e && this.fire("dragend", {
|
|
2782
2781
|
noInertia: t,
|
|
2783
2782
|
distance: this._newPos.distanceTo(this._startPos)
|
|
2784
|
-
})
|
|
2783
|
+
});
|
|
2785
2784
|
}
|
|
2786
2785
|
});
|
|
2787
|
-
function
|
|
2786
|
+
function cn(t, e, i) {
|
|
2787
|
+
var n, o = [1, 4, 2, 8], s, r, h, u, l, _, y, C;
|
|
2788
|
+
for (s = 0, _ = t.length; s < _; s++)
|
|
2789
|
+
t[s]._code = kt(t[s], e);
|
|
2790
|
+
for (h = 0; h < 4; h++) {
|
|
2791
|
+
for (y = o[h], n = [], s = 0, _ = t.length, r = _ - 1; s < _; r = s++)
|
|
2792
|
+
u = t[s], l = t[r], u._code & y ? l._code & y || (C = ve(l, u, y, e, i), C._code = kt(C, e), n.push(C)) : (l._code & y && (C = ve(l, u, y, e, i), C._code = kt(C, e), n.push(C)), n.push(u));
|
|
2793
|
+
t = n;
|
|
2794
|
+
}
|
|
2795
|
+
return t;
|
|
2796
|
+
}
|
|
2797
|
+
function dn(t, e) {
|
|
2798
|
+
var i, n, o, s, r, h, u, l, _;
|
|
2799
|
+
if (!t || t.length === 0)
|
|
2800
|
+
throw new Error("latlngs not passed");
|
|
2801
|
+
st(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
2802
|
+
var y = O([0, 0]), C = W(t), Y = C.getNorthWest().distanceTo(C.getSouthWest()) * C.getNorthEast().distanceTo(C.getNorthWest());
|
|
2803
|
+
Y < 1700 && (y = _i(t));
|
|
2804
|
+
var V = t.length, rt = [];
|
|
2805
|
+
for (i = 0; i < V; i++) {
|
|
2806
|
+
var Q = O(t[i]);
|
|
2807
|
+
rt.push(e.project(O([Q.lat - y.lat, Q.lng - y.lng])));
|
|
2808
|
+
}
|
|
2809
|
+
for (h = u = l = 0, i = 0, n = V - 1; i < V; n = i++)
|
|
2810
|
+
o = rt[i], s = rt[n], r = o.y * s.x - s.y * o.x, u += (o.x + s.x) * r, l += (o.y + s.y) * r, h += r * 3;
|
|
2811
|
+
h === 0 ? _ = rt[0] : _ = [u / h, l / h];
|
|
2812
|
+
var Wt = e.unproject(P(_));
|
|
2813
|
+
return O([Wt.lat + y.lat, Wt.lng + y.lng]);
|
|
2814
|
+
}
|
|
2815
|
+
function _i(t) {
|
|
2816
|
+
for (var e = 0, i = 0, n = 0, o = 0; o < t.length; o++) {
|
|
2817
|
+
var s = O(t[o]);
|
|
2818
|
+
e += s.lat, i += s.lng, n++;
|
|
2819
|
+
}
|
|
2820
|
+
return O([e / n, i / n]);
|
|
2821
|
+
}
|
|
2822
|
+
var Vo = {
|
|
2823
|
+
__proto__: null,
|
|
2824
|
+
clipPolygon: cn,
|
|
2825
|
+
polygonCenter: dn,
|
|
2826
|
+
centroid: _i
|
|
2827
|
+
};
|
|
2828
|
+
function fn(t, e) {
|
|
2788
2829
|
if (!e || !t.length)
|
|
2789
2830
|
return t.slice();
|
|
2790
2831
|
var i = e * e;
|
|
2791
|
-
return t =
|
|
2832
|
+
return t = Yo(t, i), t = Ko(t, i), t;
|
|
2792
2833
|
}
|
|
2793
|
-
function
|
|
2794
|
-
return Math.sqrt(
|
|
2834
|
+
function _n(t, e, i) {
|
|
2835
|
+
return Math.sqrt(ne(t, e, i, !0));
|
|
2795
2836
|
}
|
|
2796
|
-
function
|
|
2797
|
-
return
|
|
2837
|
+
function qo(t, e, i) {
|
|
2838
|
+
return ne(t, e, i);
|
|
2798
2839
|
}
|
|
2799
|
-
function
|
|
2840
|
+
function Ko(t, e) {
|
|
2800
2841
|
var i = t.length, n = typeof Uint8Array != void 0 + "" ? Uint8Array : Array, o = new n(i);
|
|
2801
|
-
o[0] = o[i - 1] = 1,
|
|
2842
|
+
o[0] = o[i - 1] = 1, mi(t, o, e, 0, i - 1);
|
|
2802
2843
|
var s, r = [];
|
|
2803
2844
|
for (s = 0; s < i; s++)
|
|
2804
2845
|
o[s] && r.push(t[s]);
|
|
2805
2846
|
return r;
|
|
2806
2847
|
}
|
|
2807
|
-
function
|
|
2848
|
+
function mi(t, e, i, n, o) {
|
|
2808
2849
|
var s = 0, r, h, u;
|
|
2809
2850
|
for (h = n + 1; h <= o - 1; h++)
|
|
2810
|
-
u =
|
|
2811
|
-
s > i && (e[r] = 1,
|
|
2851
|
+
u = ne(t[h], t[n], t[o], !0), u > s && (r = h, s = u);
|
|
2852
|
+
s > i && (e[r] = 1, mi(t, e, i, n, r), mi(t, e, i, r, o));
|
|
2812
2853
|
}
|
|
2813
|
-
function
|
|
2854
|
+
function Yo(t, e) {
|
|
2814
2855
|
for (var i = [t[0]], n = 1, o = 0, s = t.length; n < s; n++)
|
|
2815
|
-
|
|
2856
|
+
Jo(t[n], t[o]) > e && (i.push(t[n]), o = n);
|
|
2816
2857
|
return o < s - 1 && i.push(t[s - 1]), i;
|
|
2817
2858
|
}
|
|
2818
|
-
var
|
|
2819
|
-
function
|
|
2820
|
-
var s = n ?
|
|
2821
|
-
for (
|
|
2859
|
+
var mn;
|
|
2860
|
+
function pn(t, e, i, n, o) {
|
|
2861
|
+
var s = n ? mn : kt(t, i), r = kt(e, i), h, u, l;
|
|
2862
|
+
for (mn = r; ; ) {
|
|
2822
2863
|
if (!(s | r))
|
|
2823
2864
|
return [t, e];
|
|
2824
2865
|
if (s & r)
|
|
2825
2866
|
return !1;
|
|
2826
|
-
h = s || r, u =
|
|
2867
|
+
h = s || r, u = ve(t, e, h, i, o), l = kt(u, i), h === s ? (t = u, s = l) : (e = u, r = l);
|
|
2827
2868
|
}
|
|
2828
2869
|
}
|
|
2829
|
-
function
|
|
2830
|
-
var s = e.x - t.x, r = e.y - t.y, h = n.min, u = n.max,
|
|
2831
|
-
return i & 8 ? (
|
|
2870
|
+
function ve(t, e, i, n, o) {
|
|
2871
|
+
var s = e.x - t.x, r = e.y - t.y, h = n.min, u = n.max, l, _;
|
|
2872
|
+
return i & 8 ? (l = t.x + s * (u.y - t.y) / r, _ = u.y) : i & 4 ? (l = t.x + s * (h.y - t.y) / r, _ = h.y) : i & 2 ? (l = u.x, _ = t.y + r * (u.x - t.x) / s) : i & 1 && (l = h.x, _ = t.y + r * (h.x - t.x) / s), new b(l, _, o);
|
|
2832
2873
|
}
|
|
2833
|
-
function
|
|
2874
|
+
function kt(t, e) {
|
|
2834
2875
|
var i = 0;
|
|
2835
2876
|
return t.x < e.min.x ? i |= 1 : t.x > e.max.x && (i |= 2), t.y < e.min.y ? i |= 4 : t.y > e.max.y && (i |= 8), i;
|
|
2836
2877
|
}
|
|
2837
|
-
function
|
|
2878
|
+
function Jo(t, e) {
|
|
2838
2879
|
var i = e.x - t.x, n = e.y - t.y;
|
|
2839
2880
|
return i * i + n * n;
|
|
2840
2881
|
}
|
|
2841
|
-
function
|
|
2842
|
-
var o = e.x, s = e.y, r = i.x - o, h = i.y - s, u = r * r + h * h,
|
|
2843
|
-
return u > 0 && (
|
|
2882
|
+
function ne(t, e, i, n) {
|
|
2883
|
+
var o = e.x, s = e.y, r = i.x - o, h = i.y - s, u = r * r + h * h, l;
|
|
2884
|
+
return u > 0 && (l = ((t.x - o) * r + (t.y - s) * h) / u, l > 1 ? (o = i.x, s = i.y) : l > 0 && (o += r * l, s += h * l)), r = t.x - o, h = t.y - s, n ? r * r + h * h : new b(o, s);
|
|
2844
2885
|
}
|
|
2845
|
-
function
|
|
2846
|
-
return !
|
|
2886
|
+
function st(t) {
|
|
2887
|
+
return !tt(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
|
|
2847
2888
|
}
|
|
2848
|
-
function
|
|
2849
|
-
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),
|
|
2889
|
+
function vn(t) {
|
|
2890
|
+
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), st(t);
|
|
2850
2891
|
}
|
|
2851
|
-
function
|
|
2852
|
-
var i, n, o, s, r, h, u,
|
|
2892
|
+
function gn(t, e) {
|
|
2893
|
+
var i, n, o, s, r, h, u, l;
|
|
2853
2894
|
if (!t || t.length === 0)
|
|
2854
2895
|
throw new Error("latlngs not passed");
|
|
2855
|
-
|
|
2856
|
-
var _ = [];
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2896
|
+
st(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
2897
|
+
var _ = O([0, 0]), y = W(t), C = y.getNorthWest().distanceTo(y.getSouthWest()) * y.getNorthEast().distanceTo(y.getNorthWest());
|
|
2898
|
+
C < 1700 && (_ = _i(t));
|
|
2899
|
+
var Y = t.length, V = [];
|
|
2900
|
+
for (i = 0; i < Y; i++) {
|
|
2901
|
+
var rt = O(t[i]);
|
|
2902
|
+
V.push(e.project(O([rt.lat - _.lat, rt.lng - _.lng])));
|
|
2903
|
+
}
|
|
2904
|
+
for (i = 0, n = 0; i < Y - 1; i++)
|
|
2905
|
+
n += V[i].distanceTo(V[i + 1]) / 2;
|
|
2862
2906
|
if (n === 0)
|
|
2863
|
-
|
|
2907
|
+
l = V[0];
|
|
2864
2908
|
else
|
|
2865
|
-
for (i = 0, s = 0; i <
|
|
2866
|
-
if (r =
|
|
2867
|
-
u = (s - n) / o,
|
|
2909
|
+
for (i = 0, s = 0; i < Y - 1; i++)
|
|
2910
|
+
if (r = V[i], h = V[i + 1], o = r.distanceTo(h), s += o, s > n) {
|
|
2911
|
+
u = (s - n) / o, l = [
|
|
2868
2912
|
h.x - u * (h.x - r.x),
|
|
2869
2913
|
h.y - u * (h.y - r.y)
|
|
2870
2914
|
];
|
|
2871
2915
|
break;
|
|
2872
2916
|
}
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
var Ko = {
|
|
2876
|
-
__proto__: null,
|
|
2877
|
-
simplify: ln,
|
|
2878
|
-
pointToSegmentDistance: cn,
|
|
2879
|
-
closestPointOnSegment: jo,
|
|
2880
|
-
clipSegment: fn,
|
|
2881
|
-
_getEdgeIntersection: pe,
|
|
2882
|
-
_getBitCode: zt,
|
|
2883
|
-
_sqClosestPointOnSegment: ee,
|
|
2884
|
-
isFlat: it,
|
|
2885
|
-
_flat: _n,
|
|
2886
|
-
polylineCenter: mn
|
|
2887
|
-
};
|
|
2888
|
-
function pn(t, e, i) {
|
|
2889
|
-
var n, o = [1, 4, 2, 8], s, r, h, u, c, _, y, S;
|
|
2890
|
-
for (s = 0, _ = t.length; s < _; s++)
|
|
2891
|
-
t[s]._code = zt(t[s], e);
|
|
2892
|
-
for (h = 0; h < 4; h++) {
|
|
2893
|
-
for (y = o[h], n = [], s = 0, _ = t.length, r = _ - 1; s < _; r = s++)
|
|
2894
|
-
u = t[s], c = t[r], u._code & y ? c._code & y || (S = pe(c, u, y, e, i), S._code = zt(S, e), n.push(S)) : (c._code & y && (S = pe(c, u, y, e, i), S._code = zt(S, e), n.push(S)), n.push(u));
|
|
2895
|
-
t = n;
|
|
2896
|
-
}
|
|
2897
|
-
return t;
|
|
2917
|
+
var Q = e.unproject(P(l));
|
|
2918
|
+
return O([Q.lat + _.lat, Q.lng + _.lng]);
|
|
2898
2919
|
}
|
|
2899
|
-
|
|
2900
|
-
var i, n, o, s, r, h, u, c, _;
|
|
2901
|
-
if (!t || t.length === 0)
|
|
2902
|
-
throw new Error("latlngs not passed");
|
|
2903
|
-
it(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
2904
|
-
var y = [];
|
|
2905
|
-
for (var S in t)
|
|
2906
|
-
y.push(e.project(Z(t[S])));
|
|
2907
|
-
var nt = y.length;
|
|
2908
|
-
for (h = u = c = 0, i = 0, n = nt - 1; i < nt; n = i++)
|
|
2909
|
-
o = y[i], s = y[n], r = o.y * s.x - s.y * o.x, u += (o.x + s.x) * r, c += (o.y + s.y) * r, h += r * 3;
|
|
2910
|
-
return h === 0 ? _ = y[0] : _ = [u / h, c / h], e.unproject(P(_));
|
|
2911
|
-
}
|
|
2912
|
-
var Yo = {
|
|
2920
|
+
var Xo = {
|
|
2913
2921
|
__proto__: null,
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2922
|
+
simplify: fn,
|
|
2923
|
+
pointToSegmentDistance: _n,
|
|
2924
|
+
closestPointOnSegment: qo,
|
|
2925
|
+
clipSegment: pn,
|
|
2926
|
+
_getEdgeIntersection: ve,
|
|
2927
|
+
_getBitCode: kt,
|
|
2928
|
+
_sqClosestPointOnSegment: ne,
|
|
2929
|
+
isFlat: st,
|
|
2930
|
+
_flat: vn,
|
|
2931
|
+
polylineCenter: gn
|
|
2932
|
+
}, pi = {
|
|
2917
2933
|
project: function(t) {
|
|
2918
2934
|
return new b(t.lng, t.lat);
|
|
2919
2935
|
},
|
|
2920
2936
|
unproject: function(t) {
|
|
2921
|
-
return new
|
|
2937
|
+
return new Z(t.y, t.x);
|
|
2922
2938
|
},
|
|
2923
2939
|
bounds: new N([-180, -90], [180, 90])
|
|
2924
|
-
},
|
|
2940
|
+
}, vi = {
|
|
2925
2941
|
R: 6378137,
|
|
2926
2942
|
R_MINOR: 6356752314245179e-9,
|
|
2927
2943
|
bounds: new N([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
|
|
@@ -2930,29 +2946,29 @@ var re = {}, Hs = {
|
|
|
2930
2946
|
return n = -i * Math.log(Math.max(h, 1e-10)), new b(t.lng * e * i, n);
|
|
2931
2947
|
},
|
|
2932
2948
|
unproject: function(t) {
|
|
2933
|
-
for (var e = 180 / Math.PI, i = this.R, n = this.R_MINOR / i, o = Math.sqrt(1 - n * n), s = Math.exp(-t.y / i), r = Math.PI / 2 - 2 * Math.atan(s), h = 0, u = 0.1,
|
|
2934
|
-
|
|
2935
|
-
return new
|
|
2949
|
+
for (var e = 180 / Math.PI, i = this.R, n = this.R_MINOR / i, o = Math.sqrt(1 - n * n), s = Math.exp(-t.y / i), r = Math.PI / 2 - 2 * Math.atan(s), h = 0, u = 0.1, l; h < 15 && Math.abs(u) > 1e-7; h++)
|
|
2950
|
+
l = o * Math.sin(r), l = Math.pow((1 - l) / (1 + l), o / 2), u = Math.PI / 2 - 2 * Math.atan(s * l) - r, r += u;
|
|
2951
|
+
return new Z(r * e, t.x * e / i);
|
|
2936
2952
|
}
|
|
2937
|
-
},
|
|
2953
|
+
}, $o = {
|
|
2938
2954
|
__proto__: null,
|
|
2939
|
-
LonLat:
|
|
2940
|
-
Mercator:
|
|
2955
|
+
LonLat: pi,
|
|
2956
|
+
Mercator: vi,
|
|
2941
2957
|
SphericalMercator: Ue
|
|
2942
|
-
},
|
|
2958
|
+
}, Qo = m({}, xt, {
|
|
2943
2959
|
code: "EPSG:3395",
|
|
2944
|
-
projection:
|
|
2960
|
+
projection: vi,
|
|
2945
2961
|
transformation: function() {
|
|
2946
|
-
var t = 0.5 / (Math.PI *
|
|
2947
|
-
return
|
|
2962
|
+
var t = 0.5 / (Math.PI * vi.R);
|
|
2963
|
+
return Kt(t, 0.5, -t, 0.5);
|
|
2948
2964
|
}()
|
|
2949
|
-
}),
|
|
2965
|
+
}), yn = m({}, xt, {
|
|
2950
2966
|
code: "EPSG:4326",
|
|
2951
|
-
projection:
|
|
2952
|
-
transformation:
|
|
2953
|
-
}),
|
|
2954
|
-
projection:
|
|
2955
|
-
transformation:
|
|
2967
|
+
projection: pi,
|
|
2968
|
+
transformation: Kt(1 / 180, 1, -1 / 180, 0.5)
|
|
2969
|
+
}), ts = m({}, pt, {
|
|
2970
|
+
projection: pi,
|
|
2971
|
+
transformation: Kt(1, 0, -1, 0),
|
|
2956
2972
|
scale: function(t) {
|
|
2957
2973
|
return Math.pow(2, t);
|
|
2958
2974
|
},
|
|
@@ -2965,8 +2981,8 @@ var re = {}, Hs = {
|
|
|
2965
2981
|
},
|
|
2966
2982
|
infinite: !0
|
|
2967
2983
|
});
|
|
2968
|
-
|
|
2969
|
-
var
|
|
2984
|
+
pt.Earth = xt, pt.EPSG3395 = Qo, pt.EPSG3857 = Ge, pt.EPSG900913 = so, pt.EPSG4326 = yn, pt.Simple = ts;
|
|
2985
|
+
var ut = qt.extend({
|
|
2970
2986
|
// Classes extending `L.Layer` will inherit the following options:
|
|
2971
2987
|
options: {
|
|
2972
2988
|
// @option pane: String = 'overlayPane'
|
|
@@ -3029,7 +3045,7 @@ var re = {}, Hs = {
|
|
|
3029
3045
|
}
|
|
3030
3046
|
}
|
|
3031
3047
|
});
|
|
3032
|
-
|
|
3048
|
+
k.include({
|
|
3033
3049
|
// @method addLayer(layer: Layer): this
|
|
3034
3050
|
// Adds the given layer to the map
|
|
3035
3051
|
addLayer: function(t) {
|
|
@@ -3063,7 +3079,7 @@ var re = {}, Hs = {
|
|
|
3063
3079
|
return this;
|
|
3064
3080
|
},
|
|
3065
3081
|
_addLayers: function(t) {
|
|
3066
|
-
t = t ?
|
|
3082
|
+
t = t ? tt(t) ? t : [t] : [];
|
|
3067
3083
|
for (var e = 0, i = t.length; e < i; e++)
|
|
3068
3084
|
this.addLayer(t[e]);
|
|
3069
3085
|
},
|
|
@@ -3083,7 +3099,7 @@ var re = {}, Hs = {
|
|
|
3083
3099
|
this._layersMaxZoom = e === -1 / 0 ? void 0 : e, this._layersMinZoom = t === 1 / 0 ? void 0 : t, i !== 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);
|
|
3084
3100
|
}
|
|
3085
3101
|
});
|
|
3086
|
-
var
|
|
3102
|
+
var Rt = ut.extend({
|
|
3087
3103
|
initialize: function(t, e) {
|
|
3088
3104
|
z(this, e), this._layers = {};
|
|
3089
3105
|
var i, n;
|
|
@@ -3169,14 +3185,14 @@ var re = {}, Hs = {
|
|
|
3169
3185
|
getLayerId: function(t) {
|
|
3170
3186
|
return g(t);
|
|
3171
3187
|
}
|
|
3172
|
-
}),
|
|
3173
|
-
return new
|
|
3174
|
-
},
|
|
3188
|
+
}), es = function(t, e) {
|
|
3189
|
+
return new Rt(t, e);
|
|
3190
|
+
}, vt = Rt.extend({
|
|
3175
3191
|
addLayer: function(t) {
|
|
3176
|
-
return this.hasLayer(t) ? this : (t.addEventParent(this),
|
|
3192
|
+
return this.hasLayer(t) ? this : (t.addEventParent(this), Rt.prototype.addLayer.call(this, t), this.fire("layeradd", { layer: t }));
|
|
3177
3193
|
},
|
|
3178
3194
|
removeLayer: function(t) {
|
|
3179
|
-
return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(this),
|
|
3195
|
+
return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(this), Rt.prototype.removeLayer.call(this, t), this.fire("layerremove", { layer: t })) : this;
|
|
3180
3196
|
},
|
|
3181
3197
|
// @method setStyle(style: Path options): this
|
|
3182
3198
|
// Sets the given path options to each layer of the group that has a `setStyle` method.
|
|
@@ -3196,16 +3212,16 @@ var re = {}, Hs = {
|
|
|
3196
3212
|
// @method getBounds(): LatLngBounds
|
|
3197
3213
|
// Returns the LatLngBounds of the Feature Group (created from bounds and coordinates of its children).
|
|
3198
3214
|
getBounds: function() {
|
|
3199
|
-
var t = new
|
|
3215
|
+
var t = new $();
|
|
3200
3216
|
for (var e in this._layers) {
|
|
3201
3217
|
var i = this._layers[e];
|
|
3202
3218
|
t.extend(i.getBounds ? i.getBounds() : i.getLatLng());
|
|
3203
3219
|
}
|
|
3204
3220
|
return t;
|
|
3205
3221
|
}
|
|
3206
|
-
}),
|
|
3207
|
-
return new
|
|
3208
|
-
},
|
|
3222
|
+
}), is = function(t, e) {
|
|
3223
|
+
return new vt(t, e);
|
|
3224
|
+
}, Nt = mt.extend({
|
|
3209
3225
|
/* @section
|
|
3210
3226
|
* @aka Icon options
|
|
3211
3227
|
*
|
|
@@ -3291,10 +3307,10 @@ var re = {}, Hs = {
|
|
|
3291
3307
|
return p.retina && this.options[t + "RetinaUrl"] || this.options[t + "Url"];
|
|
3292
3308
|
}
|
|
3293
3309
|
});
|
|
3294
|
-
function
|
|
3295
|
-
return new
|
|
3310
|
+
function ns(t) {
|
|
3311
|
+
return new Nt(t);
|
|
3296
3312
|
}
|
|
3297
|
-
var
|
|
3313
|
+
var oe = Nt.extend({
|
|
3298
3314
|
options: {
|
|
3299
3315
|
iconUrl: "marker-icon.png",
|
|
3300
3316
|
iconRetinaUrl: "marker-icon-2x.png",
|
|
@@ -3306,7 +3322,7 @@ var re = {}, Hs = {
|
|
|
3306
3322
|
shadowSize: [41, 41]
|
|
3307
3323
|
},
|
|
3308
3324
|
_getIconUrl: function(t) {
|
|
3309
|
-
return typeof
|
|
3325
|
+
return typeof oe.imagePath != "string" && (oe.imagePath = this._detectIconPath()), (this.options.imagePath || oe.imagePath) + Nt.prototype._getIconUrl.call(this, t);
|
|
3310
3326
|
},
|
|
3311
3327
|
_stripUrl: function(t) {
|
|
3312
3328
|
var e = function(i, n, o) {
|
|
@@ -3316,19 +3332,19 @@ var re = {}, Hs = {
|
|
|
3316
3332
|
return t = e(t, /^url\((['"])?(.+)\1\)$/, 2), t && e(t, /^(.*)marker-icon\.png$/, 1);
|
|
3317
3333
|
},
|
|
3318
3334
|
_detectIconPath: function() {
|
|
3319
|
-
var t =
|
|
3335
|
+
var t = E("div", "leaflet-default-icon-path", document.body), e = Xt(t, "background-image") || Xt(t, "backgroundImage");
|
|
3320
3336
|
if (document.body.removeChild(t), e = this._stripUrl(e), e)
|
|
3321
3337
|
return e;
|
|
3322
3338
|
var i = document.querySelector('link[href$="leaflet.css"]');
|
|
3323
3339
|
return i ? i.href.substring(0, i.href.length - 11 - 1) : "";
|
|
3324
3340
|
}
|
|
3325
|
-
}),
|
|
3341
|
+
}), wn = dt.extend({
|
|
3326
3342
|
initialize: function(t) {
|
|
3327
3343
|
this._marker = t;
|
|
3328
3344
|
},
|
|
3329
3345
|
addHooks: function() {
|
|
3330
3346
|
var t = this._marker._icon;
|
|
3331
|
-
this._draggable || (this._draggable = new
|
|
3347
|
+
this._draggable || (this._draggable = new bt(t, t, !0)), this._draggable.on({
|
|
3332
3348
|
dragstart: this._onDragStart,
|
|
3333
3349
|
predrag: this._onPreDrag,
|
|
3334
3350
|
drag: this._onDrag,
|
|
@@ -3347,32 +3363,32 @@ var re = {}, Hs = {
|
|
|
3347
3363
|
return this._draggable && this._draggable._moved;
|
|
3348
3364
|
},
|
|
3349
3365
|
_adjustPan: function(t) {
|
|
3350
|
-
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding, s =
|
|
3366
|
+
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding, s = St(e._icon), r = i.getPixelBounds(), h = i.getPixelOrigin(), u = X(
|
|
3351
3367
|
r.min._subtract(h).add(o),
|
|
3352
3368
|
r.max._subtract(h).subtract(o)
|
|
3353
3369
|
);
|
|
3354
3370
|
if (!u.contains(s)) {
|
|
3355
|
-
var
|
|
3371
|
+
var l = P(
|
|
3356
3372
|
(Math.max(u.max.x, s.x) - u.max.x) / (r.max.x - u.max.x) - (Math.min(u.min.x, s.x) - u.min.x) / (r.min.x - u.min.x),
|
|
3357
3373
|
(Math.max(u.max.y, s.y) - u.max.y) / (r.max.y - u.max.y) - (Math.min(u.min.y, s.y) - u.min.y) / (r.min.y - u.min.y)
|
|
3358
3374
|
).multiplyBy(n);
|
|
3359
|
-
i.panBy(
|
|
3375
|
+
i.panBy(l, { animate: !1 }), this._draggable._newPos._add(l), this._draggable._startPos._add(l), U(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = J(this._adjustPan.bind(this, t));
|
|
3360
3376
|
}
|
|
3361
3377
|
},
|
|
3362
3378
|
_onDragStart: function() {
|
|
3363
3379
|
this._oldLatLng = this._marker.getLatLng(), this._marker.closePopup && this._marker.closePopup(), this._marker.fire("movestart").fire("dragstart");
|
|
3364
3380
|
},
|
|
3365
3381
|
_onPreDrag: function(t) {
|
|
3366
|
-
this._marker.options.autoPan && (
|
|
3382
|
+
this._marker.options.autoPan && (nt(this._panRequest), this._panRequest = J(this._adjustPan.bind(this, t)));
|
|
3367
3383
|
},
|
|
3368
3384
|
_onDrag: function(t) {
|
|
3369
|
-
var e = this._marker, i = e._shadow, n =
|
|
3370
|
-
i &&
|
|
3385
|
+
var e = this._marker, i = e._shadow, n = St(e._icon), o = e._map.layerPointToLatLng(n);
|
|
3386
|
+
i && U(i, n), e._latlng = o, t.latlng = o, t.oldLatLng = this._oldLatLng, e.fire("move", t).fire("drag", t);
|
|
3371
3387
|
},
|
|
3372
3388
|
_onDragEnd: function(t) {
|
|
3373
|
-
|
|
3389
|
+
nt(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t);
|
|
3374
3390
|
}
|
|
3375
|
-
}),
|
|
3391
|
+
}), ge = ut.extend({
|
|
3376
3392
|
// @section
|
|
3377
3393
|
// @aka Marker options
|
|
3378
3394
|
options: {
|
|
@@ -3380,7 +3396,7 @@ var re = {}, Hs = {
|
|
|
3380
3396
|
// Icon instance to use for rendering the marker.
|
|
3381
3397
|
// See [Icon documentation](#L.Icon) for details on how to customize the marker icon.
|
|
3382
3398
|
// If not specified, a common instance of `L.Icon.Default` is used.
|
|
3383
|
-
icon: new
|
|
3399
|
+
icon: new oe(),
|
|
3384
3400
|
// Option inherited from "Interactive layer" abstract class
|
|
3385
3401
|
interactive: !0,
|
|
3386
3402
|
// @option keyboard: Boolean = true
|
|
@@ -3441,7 +3457,7 @@ var re = {}, Hs = {
|
|
|
3441
3457
|
* In addition to [shared layer methods](#Layer) like `addTo()` and `remove()` and [popup methods](#Popup) like bindPopup() you can also use the following methods:
|
|
3442
3458
|
*/
|
|
3443
3459
|
initialize: function(t, e) {
|
|
3444
|
-
z(this, e), this._latlng =
|
|
3460
|
+
z(this, e), this._latlng = O(t);
|
|
3445
3461
|
},
|
|
3446
3462
|
onAdd: function(t) {
|
|
3447
3463
|
this._zoomAnimated = this._zoomAnimated && t.options.markerZoomAnimation, this._zoomAnimated && t.on("zoomanim", this._animateZoom, this), this._initIcon(), this.update();
|
|
@@ -3464,7 +3480,7 @@ var re = {}, Hs = {
|
|
|
3464
3480
|
// Changes the marker position to the given point.
|
|
3465
3481
|
setLatLng: function(t) {
|
|
3466
3482
|
var e = this._latlng;
|
|
3467
|
-
return this._latlng =
|
|
3483
|
+
return this._latlng = O(t), this.update(), this.fire("move", { oldLatLng: e, latlng: this._latlng });
|
|
3468
3484
|
},
|
|
3469
3485
|
// @method setZIndexOffset(offset: Number): this
|
|
3470
3486
|
// Changes the [zIndex offset](#marker-zindexoffset) of the marker.
|
|
@@ -3510,7 +3526,7 @@ var re = {}, Hs = {
|
|
|
3510
3526
|
this._shadow && D(this._shadow), this._shadow = null;
|
|
3511
3527
|
},
|
|
3512
3528
|
_setPos: function(t) {
|
|
3513
|
-
this._icon &&
|
|
3529
|
+
this._icon && U(this._icon, t), this._shadow && U(this._shadow, t), this._zIndex = t.y + this.options.zIndexOffset, this._resetZIndex();
|
|
3514
3530
|
},
|
|
3515
3531
|
_updateZIndex: function(t) {
|
|
3516
3532
|
this._icon && (this._icon.style.zIndex = this._zIndex + t);
|
|
@@ -3520,9 +3536,9 @@ var re = {}, Hs = {
|
|
|
3520
3536
|
this._setPos(e);
|
|
3521
3537
|
},
|
|
3522
3538
|
_initInteraction: function() {
|
|
3523
|
-
if (this.options.interactive && (M(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon),
|
|
3539
|
+
if (this.options.interactive && (M(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon), wn)) {
|
|
3524
3540
|
var t = this.options.draggable;
|
|
3525
|
-
this.dragging && (t = this.dragging.enabled(), this.dragging.disable()), this.dragging = new
|
|
3541
|
+
this.dragging && (t = this.dragging.enabled(), this.dragging.disable()), this.dragging = new wn(this), t && this.dragging.enable();
|
|
3526
3542
|
}
|
|
3527
3543
|
},
|
|
3528
3544
|
// @method setOpacity(opacity: Number): this
|
|
@@ -3532,7 +3548,7 @@ var re = {}, Hs = {
|
|
|
3532
3548
|
},
|
|
3533
3549
|
_updateOpacity: function() {
|
|
3534
3550
|
var t = this.options.opacity;
|
|
3535
|
-
this._icon &&
|
|
3551
|
+
this._icon && ot(this._icon, t), this._shadow && ot(this._shadow, t);
|
|
3536
3552
|
},
|
|
3537
3553
|
_bringToFront: function() {
|
|
3538
3554
|
this._updateZIndex(this.options.riseOffset);
|
|
@@ -3557,10 +3573,10 @@ var re = {}, Hs = {
|
|
|
3557
3573
|
return this.options.icon.options.tooltipAnchor;
|
|
3558
3574
|
}
|
|
3559
3575
|
});
|
|
3560
|
-
function
|
|
3561
|
-
return new
|
|
3576
|
+
function os(t, e) {
|
|
3577
|
+
return new ge(t, e);
|
|
3562
3578
|
}
|
|
3563
|
-
var
|
|
3579
|
+
var Tt = ut.extend({
|
|
3564
3580
|
// @section
|
|
3565
3581
|
// @aka Path options
|
|
3566
3582
|
options: {
|
|
@@ -3646,7 +3662,7 @@ var re = {}, Hs = {
|
|
|
3646
3662
|
_clickTolerance: function() {
|
|
3647
3663
|
return (this.options.stroke ? this.options.weight / 2 : 0) + (this._renderer.options.tolerance || 0);
|
|
3648
3664
|
}
|
|
3649
|
-
}),
|
|
3665
|
+
}), ye = Tt.extend({
|
|
3650
3666
|
// @section
|
|
3651
3667
|
// @aka CircleMarker options
|
|
3652
3668
|
options: {
|
|
@@ -3656,13 +3672,13 @@ var re = {}, Hs = {
|
|
|
3656
3672
|
radius: 10
|
|
3657
3673
|
},
|
|
3658
3674
|
initialize: function(t, e) {
|
|
3659
|
-
z(this, e), this._latlng =
|
|
3675
|
+
z(this, e), this._latlng = O(t), this._radius = this.options.radius;
|
|
3660
3676
|
},
|
|
3661
3677
|
// @method setLatLng(latLng: LatLng): this
|
|
3662
3678
|
// Sets the position of a circle marker to a new location.
|
|
3663
3679
|
setLatLng: function(t) {
|
|
3664
3680
|
var e = this._latlng;
|
|
3665
|
-
return this._latlng =
|
|
3681
|
+
return this._latlng = O(t), this.redraw(), this.fire("move", { oldLatLng: e, latlng: this._latlng });
|
|
3666
3682
|
},
|
|
3667
3683
|
// @method getLatLng(): LatLng
|
|
3668
3684
|
// Returns the current geographical position of the circle marker
|
|
@@ -3681,7 +3697,7 @@ var re = {}, Hs = {
|
|
|
3681
3697
|
},
|
|
3682
3698
|
setStyle: function(t) {
|
|
3683
3699
|
var e = t && t.radius || this._radius;
|
|
3684
|
-
return
|
|
3700
|
+
return Tt.prototype.setStyle.call(this, t), this.setRadius(e), this;
|
|
3685
3701
|
},
|
|
3686
3702
|
_project: function() {
|
|
3687
3703
|
this._point = this._map.latLngToLayerPoint(this._latlng), this._updateBounds();
|
|
@@ -3704,12 +3720,12 @@ var re = {}, Hs = {
|
|
|
3704
3720
|
return t.distanceTo(this._point) <= this._radius + this._clickTolerance();
|
|
3705
3721
|
}
|
|
3706
3722
|
});
|
|
3707
|
-
function
|
|
3708
|
-
return new
|
|
3723
|
+
function ss(t, e) {
|
|
3724
|
+
return new ye(t, e);
|
|
3709
3725
|
}
|
|
3710
|
-
var
|
|
3726
|
+
var gi = ye.extend({
|
|
3711
3727
|
initialize: function(t, e, i) {
|
|
3712
|
-
if (typeof e == "number" && (e = m({}, i, { radius: e })), z(this, e), this._latlng =
|
|
3728
|
+
if (typeof e == "number" && (e = m({}, i, { radius: e })), z(this, e), this._latlng = O(t), isNaN(this.options.radius))
|
|
3713
3729
|
throw new Error("Circle radius cannot be NaN");
|
|
3714
3730
|
this._mRadius = this.options.radius;
|
|
3715
3731
|
},
|
|
@@ -3727,17 +3743,17 @@ var re = {}, Hs = {
|
|
|
3727
3743
|
// Returns the `LatLngBounds` of the path.
|
|
3728
3744
|
getBounds: function() {
|
|
3729
3745
|
var t = [this._radius, this._radiusY || this._radius];
|
|
3730
|
-
return new
|
|
3746
|
+
return new $(
|
|
3731
3747
|
this._map.layerPointToLatLng(this._point.subtract(t)),
|
|
3732
3748
|
this._map.layerPointToLatLng(this._point.add(t))
|
|
3733
3749
|
);
|
|
3734
3750
|
},
|
|
3735
|
-
setStyle:
|
|
3751
|
+
setStyle: Tt.prototype.setStyle,
|
|
3736
3752
|
_project: function() {
|
|
3737
3753
|
var t = this._latlng.lng, e = this._latlng.lat, i = this._map, n = i.options.crs;
|
|
3738
|
-
if (n.distance ===
|
|
3739
|
-
var o = Math.PI / 180, s = this._mRadius /
|
|
3740
|
-
(isNaN(_) || _ === 0) && (_ = s / Math.cos(Math.PI / 180 * e)), this._point = u.subtract(i.getPixelOrigin()), this._radius = isNaN(_) ? 0 : u.x - i.project([
|
|
3754
|
+
if (n.distance === xt.distance) {
|
|
3755
|
+
var o = Math.PI / 180, s = this._mRadius / xt.R / o, r = i.project([e + s, t]), h = i.project([e - s, t]), u = r.add(h).divideBy(2), l = i.unproject(u).lat, _ = Math.acos((Math.cos(s * o) - Math.sin(e * o) * Math.sin(l * o)) / (Math.cos(e * o) * Math.cos(l * o))) / o;
|
|
3756
|
+
(isNaN(_) || _ === 0) && (_ = s / Math.cos(Math.PI / 180 * e)), this._point = u.subtract(i.getPixelOrigin()), this._radius = isNaN(_) ? 0 : u.x - i.project([l, t - _]).x, this._radiusY = u.y - r.y;
|
|
3741
3757
|
} else {
|
|
3742
3758
|
var y = n.unproject(n.project(this._latlng).subtract([this._mRadius, 0]));
|
|
3743
3759
|
this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(y).x;
|
|
@@ -3745,10 +3761,10 @@ var re = {}, Hs = {
|
|
|
3745
3761
|
this._updateBounds();
|
|
3746
3762
|
}
|
|
3747
3763
|
});
|
|
3748
|
-
function
|
|
3749
|
-
return new
|
|
3764
|
+
function rs(t, e, i) {
|
|
3765
|
+
return new gi(t, e, i);
|
|
3750
3766
|
}
|
|
3751
|
-
var
|
|
3767
|
+
var gt = Tt.extend({
|
|
3752
3768
|
// @section
|
|
3753
3769
|
// @aka Polyline options
|
|
3754
3770
|
options: {
|
|
@@ -3781,9 +3797,9 @@ var re = {}, Hs = {
|
|
|
3781
3797
|
// @method closestLayerPoint(p: Point): Point
|
|
3782
3798
|
// Returns the point closest to `p` on the Polyline.
|
|
3783
3799
|
closestLayerPoint: function(t) {
|
|
3784
|
-
for (var e = 1 / 0, i = null, n =
|
|
3785
|
-
for (var u = this._parts[r],
|
|
3786
|
-
o = u[
|
|
3800
|
+
for (var e = 1 / 0, i = null, n = ne, o, s, r = 0, h = this._parts.length; r < h; r++)
|
|
3801
|
+
for (var u = this._parts[r], l = 1, _ = u.length; l < _; l++) {
|
|
3802
|
+
o = u[l - 1], s = u[l];
|
|
3787
3803
|
var y = n(t, o, s, !0);
|
|
3788
3804
|
y < e && (e = y, i = n(t, o, s));
|
|
3789
3805
|
}
|
|
@@ -3794,7 +3810,7 @@ var re = {}, Hs = {
|
|
|
3794
3810
|
getCenter: function() {
|
|
3795
3811
|
if (!this._map)
|
|
3796
3812
|
throw new Error("Must add layer to map before using getCenter()");
|
|
3797
|
-
return
|
|
3813
|
+
return gn(this._defaultShape(), this._map.options.crs);
|
|
3798
3814
|
},
|
|
3799
3815
|
// @method getBounds(): LatLngBounds
|
|
3800
3816
|
// Returns the `LatLngBounds` of the path.
|
|
@@ -3806,18 +3822,18 @@ var re = {}, Hs = {
|
|
|
3806
3822
|
// the polyline in case of a multi-polyline, but can be overridden by passing
|
|
3807
3823
|
// a specific ring as a LatLng array (that you can earlier access with [`getLatLngs`](#polyline-getlatlngs)).
|
|
3808
3824
|
addLatLng: function(t, e) {
|
|
3809
|
-
return e = e || this._defaultShape(), t =
|
|
3825
|
+
return e = e || this._defaultShape(), t = O(t), e.push(t), this._bounds.extend(t), this.redraw();
|
|
3810
3826
|
},
|
|
3811
3827
|
_setLatLngs: function(t) {
|
|
3812
|
-
this._bounds = new
|
|
3828
|
+
this._bounds = new $(), this._latlngs = this._convertLatLngs(t);
|
|
3813
3829
|
},
|
|
3814
3830
|
_defaultShape: function() {
|
|
3815
|
-
return
|
|
3831
|
+
return st(this._latlngs) ? this._latlngs : this._latlngs[0];
|
|
3816
3832
|
},
|
|
3817
3833
|
// recursively convert latlngs input into actual LatLng instances; calculate bounds along the way
|
|
3818
3834
|
_convertLatLngs: function(t) {
|
|
3819
|
-
for (var e = [], i =
|
|
3820
|
-
i ? (e[n] =
|
|
3835
|
+
for (var e = [], i = st(t), n = 0, o = t.length; n < o; n++)
|
|
3836
|
+
i ? (e[n] = O(t[n]), this._bounds.extend(e[n])) : e[n] = this._convertLatLngs(t[n]);
|
|
3821
3837
|
return e;
|
|
3822
3838
|
},
|
|
3823
3839
|
_project: function() {
|
|
@@ -3833,7 +3849,7 @@ var re = {}, Hs = {
|
|
|
3833
3849
|
},
|
|
3834
3850
|
// recursively turns latlngs into a set of rings with projected coordinates
|
|
3835
3851
|
_projectLatlngs: function(t, e, i) {
|
|
3836
|
-
var n = t[0] instanceof
|
|
3852
|
+
var n = t[0] instanceof Z, o = t.length, s, r;
|
|
3837
3853
|
if (n) {
|
|
3838
3854
|
for (r = [], s = 0; s < o; s++)
|
|
3839
3855
|
r[s] = this._map.latLngToLayerPoint(t[s]), i.extend(r[s]);
|
|
@@ -3853,13 +3869,13 @@ var re = {}, Hs = {
|
|
|
3853
3869
|
var e = this._parts, i, n, o, s, r, h, u;
|
|
3854
3870
|
for (i = 0, o = 0, s = this._rings.length; i < s; i++)
|
|
3855
3871
|
for (u = this._rings[i], n = 0, r = u.length; n < r - 1; n++)
|
|
3856
|
-
h =
|
|
3872
|
+
h = pn(u[n], u[n + 1], t, n, !0), h && (e[o] = e[o] || [], e[o].push(h[0]), (h[1] !== u[n + 1] || n === r - 2) && (e[o].push(h[1]), o++));
|
|
3857
3873
|
}
|
|
3858
3874
|
},
|
|
3859
3875
|
// simplify each clipped part of the polyline for performance
|
|
3860
3876
|
_simplifyPoints: function() {
|
|
3861
3877
|
for (var t = this._parts, e = this.options.smoothFactor, i = 0, n = t.length; i < n; i++)
|
|
3862
|
-
t[i] =
|
|
3878
|
+
t[i] = fn(t[i], e);
|
|
3863
3879
|
},
|
|
3864
3880
|
_update: function() {
|
|
3865
3881
|
this._map && (this._clipPoints(), this._simplifyPoints(), this._updatePath());
|
|
@@ -3874,16 +3890,16 @@ var re = {}, Hs = {
|
|
|
3874
3890
|
return !1;
|
|
3875
3891
|
for (i = 0, s = this._parts.length; i < s; i++)
|
|
3876
3892
|
for (h = this._parts[i], n = 0, r = h.length, o = r - 1; n < r; o = n++)
|
|
3877
|
-
if (!(!e && n === 0) &&
|
|
3893
|
+
if (!(!e && n === 0) && _n(t, h[o], h[n]) <= u)
|
|
3878
3894
|
return !0;
|
|
3879
3895
|
return !1;
|
|
3880
3896
|
}
|
|
3881
3897
|
});
|
|
3882
|
-
function
|
|
3883
|
-
return new
|
|
3898
|
+
function as(t, e) {
|
|
3899
|
+
return new gt(t, e);
|
|
3884
3900
|
}
|
|
3885
|
-
|
|
3886
|
-
var
|
|
3901
|
+
gt._flat = vn;
|
|
3902
|
+
var Dt = gt.extend({
|
|
3887
3903
|
options: {
|
|
3888
3904
|
fill: !0
|
|
3889
3905
|
},
|
|
@@ -3895,17 +3911,17 @@ var re = {}, Hs = {
|
|
|
3895
3911
|
getCenter: function() {
|
|
3896
3912
|
if (!this._map)
|
|
3897
3913
|
throw new Error("Must add layer to map before using getCenter()");
|
|
3898
|
-
return
|
|
3914
|
+
return dn(this._defaultShape(), this._map.options.crs);
|
|
3899
3915
|
},
|
|
3900
3916
|
_convertLatLngs: function(t) {
|
|
3901
|
-
var e =
|
|
3902
|
-
return i >= 2 && e[0] instanceof
|
|
3917
|
+
var e = gt.prototype._convertLatLngs.call(this, t), i = e.length;
|
|
3918
|
+
return i >= 2 && e[0] instanceof Z && e[0].equals(e[i - 1]) && e.pop(), e;
|
|
3903
3919
|
},
|
|
3904
3920
|
_setLatLngs: function(t) {
|
|
3905
|
-
|
|
3921
|
+
gt.prototype._setLatLngs.call(this, t), st(this._latlngs) && (this._latlngs = [this._latlngs]);
|
|
3906
3922
|
},
|
|
3907
3923
|
_defaultShape: function() {
|
|
3908
|
-
return
|
|
3924
|
+
return st(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0];
|
|
3909
3925
|
},
|
|
3910
3926
|
_clipPoints: function() {
|
|
3911
3927
|
var t = this._renderer._bounds, e = this.options.weight, i = new b(e, e);
|
|
@@ -3915,7 +3931,7 @@ var re = {}, Hs = {
|
|
|
3915
3931
|
return;
|
|
3916
3932
|
}
|
|
3917
3933
|
for (var n = 0, o = this._rings.length, s; n < o; n++)
|
|
3918
|
-
s =
|
|
3934
|
+
s = cn(this._rings[n], t, !0), s.length && this._parts.push(s);
|
|
3919
3935
|
}
|
|
3920
3936
|
},
|
|
3921
3937
|
_updatePath: function() {
|
|
@@ -3923,19 +3939,19 @@ var re = {}, Hs = {
|
|
|
3923
3939
|
},
|
|
3924
3940
|
// Needed by the `Canvas` renderer for interactivity
|
|
3925
3941
|
_containsPoint: function(t) {
|
|
3926
|
-
var e = !1, i, n, o, s, r, h, u,
|
|
3942
|
+
var e = !1, i, n, o, s, r, h, u, l;
|
|
3927
3943
|
if (!this._pxBounds || !this._pxBounds.contains(t))
|
|
3928
3944
|
return !1;
|
|
3929
3945
|
for (s = 0, u = this._parts.length; s < u; s++)
|
|
3930
|
-
for (i = this._parts[s], r = 0,
|
|
3946
|
+
for (i = this._parts[s], r = 0, l = i.length, h = l - 1; r < l; h = r++)
|
|
3931
3947
|
n = i[r], o = i[h], n.y > t.y != o.y > t.y && t.x < (o.x - n.x) * (t.y - n.y) / (o.y - n.y) + n.x && (e = !e);
|
|
3932
|
-
return e ||
|
|
3948
|
+
return e || gt.prototype._containsPoint.call(this, t, !0);
|
|
3933
3949
|
}
|
|
3934
3950
|
});
|
|
3935
|
-
function
|
|
3936
|
-
return new
|
|
3951
|
+
function hs(t, e) {
|
|
3952
|
+
return new Dt(t, e);
|
|
3937
3953
|
}
|
|
3938
|
-
var
|
|
3954
|
+
var yt = vt.extend({
|
|
3939
3955
|
/* @section
|
|
3940
3956
|
* @aka GeoJSON options
|
|
3941
3957
|
*
|
|
@@ -3991,7 +4007,7 @@ var re = {}, Hs = {
|
|
|
3991
4007
|
// @method addData( <GeoJSON> data ): this
|
|
3992
4008
|
// Adds a GeoJSON object to the layer.
|
|
3993
4009
|
addData: function(t) {
|
|
3994
|
-
var e =
|
|
4010
|
+
var e = tt(t) ? t : t.features, i, n, o;
|
|
3995
4011
|
if (e) {
|
|
3996
4012
|
for (i = 0, n = e.length; i < n; i++)
|
|
3997
4013
|
o = e[i], (o.geometries || o.geometry || o.features || o.coordinates) && this.addData(o);
|
|
@@ -4000,8 +4016,8 @@ var re = {}, Hs = {
|
|
|
4000
4016
|
var s = this.options;
|
|
4001
4017
|
if (s.filter && !s.filter(t))
|
|
4002
4018
|
return this;
|
|
4003
|
-
var r =
|
|
4004
|
-
return r ? (r.feature =
|
|
4019
|
+
var r = we(t, s);
|
|
4020
|
+
return r ? (r.feature = xe(t), r.defaultOptions = r.options, this.resetStyle(r), s.onEachFeature && s.onEachFeature(t, r), this.addLayer(r)) : this;
|
|
4005
4021
|
},
|
|
4006
4022
|
// @method resetStyle( <Path> layer? ): this
|
|
4007
4023
|
// Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
|
|
@@ -4020,102 +4036,102 @@ var re = {}, Hs = {
|
|
|
4020
4036
|
t.setStyle && (typeof e == "function" && (e = e(t.feature)), t.setStyle(e));
|
|
4021
4037
|
}
|
|
4022
4038
|
});
|
|
4023
|
-
function
|
|
4024
|
-
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [], s = e && e.pointToLayer, r = e && e.coordsToLatLng ||
|
|
4039
|
+
function we(t, e) {
|
|
4040
|
+
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [], s = e && e.pointToLayer, r = e && e.coordsToLatLng || yi, h, u, l, _;
|
|
4025
4041
|
if (!n && !i)
|
|
4026
4042
|
return null;
|
|
4027
4043
|
switch (i.type) {
|
|
4028
4044
|
case "Point":
|
|
4029
|
-
return h = r(n),
|
|
4045
|
+
return h = r(n), Ln(s, t, h, e);
|
|
4030
4046
|
case "MultiPoint":
|
|
4031
|
-
for (
|
|
4032
|
-
h = r(n[
|
|
4033
|
-
return new
|
|
4047
|
+
for (l = 0, _ = n.length; l < _; l++)
|
|
4048
|
+
h = r(n[l]), o.push(Ln(s, t, h, e));
|
|
4049
|
+
return new vt(o);
|
|
4034
4050
|
case "LineString":
|
|
4035
4051
|
case "MultiLineString":
|
|
4036
|
-
return u =
|
|
4052
|
+
return u = Le(n, i.type === "LineString" ? 0 : 1, r), new gt(u, e);
|
|
4037
4053
|
case "Polygon":
|
|
4038
4054
|
case "MultiPolygon":
|
|
4039
|
-
return u =
|
|
4055
|
+
return u = Le(n, i.type === "Polygon" ? 1 : 2, r), new Dt(u, e);
|
|
4040
4056
|
case "GeometryCollection":
|
|
4041
|
-
for (
|
|
4042
|
-
var y =
|
|
4043
|
-
geometry: i.geometries[
|
|
4057
|
+
for (l = 0, _ = i.geometries.length; l < _; l++) {
|
|
4058
|
+
var y = we({
|
|
4059
|
+
geometry: i.geometries[l],
|
|
4044
4060
|
type: "Feature",
|
|
4045
4061
|
properties: t.properties
|
|
4046
4062
|
}, e);
|
|
4047
4063
|
y && o.push(y);
|
|
4048
4064
|
}
|
|
4049
|
-
return new
|
|
4065
|
+
return new vt(o);
|
|
4050
4066
|
case "FeatureCollection":
|
|
4051
|
-
for (
|
|
4052
|
-
var
|
|
4053
|
-
|
|
4067
|
+
for (l = 0, _ = i.features.length; l < _; l++) {
|
|
4068
|
+
var C = we(i.features[l], e);
|
|
4069
|
+
C && o.push(C);
|
|
4054
4070
|
}
|
|
4055
|
-
return new
|
|
4071
|
+
return new vt(o);
|
|
4056
4072
|
default:
|
|
4057
4073
|
throw new Error("Invalid GeoJSON object.");
|
|
4058
4074
|
}
|
|
4059
4075
|
}
|
|
4060
|
-
function
|
|
4061
|
-
return t ? t(e, i) : new
|
|
4076
|
+
function Ln(t, e, i, n) {
|
|
4077
|
+
return t ? t(e, i) : new ge(i, n && n.markersInheritOptions && n);
|
|
4062
4078
|
}
|
|
4063
|
-
function
|
|
4064
|
-
return new
|
|
4079
|
+
function yi(t) {
|
|
4080
|
+
return new Z(t[1], t[0], t[2]);
|
|
4065
4081
|
}
|
|
4066
|
-
function
|
|
4082
|
+
function Le(t, e, i) {
|
|
4067
4083
|
for (var n = [], o = 0, s = t.length, r; o < s; o++)
|
|
4068
|
-
r = e ?
|
|
4084
|
+
r = e ? Le(t[o], e - 1, i) : (i || yi)(t[o]), n.push(r);
|
|
4069
4085
|
return n;
|
|
4070
4086
|
}
|
|
4071
|
-
function
|
|
4072
|
-
return t =
|
|
4087
|
+
function wi(t, e) {
|
|
4088
|
+
return t = O(t), t.alt !== void 0 ? [K(t.lng, e), K(t.lat, e), K(t.alt, e)] : [K(t.lng, e), K(t.lat, e)];
|
|
4073
4089
|
}
|
|
4074
4090
|
function Pe(t, e, i, n) {
|
|
4075
4091
|
for (var o = [], s = 0, r = t.length; s < r; s++)
|
|
4076
|
-
o.push(e ? Pe(t[s],
|
|
4077
|
-
return !e && i && o.push(o[0].slice()), o;
|
|
4092
|
+
o.push(e ? Pe(t[s], st(t[s]) ? 0 : e - 1, i, n) : wi(t[s], n));
|
|
4093
|
+
return !e && i && o.length > 0 && o.push(o[0].slice()), o;
|
|
4078
4094
|
}
|
|
4079
|
-
function
|
|
4080
|
-
return t.feature ? m({}, t.feature, { geometry: e }) :
|
|
4095
|
+
function Ht(t, e) {
|
|
4096
|
+
return t.feature ? m({}, t.feature, { geometry: e }) : xe(e);
|
|
4081
4097
|
}
|
|
4082
|
-
function
|
|
4098
|
+
function xe(t) {
|
|
4083
4099
|
return t.type === "Feature" || t.type === "FeatureCollection" ? t : {
|
|
4084
4100
|
type: "Feature",
|
|
4085
4101
|
properties: {},
|
|
4086
4102
|
geometry: t
|
|
4087
4103
|
};
|
|
4088
4104
|
}
|
|
4089
|
-
var
|
|
4105
|
+
var Li = {
|
|
4090
4106
|
toGeoJSON: function(t) {
|
|
4091
|
-
return
|
|
4107
|
+
return Ht(this, {
|
|
4092
4108
|
type: "Point",
|
|
4093
|
-
coordinates:
|
|
4109
|
+
coordinates: wi(this.getLatLng(), t)
|
|
4094
4110
|
});
|
|
4095
4111
|
}
|
|
4096
4112
|
};
|
|
4097
|
-
|
|
4113
|
+
ge.include(Li), gi.include(Li), ye.include(Li), gt.include({
|
|
4098
4114
|
toGeoJSON: function(t) {
|
|
4099
|
-
var e = !
|
|
4100
|
-
return
|
|
4115
|
+
var e = !st(this._latlngs), i = Pe(this._latlngs, e ? 1 : 0, !1, t);
|
|
4116
|
+
return Ht(this, {
|
|
4101
4117
|
type: (e ? "Multi" : "") + "LineString",
|
|
4102
4118
|
coordinates: i
|
|
4103
4119
|
});
|
|
4104
4120
|
}
|
|
4105
|
-
}),
|
|
4121
|
+
}), Dt.include({
|
|
4106
4122
|
toGeoJSON: function(t) {
|
|
4107
|
-
var e = !
|
|
4108
|
-
return e || (n = [n]),
|
|
4123
|
+
var e = !st(this._latlngs), i = e && !st(this._latlngs[0]), n = Pe(this._latlngs, i ? 2 : e ? 1 : 0, !0, t);
|
|
4124
|
+
return e || (n = [n]), Ht(this, {
|
|
4109
4125
|
type: (i ? "Multi" : "") + "Polygon",
|
|
4110
4126
|
coordinates: n
|
|
4111
4127
|
});
|
|
4112
4128
|
}
|
|
4113
|
-
}),
|
|
4129
|
+
}), Rt.include({
|
|
4114
4130
|
toMultiPoint: function(t) {
|
|
4115
4131
|
var e = [];
|
|
4116
4132
|
return this.eachLayer(function(i) {
|
|
4117
4133
|
e.push(i.toGeoJSON(t).geometry.coordinates);
|
|
4118
|
-
}),
|
|
4134
|
+
}), Ht(this, {
|
|
4119
4135
|
type: "MultiPoint",
|
|
4120
4136
|
coordinates: e
|
|
4121
4137
|
});
|
|
@@ -4134,11 +4150,11 @@ var re = {}, Hs = {
|
|
|
4134
4150
|
if (i)
|
|
4135
4151
|
n.push(s.geometry);
|
|
4136
4152
|
else {
|
|
4137
|
-
var r =
|
|
4153
|
+
var r = xe(s);
|
|
4138
4154
|
r.type === "FeatureCollection" ? n.push.apply(n, r.features) : n.push(r);
|
|
4139
4155
|
}
|
|
4140
4156
|
}
|
|
4141
|
-
}), i ?
|
|
4157
|
+
}), i ? Ht(this, {
|
|
4142
4158
|
geometries: n,
|
|
4143
4159
|
type: "GeometryCollection"
|
|
4144
4160
|
}) : {
|
|
@@ -4148,9 +4164,9 @@ var re = {}, Hs = {
|
|
|
4148
4164
|
}
|
|
4149
4165
|
});
|
|
4150
4166
|
function Pn(t, e) {
|
|
4151
|
-
return new
|
|
4167
|
+
return new yt(t, e);
|
|
4152
4168
|
}
|
|
4153
|
-
var
|
|
4169
|
+
var us = Pn, be = ut.extend({
|
|
4154
4170
|
// @section
|
|
4155
4171
|
// @aka ImageOverlay options
|
|
4156
4172
|
options: {
|
|
@@ -4179,7 +4195,7 @@ var re = {}, Hs = {
|
|
|
4179
4195
|
className: ""
|
|
4180
4196
|
},
|
|
4181
4197
|
initialize: function(t, e, i) {
|
|
4182
|
-
this._url = t, this._bounds =
|
|
4198
|
+
this._url = t, this._bounds = W(e), z(this, i);
|
|
4183
4199
|
},
|
|
4184
4200
|
onAdd: function() {
|
|
4185
4201
|
this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (M(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset();
|
|
@@ -4198,12 +4214,12 @@ var re = {}, Hs = {
|
|
|
4198
4214
|
// @method bringToFront(): this
|
|
4199
4215
|
// Brings the layer to the top of all overlays.
|
|
4200
4216
|
bringToFront: function() {
|
|
4201
|
-
return this._map &&
|
|
4217
|
+
return this._map && At(this._image), this;
|
|
4202
4218
|
},
|
|
4203
4219
|
// @method bringToBack(): this
|
|
4204
4220
|
// Brings the layer to the bottom of all overlays.
|
|
4205
4221
|
bringToBack: function() {
|
|
4206
|
-
return this._map &&
|
|
4222
|
+
return this._map && It(this._image), this;
|
|
4207
4223
|
},
|
|
4208
4224
|
// @method setUrl(url: String): this
|
|
4209
4225
|
// Changes the URL of the image.
|
|
@@ -4213,7 +4229,7 @@ var re = {}, Hs = {
|
|
|
4213
4229
|
// @method setBounds(bounds: LatLngBounds): this
|
|
4214
4230
|
// Update the bounds that this ImageOverlay covers
|
|
4215
4231
|
setBounds: function(t) {
|
|
4216
|
-
return this._bounds =
|
|
4232
|
+
return this._bounds = W(t), this._map && this._reset(), this;
|
|
4217
4233
|
},
|
|
4218
4234
|
getEvents: function() {
|
|
4219
4235
|
var t = {
|
|
@@ -4239,8 +4255,8 @@ var re = {}, Hs = {
|
|
|
4239
4255
|
return this._image;
|
|
4240
4256
|
},
|
|
4241
4257
|
_initImage: function() {
|
|
4242
|
-
var t = this._url.tagName === "IMG", e = this._image = t ? this._url :
|
|
4243
|
-
if (M(e, "leaflet-image-layer"), this._zoomAnimated && M(e, "leaflet-zoom-animated"), this.options.className && M(e, this.options.className), e.onselectstart =
|
|
4258
|
+
var t = this._url.tagName === "IMG", e = this._image = t ? this._url : E("img");
|
|
4259
|
+
if (M(e, "leaflet-image-layer"), this._zoomAnimated && M(e, "leaflet-zoom-animated"), this.options.className && M(e, this.options.className), e.onselectstart = S, e.onmousemove = S, e.onload = v(this.fire, this, "load"), e.onerror = v(this._overlayOnError, this, "error"), (this.options.crossOrigin || this.options.crossOrigin === "") && (e.crossOrigin = this.options.crossOrigin === !0 ? "" : this.options.crossOrigin), this.options.zIndex && this._updateZIndex(), t) {
|
|
4244
4260
|
this._url = e.src;
|
|
4245
4261
|
return;
|
|
4246
4262
|
}
|
|
@@ -4248,17 +4264,17 @@ var re = {}, Hs = {
|
|
|
4248
4264
|
},
|
|
4249
4265
|
_animateZoom: function(t) {
|
|
4250
4266
|
var e = this._map.getZoomScale(t.zoom), i = this._map._latLngBoundsToNewLayerBounds(this._bounds, t.zoom, t.center).min;
|
|
4251
|
-
|
|
4267
|
+
Ct(this._image, i, e);
|
|
4252
4268
|
},
|
|
4253
4269
|
_reset: function() {
|
|
4254
4270
|
var t = this._image, e = new N(
|
|
4255
4271
|
this._map.latLngToLayerPoint(this._bounds.getNorthWest()),
|
|
4256
4272
|
this._map.latLngToLayerPoint(this._bounds.getSouthEast())
|
|
4257
4273
|
), i = e.getSize();
|
|
4258
|
-
|
|
4274
|
+
U(t, e.min), t.style.width = i.x + "px", t.style.height = i.y + "px";
|
|
4259
4275
|
},
|
|
4260
4276
|
_updateOpacity: function() {
|
|
4261
|
-
|
|
4277
|
+
ot(this._image, this.options.opacity);
|
|
4262
4278
|
},
|
|
4263
4279
|
_updateZIndex: function() {
|
|
4264
4280
|
this._image && this.options.zIndex !== void 0 && this.options.zIndex !== null && (this._image.style.zIndex = this.options.zIndex);
|
|
@@ -4273,9 +4289,9 @@ var re = {}, Hs = {
|
|
|
4273
4289
|
getCenter: function() {
|
|
4274
4290
|
return this._bounds.getCenter();
|
|
4275
4291
|
}
|
|
4276
|
-
}),
|
|
4277
|
-
return new
|
|
4278
|
-
},
|
|
4292
|
+
}), ls = function(t, e, i) {
|
|
4293
|
+
return new be(t, e, i);
|
|
4294
|
+
}, xn = be.extend({
|
|
4279
4295
|
// @section
|
|
4280
4296
|
// @aka VideoOverlay options
|
|
4281
4297
|
options: {
|
|
@@ -4298,16 +4314,16 @@ var re = {}, Hs = {
|
|
|
4298
4314
|
playsInline: !0
|
|
4299
4315
|
},
|
|
4300
4316
|
_initImage: function() {
|
|
4301
|
-
var t = this._url.tagName === "VIDEO", e = this._image = t ? this._url :
|
|
4302
|
-
if (M(e, "leaflet-image-layer"), this._zoomAnimated && M(e, "leaflet-zoom-animated"), this.options.className && M(e, this.options.className), e.onselectstart =
|
|
4317
|
+
var t = this._url.tagName === "VIDEO", e = this._image = t ? this._url : E("video");
|
|
4318
|
+
if (M(e, "leaflet-image-layer"), this._zoomAnimated && M(e, "leaflet-zoom-animated"), this.options.className && M(e, this.options.className), e.onselectstart = S, e.onmousemove = S, e.onloadeddata = v(this.fire, this, "load"), t) {
|
|
4303
4319
|
for (var i = e.getElementsByTagName("source"), n = [], o = 0; o < i.length; o++)
|
|
4304
4320
|
n.push(i[o].src);
|
|
4305
4321
|
this._url = i.length > 0 ? n : [e.src];
|
|
4306
4322
|
return;
|
|
4307
4323
|
}
|
|
4308
|
-
|
|
4324
|
+
tt(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && Object.prototype.hasOwnProperty.call(e.style, "objectFit") && (e.style.objectFit = "fill"), e.autoplay = !!this.options.autoplay, e.loop = !!this.options.loop, e.muted = !!this.options.muted, e.playsInline = !!this.options.playsInline;
|
|
4309
4325
|
for (var s = 0; s < this._url.length; s++) {
|
|
4310
|
-
var r =
|
|
4326
|
+
var r = E("source");
|
|
4311
4327
|
r.src = this._url[s], e.appendChild(r);
|
|
4312
4328
|
}
|
|
4313
4329
|
}
|
|
@@ -4315,22 +4331,22 @@ var re = {}, Hs = {
|
|
|
4315
4331
|
// Returns the instance of [`HTMLVideoElement`](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
|
|
4316
4332
|
// used by this overlay.
|
|
4317
4333
|
});
|
|
4318
|
-
function
|
|
4319
|
-
return new
|
|
4334
|
+
function cs(t, e, i) {
|
|
4335
|
+
return new xn(t, e, i);
|
|
4320
4336
|
}
|
|
4321
|
-
var
|
|
4337
|
+
var bn = be.extend({
|
|
4322
4338
|
_initImage: function() {
|
|
4323
4339
|
var t = this._image = this._url;
|
|
4324
|
-
M(t, "leaflet-image-layer"), this._zoomAnimated && M(t, "leaflet-zoom-animated"), this.options.className && M(t, this.options.className), t.onselectstart =
|
|
4340
|
+
M(t, "leaflet-image-layer"), this._zoomAnimated && M(t, "leaflet-zoom-animated"), this.options.className && M(t, this.options.className), t.onselectstart = S, t.onmousemove = S;
|
|
4325
4341
|
}
|
|
4326
4342
|
// @method getElement(): SVGElement
|
|
4327
4343
|
// Returns the instance of [`SVGElement`](https://developer.mozilla.org/docs/Web/API/SVGElement)
|
|
4328
4344
|
// used by this overlay.
|
|
4329
4345
|
});
|
|
4330
|
-
function
|
|
4331
|
-
return new
|
|
4346
|
+
function ds(t, e, i) {
|
|
4347
|
+
return new bn(t, e, i);
|
|
4332
4348
|
}
|
|
4333
|
-
var
|
|
4349
|
+
var ft = ut.extend({
|
|
4334
4350
|
// @section
|
|
4335
4351
|
// @aka DivOverlay options
|
|
4336
4352
|
options: {
|
|
@@ -4352,7 +4368,7 @@ var re = {}, Hs = {
|
|
|
4352
4368
|
content: ""
|
|
4353
4369
|
},
|
|
4354
4370
|
initialize: function(t, e) {
|
|
4355
|
-
t && (t instanceof
|
|
4371
|
+
t && (t instanceof Z || tt(t)) ? (this._latlng = O(t), z(this, e)) : (z(this, t), this._source = e), this.options.content && (this._content = this.options.content);
|
|
4356
4372
|
},
|
|
4357
4373
|
// @method openOn(map: Map): this
|
|
4358
4374
|
// Adds the overlay to the map.
|
|
@@ -4375,10 +4391,10 @@ var re = {}, Hs = {
|
|
|
4375
4391
|
return this._map ? this.close() : (arguments.length ? this._source = t : t = this._source, this._prepareOpen(), this.openOn(t._map)), this;
|
|
4376
4392
|
},
|
|
4377
4393
|
onAdd: function(t) {
|
|
4378
|
-
this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated &&
|
|
4394
|
+
this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated && ot(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), t._fadeAnimated && ot(this._container, 1), this.bringToFront(), this.options.interactive && (M(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container));
|
|
4379
4395
|
},
|
|
4380
4396
|
onRemove: function(t) {
|
|
4381
|
-
t._fadeAnimated ? (
|
|
4397
|
+
t._fadeAnimated ? (ot(this._container, 0), this._removeTimeout = setTimeout(v(D, void 0, this._container), 200)) : D(this._container), this.options.interactive && (F(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
|
|
4382
4398
|
},
|
|
4383
4399
|
// @namespace DivOverlay
|
|
4384
4400
|
// @method getLatLng: LatLng
|
|
@@ -4389,7 +4405,7 @@ var re = {}, Hs = {
|
|
|
4389
4405
|
// @method setLatLng(latlng: LatLng): this
|
|
4390
4406
|
// Sets the geographical point where the overlay will open.
|
|
4391
4407
|
setLatLng: function(t) {
|
|
4392
|
-
return this._latlng =
|
|
4408
|
+
return this._latlng = O(t), this._map && (this._updatePosition(), this._adjustPan()), this;
|
|
4393
4409
|
},
|
|
4394
4410
|
// @method getContent: String|HTMLElement
|
|
4395
4411
|
// Returns the content of the overlay.
|
|
@@ -4427,19 +4443,19 @@ var re = {}, Hs = {
|
|
|
4427
4443
|
// @method bringToFront: this
|
|
4428
4444
|
// Brings this overlay in front of other overlays (in the same map pane).
|
|
4429
4445
|
bringToFront: function() {
|
|
4430
|
-
return this._map &&
|
|
4446
|
+
return this._map && At(this._container), this;
|
|
4431
4447
|
},
|
|
4432
4448
|
// @method bringToBack: this
|
|
4433
4449
|
// Brings this overlay to the back of other overlays (in the same map pane).
|
|
4434
4450
|
bringToBack: function() {
|
|
4435
|
-
return this._map &&
|
|
4451
|
+
return this._map && It(this._container), this;
|
|
4436
4452
|
},
|
|
4437
4453
|
// prepare bound overlay to open: update latlng pos / content source (for FeatureGroup)
|
|
4438
4454
|
_prepareOpen: function(t) {
|
|
4439
4455
|
var e = this._source;
|
|
4440
4456
|
if (!e._map)
|
|
4441
4457
|
return !1;
|
|
4442
|
-
if (e instanceof
|
|
4458
|
+
if (e instanceof vt) {
|
|
4443
4459
|
e = null;
|
|
4444
4460
|
var i = this._source._layers;
|
|
4445
4461
|
for (var n in i)
|
|
@@ -4478,7 +4494,7 @@ var re = {}, Hs = {
|
|
|
4478
4494
|
_updatePosition: function() {
|
|
4479
4495
|
if (this._map) {
|
|
4480
4496
|
var t = this._map.latLngToLayerPoint(this._latlng), e = P(this.options.offset), i = this._getAnchor();
|
|
4481
|
-
this._zoomAnimated ?
|
|
4497
|
+
this._zoomAnimated ? U(this._container, t.add(i)) : e = e.add(t).add(i);
|
|
4482
4498
|
var n = this._containerBottom = -e.y, o = this._containerLeft = -Math.round(this._containerWidth / 2) + e.x;
|
|
4483
4499
|
this._container.style.bottom = n + "px", this._container.style.left = o + "px";
|
|
4484
4500
|
}
|
|
@@ -4487,18 +4503,18 @@ var re = {}, Hs = {
|
|
|
4487
4503
|
return [0, 0];
|
|
4488
4504
|
}
|
|
4489
4505
|
});
|
|
4490
|
-
|
|
4506
|
+
k.include({
|
|
4491
4507
|
_initOverlay: function(t, e, i, n) {
|
|
4492
4508
|
var o = e;
|
|
4493
4509
|
return o instanceof t || (o = new t(n).setContent(e)), i && o.setLatLng(i), o;
|
|
4494
4510
|
}
|
|
4495
|
-
}),
|
|
4511
|
+
}), ut.include({
|
|
4496
4512
|
_initOverlay: function(t, e, i, n) {
|
|
4497
4513
|
var o = i;
|
|
4498
4514
|
return o instanceof t ? (z(o, n), o._source = this) : (o = e && !n ? e : new t(n, this), o.setContent(i)), o;
|
|
4499
4515
|
}
|
|
4500
4516
|
});
|
|
4501
|
-
var
|
|
4517
|
+
var Te = ft.extend({
|
|
4502
4518
|
// @section
|
|
4503
4519
|
// @aka Popup options
|
|
4504
4520
|
options: {
|
|
@@ -4562,27 +4578,27 @@ var re = {}, Hs = {
|
|
|
4562
4578
|
// Alternative to `map.openPopup(popup)`.
|
|
4563
4579
|
// Adds the popup to the map and closes the previous one.
|
|
4564
4580
|
openOn: function(t) {
|
|
4565
|
-
return t = arguments.length ? t : this._source._map, !t.hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this,
|
|
4581
|
+
return t = arguments.length ? t : this._source._map, !t.hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this, ft.prototype.openOn.call(this, t);
|
|
4566
4582
|
},
|
|
4567
4583
|
onAdd: function(t) {
|
|
4568
|
-
|
|
4584
|
+
ft.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof Tt || this._source.on("preclick", zt));
|
|
4569
4585
|
},
|
|
4570
4586
|
onRemove: function(t) {
|
|
4571
|
-
|
|
4587
|
+
ft.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof Tt || this._source.off("preclick", zt));
|
|
4572
4588
|
},
|
|
4573
4589
|
getEvents: function() {
|
|
4574
|
-
var t =
|
|
4590
|
+
var t = ft.prototype.getEvents.call(this);
|
|
4575
4591
|
return (this.options.closeOnClick !== void 0 ? this.options.closeOnClick : this._map.options.closePopupOnClick) && (t.preclick = this.close), this.options.keepInView && (t.moveend = this._adjustPan), t;
|
|
4576
4592
|
},
|
|
4577
4593
|
_initLayout: function() {
|
|
4578
|
-
var t = "leaflet-popup", e = this._container =
|
|
4594
|
+
var t = "leaflet-popup", e = this._container = E(
|
|
4579
4595
|
"div",
|
|
4580
4596
|
t + " " + (this.options.className || "") + " leaflet-zoom-animated"
|
|
4581
|
-
), i = this._wrapper =
|
|
4582
|
-
if (this._contentNode =
|
|
4583
|
-
var n = this._closeButton =
|
|
4597
|
+
), i = this._wrapper = E("div", t + "-content-wrapper", e);
|
|
4598
|
+
if (this._contentNode = E("div", t + "-content", i), ee(e), li(this._contentNode), T(e, "contextmenu", zt), this._tipContainer = E("div", t + "-tip-container", e), this._tip = E("div", t + "-tip", this._tipContainer), this.options.closeButton) {
|
|
4599
|
+
var n = this._closeButton = E("a", t + "-close-button", e);
|
|
4584
4600
|
n.setAttribute("role", "button"), n.setAttribute("aria-label", "Close popup"), n.href = "#close", n.innerHTML = '<span aria-hidden="true">×</span>', T(n, "click", function(o) {
|
|
4585
|
-
|
|
4601
|
+
q(o), this.close();
|
|
4586
4602
|
}, this);
|
|
4587
4603
|
}
|
|
4588
4604
|
},
|
|
@@ -4596,7 +4612,7 @@ var re = {}, Hs = {
|
|
|
4596
4612
|
},
|
|
4597
4613
|
_animateZoom: function(t) {
|
|
4598
4614
|
var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center), i = this._getAnchor();
|
|
4599
|
-
|
|
4615
|
+
U(this._container, e.add(i));
|
|
4600
4616
|
},
|
|
4601
4617
|
_adjustPan: function() {
|
|
4602
4618
|
if (this.options.autoPan) {
|
|
@@ -4604,41 +4620,41 @@ var re = {}, Hs = {
|
|
|
4604
4620
|
this._autopanning = !1;
|
|
4605
4621
|
return;
|
|
4606
4622
|
}
|
|
4607
|
-
var t = this._map, e = parseInt(
|
|
4608
|
-
o._add(
|
|
4609
|
-
var s = t.layerPointToContainerPoint(o), r = P(this.options.autoPanPadding), h = P(this.options.autoPanPaddingTopLeft || r), u = P(this.options.autoPanPaddingBottomRight || r),
|
|
4610
|
-
s.x + n + u.x >
|
|
4623
|
+
var t = this._map, e = parseInt(Xt(this._container, "marginBottom"), 10) || 0, i = this._container.offsetHeight + e, n = this._containerWidth, o = new b(this._containerLeft, -i - this._containerBottom);
|
|
4624
|
+
o._add(St(this._container));
|
|
4625
|
+
var s = t.layerPointToContainerPoint(o), r = P(this.options.autoPanPadding), h = P(this.options.autoPanPaddingTopLeft || r), u = P(this.options.autoPanPaddingBottomRight || r), l = t.getSize(), _ = 0, y = 0;
|
|
4626
|
+
s.x + n + u.x > l.x && (_ = s.x + n - l.x + u.x), s.x - _ - h.x < 0 && (_ = s.x - h.x), s.y + i + u.y > l.y && (y = s.y + i - l.y + u.y), s.y - y - h.y < 0 && (y = s.y - h.y), (_ || y) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([_, y]));
|
|
4611
4627
|
}
|
|
4612
4628
|
},
|
|
4613
4629
|
_getAnchor: function() {
|
|
4614
4630
|
return P(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);
|
|
4615
4631
|
}
|
|
4616
|
-
}),
|
|
4617
|
-
return new
|
|
4632
|
+
}), fs = function(t, e) {
|
|
4633
|
+
return new Te(t, e);
|
|
4618
4634
|
};
|
|
4619
|
-
|
|
4635
|
+
k.mergeOptions({
|
|
4620
4636
|
closePopupOnClick: !0
|
|
4621
|
-
}),
|
|
4637
|
+
}), k.include({
|
|
4622
4638
|
// @method openPopup(popup: Popup): this
|
|
4623
4639
|
// Opens the specified popup while closing the previously opened (to make sure only one is opened at one time for usability).
|
|
4624
4640
|
// @alternative
|
|
4625
4641
|
// @method openPopup(content: String|HTMLElement, latlng: LatLng, options?: Popup options): this
|
|
4626
4642
|
// Creates a popup with the specified content and options and opens it in the given point on a map.
|
|
4627
4643
|
openPopup: function(t, e, i) {
|
|
4628
|
-
return this._initOverlay(
|
|
4644
|
+
return this._initOverlay(Te, t, e, i).openOn(this), this;
|
|
4629
4645
|
},
|
|
4630
4646
|
// @method closePopup(popup?: Popup): this
|
|
4631
4647
|
// Closes the popup previously opened with [openPopup](#map-openpopup) (or the given one).
|
|
4632
4648
|
closePopup: function(t) {
|
|
4633
4649
|
return t = arguments.length ? t : this._popup, t && t.close(), this;
|
|
4634
4650
|
}
|
|
4635
|
-
}),
|
|
4651
|
+
}), ut.include({
|
|
4636
4652
|
// @method bindPopup(content: String|HTMLElement|Function|Popup, options?: Popup options): this
|
|
4637
4653
|
// Binds a popup to the layer with the passed `content` and sets up the
|
|
4638
4654
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
4639
4655
|
// the layer as the first argument and should return a `String` or `HTMLElement`.
|
|
4640
4656
|
bindPopup: function(t, e) {
|
|
4641
|
-
return this._popup = this._initOverlay(
|
|
4657
|
+
return this._popup = this._initOverlay(Te, this._popup, t, e), this._popupHandlersAdded || (this.on({
|
|
4642
4658
|
click: this._openPopup,
|
|
4643
4659
|
keypress: this._onKeyPress,
|
|
4644
4660
|
remove: this.closePopup,
|
|
@@ -4658,7 +4674,7 @@ var re = {}, Hs = {
|
|
|
4658
4674
|
// @method openPopup(latlng?: LatLng): this
|
|
4659
4675
|
// Opens the bound popup at the specified `latlng` or at the default popup anchor if no `latlng` is passed.
|
|
4660
4676
|
openPopup: function(t) {
|
|
4661
|
-
return this._popup && (this instanceof
|
|
4677
|
+
return this._popup && (this instanceof vt || (this._popup._source = this), this._popup._prepareOpen(t || this._latlng) && this._popup.openOn(this._map)), this;
|
|
4662
4678
|
},
|
|
4663
4679
|
// @method closePopup(): this
|
|
4664
4680
|
// Closes the popup bound to this layer if it is open.
|
|
@@ -4687,9 +4703,9 @@ var re = {}, Hs = {
|
|
|
4687
4703
|
},
|
|
4688
4704
|
_openPopup: function(t) {
|
|
4689
4705
|
if (!(!this._popup || !this._map)) {
|
|
4690
|
-
|
|
4706
|
+
Ot(t);
|
|
4691
4707
|
var e = t.layer || t.target;
|
|
4692
|
-
if (this._popup._source === e && !(e instanceof
|
|
4708
|
+
if (this._popup._source === e && !(e instanceof Tt)) {
|
|
4693
4709
|
this._map.hasLayer(this._popup) ? this.closePopup() : this.openPopup(t.latlng);
|
|
4694
4710
|
return;
|
|
4695
4711
|
}
|
|
@@ -4703,7 +4719,7 @@ var re = {}, Hs = {
|
|
|
4703
4719
|
t.originalEvent.keyCode === 13 && this._openPopup(t);
|
|
4704
4720
|
}
|
|
4705
4721
|
});
|
|
4706
|
-
var
|
|
4722
|
+
var Me = ft.extend({
|
|
4707
4723
|
// @section
|
|
4708
4724
|
// @aka Tooltip options
|
|
4709
4725
|
options: {
|
|
@@ -4730,33 +4746,33 @@ var re = {}, Hs = {
|
|
|
4730
4746
|
opacity: 0.9
|
|
4731
4747
|
},
|
|
4732
4748
|
onAdd: function(t) {
|
|
4733
|
-
|
|
4749
|
+
ft.prototype.onAdd.call(this, t), this.setOpacity(this.options.opacity), t.fire("tooltipopen", { tooltip: this }), this._source && (this.addEventParent(this._source), this._source.fire("tooltipopen", { tooltip: this }, !0));
|
|
4734
4750
|
},
|
|
4735
4751
|
onRemove: function(t) {
|
|
4736
|
-
|
|
4752
|
+
ft.prototype.onRemove.call(this, t), t.fire("tooltipclose", { tooltip: this }), this._source && (this.removeEventParent(this._source), this._source.fire("tooltipclose", { tooltip: this }, !0));
|
|
4737
4753
|
},
|
|
4738
4754
|
getEvents: function() {
|
|
4739
|
-
var t =
|
|
4755
|
+
var t = ft.prototype.getEvents.call(this);
|
|
4740
4756
|
return this.options.permanent || (t.preclick = this.close), t;
|
|
4741
4757
|
},
|
|
4742
4758
|
_initLayout: function() {
|
|
4743
4759
|
var t = "leaflet-tooltip", e = t + " " + (this.options.className || "") + " leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide");
|
|
4744
|
-
this._contentNode = this._container =
|
|
4760
|
+
this._contentNode = this._container = E("div", e), this._container.setAttribute("role", "tooltip"), this._container.setAttribute("id", "leaflet-tooltip-" + g(this));
|
|
4745
4761
|
},
|
|
4746
4762
|
_updateLayout: function() {
|
|
4747
4763
|
},
|
|
4748
4764
|
_adjustPan: function() {
|
|
4749
4765
|
},
|
|
4750
4766
|
_setPosition: function(t) {
|
|
4751
|
-
var e, i, n = this._map, o = this._container, s = n.latLngToContainerPoint(n.getCenter()), r = n.layerPointToContainerPoint(t), h = this.options.direction, u = o.offsetWidth,
|
|
4752
|
-
h === "top" ? (e = u / 2, i =
|
|
4767
|
+
var e, i, n = this._map, o = this._container, s = n.latLngToContainerPoint(n.getCenter()), r = n.layerPointToContainerPoint(t), h = this.options.direction, u = o.offsetWidth, l = o.offsetHeight, _ = P(this.options.offset), y = this._getAnchor();
|
|
4768
|
+
h === "top" ? (e = u / 2, i = l) : h === "bottom" ? (e = u / 2, i = 0) : h === "center" ? (e = u / 2, i = l / 2) : h === "right" ? (e = 0, i = l / 2) : h === "left" ? (e = u, i = l / 2) : r.x < s.x ? (h = "right", e = 0, i = l / 2) : (h = "left", e = u + (_.x + y.x) * 2, i = l / 2), t = t.subtract(P(e, i, !0)).add(_).add(y), F(o, "leaflet-tooltip-right"), F(o, "leaflet-tooltip-left"), F(o, "leaflet-tooltip-top"), F(o, "leaflet-tooltip-bottom"), M(o, "leaflet-tooltip-" + h), U(o, t);
|
|
4753
4769
|
},
|
|
4754
4770
|
_updatePosition: function() {
|
|
4755
4771
|
var t = this._map.latLngToLayerPoint(this._latlng);
|
|
4756
4772
|
this._setPosition(t);
|
|
4757
4773
|
},
|
|
4758
4774
|
setOpacity: function(t) {
|
|
4759
|
-
this.options.opacity = t, this._container &&
|
|
4775
|
+
this.options.opacity = t, this._container && ot(this._container, t);
|
|
4760
4776
|
},
|
|
4761
4777
|
_animateZoom: function(t) {
|
|
4762
4778
|
var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center);
|
|
@@ -4765,30 +4781,30 @@ var re = {}, Hs = {
|
|
|
4765
4781
|
_getAnchor: function() {
|
|
4766
4782
|
return P(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);
|
|
4767
4783
|
}
|
|
4768
|
-
}),
|
|
4769
|
-
return new
|
|
4784
|
+
}), _s = function(t, e) {
|
|
4785
|
+
return new Me(t, e);
|
|
4770
4786
|
};
|
|
4771
|
-
|
|
4787
|
+
k.include({
|
|
4772
4788
|
// @method openTooltip(tooltip: Tooltip): this
|
|
4773
4789
|
// Opens the specified tooltip.
|
|
4774
4790
|
// @alternative
|
|
4775
4791
|
// @method openTooltip(content: String|HTMLElement, latlng: LatLng, options?: Tooltip options): this
|
|
4776
4792
|
// Creates a tooltip with the specified content and options and open it.
|
|
4777
4793
|
openTooltip: function(t, e, i) {
|
|
4778
|
-
return this._initOverlay(
|
|
4794
|
+
return this._initOverlay(Me, t, e, i).openOn(this), this;
|
|
4779
4795
|
},
|
|
4780
4796
|
// @method closeTooltip(tooltip: Tooltip): this
|
|
4781
4797
|
// Closes the tooltip given as parameter.
|
|
4782
4798
|
closeTooltip: function(t) {
|
|
4783
4799
|
return t.close(), this;
|
|
4784
4800
|
}
|
|
4785
|
-
}),
|
|
4801
|
+
}), ut.include({
|
|
4786
4802
|
// @method bindTooltip(content: String|HTMLElement|Function|Tooltip, options?: Tooltip options): this
|
|
4787
4803
|
// Binds a tooltip to the layer with the passed `content` and sets up the
|
|
4788
4804
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
4789
4805
|
// the layer as the first argument and should return a `String` or `HTMLElement`.
|
|
4790
4806
|
bindTooltip: function(t, e) {
|
|
4791
|
-
return this._tooltip && this.isTooltipOpen() && this.unbindTooltip(), this._tooltip = this._initOverlay(
|
|
4807
|
+
return this._tooltip && this.isTooltipOpen() && this.unbindTooltip(), this._tooltip = this._initOverlay(Me, this._tooltip, t, e), this._initTooltipInteractions(), this._tooltip.options.permanent && this._map && this._map.hasLayer(this) && this.openTooltip(), this;
|
|
4792
4808
|
},
|
|
4793
4809
|
// @method unbindTooltip(): this
|
|
4794
4810
|
// Removes the tooltip previously bound with `bindTooltip`.
|
|
@@ -4807,7 +4823,7 @@ var re = {}, Hs = {
|
|
|
4807
4823
|
// @method openTooltip(latlng?: LatLng): this
|
|
4808
4824
|
// Opens the bound tooltip at the specified `latlng` or at the default tooltip anchor if no `latlng` is passed.
|
|
4809
4825
|
openTooltip: function(t) {
|
|
4810
|
-
return this._tooltip && (this instanceof
|
|
4826
|
+
return this._tooltip && (this instanceof vt || (this._tooltip._source = this), this._tooltip._prepareOpen(t) && (this._tooltip.openOn(this._map), this.getElement ? this._setAriaDescribedByOnLayer(this) : this.eachLayer && this.eachLayer(this._setAriaDescribedByOnLayer, this))), this;
|
|
4811
4827
|
},
|
|
4812
4828
|
// @method closeTooltip(): this
|
|
4813
4829
|
// Closes the tooltip bound to this layer if it is open.
|
|
@@ -4839,24 +4855,34 @@ var re = {}, Hs = {
|
|
|
4839
4855
|
this.getElement ? this._addFocusListenersOnLayer(this) : this.eachLayer && this.eachLayer(this._addFocusListenersOnLayer, this);
|
|
4840
4856
|
},
|
|
4841
4857
|
_addFocusListenersOnLayer: function(t) {
|
|
4842
|
-
var e = t.getElement();
|
|
4858
|
+
var e = typeof t.getElement == "function" && t.getElement();
|
|
4843
4859
|
e && (T(e, "focus", function() {
|
|
4844
4860
|
this._tooltip._source = t, this.openTooltip();
|
|
4845
4861
|
}, this), T(e, "blur", this.closeTooltip, this));
|
|
4846
4862
|
},
|
|
4847
4863
|
_setAriaDescribedByOnLayer: function(t) {
|
|
4848
|
-
var e = t.getElement();
|
|
4864
|
+
var e = typeof t.getElement == "function" && t.getElement();
|
|
4849
4865
|
e && e.setAttribute("aria-describedby", this._tooltip._container.id);
|
|
4850
4866
|
},
|
|
4851
4867
|
_openTooltip: function(t) {
|
|
4852
|
-
!this._tooltip || !this._map
|
|
4868
|
+
if (!(!this._tooltip || !this._map)) {
|
|
4869
|
+
if (this._map.dragging && this._map.dragging.moving() && !this._openOnceFlag) {
|
|
4870
|
+
this._openOnceFlag = !0;
|
|
4871
|
+
var e = this;
|
|
4872
|
+
this._map.once("moveend", function() {
|
|
4873
|
+
e._openOnceFlag = !1, e._openTooltip(t);
|
|
4874
|
+
});
|
|
4875
|
+
return;
|
|
4876
|
+
}
|
|
4877
|
+
this._tooltip._source = t.layer || t.target, this.openTooltip(this._tooltip.options.sticky ? t.latlng : void 0);
|
|
4878
|
+
}
|
|
4853
4879
|
},
|
|
4854
4880
|
_moveTooltip: function(t) {
|
|
4855
4881
|
var e = t.latlng, i, n;
|
|
4856
4882
|
this._tooltip.options.sticky && t.originalEvent && (i = this._map.mouseEventToContainerPoint(t.originalEvent), n = this._map.containerPointToLayerPoint(i), e = this._map.layerPointToLatLng(n)), this._tooltip.setLatLng(e);
|
|
4857
4883
|
}
|
|
4858
4884
|
});
|
|
4859
|
-
var
|
|
4885
|
+
var Tn = Nt.extend({
|
|
4860
4886
|
options: {
|
|
4861
4887
|
// @section
|
|
4862
4888
|
// @aka DivIcon options
|
|
@@ -4875,7 +4901,7 @@ var re = {}, Hs = {
|
|
|
4875
4901
|
},
|
|
4876
4902
|
createIcon: function(t) {
|
|
4877
4903
|
var e = t && t.tagName === "DIV" ? t : document.createElement("div"), i = this.options;
|
|
4878
|
-
if (i.html instanceof Element ? (
|
|
4904
|
+
if (i.html instanceof Element ? (de(e), e.appendChild(i.html)) : e.innerHTML = i.html !== !1 ? i.html : "", i.bgPos) {
|
|
4879
4905
|
var n = P(i.bgPos);
|
|
4880
4906
|
e.style.backgroundPosition = -n.x + "px " + -n.y + "px";
|
|
4881
4907
|
}
|
|
@@ -4885,11 +4911,11 @@ var re = {}, Hs = {
|
|
|
4885
4911
|
return null;
|
|
4886
4912
|
}
|
|
4887
4913
|
});
|
|
4888
|
-
function
|
|
4889
|
-
return new
|
|
4914
|
+
function ms(t) {
|
|
4915
|
+
return new Tn(t);
|
|
4890
4916
|
}
|
|
4891
|
-
|
|
4892
|
-
var
|
|
4917
|
+
Nt.Default = oe;
|
|
4918
|
+
var se = ut.extend({
|
|
4893
4919
|
// @section
|
|
4894
4920
|
// @aka GridLayer options
|
|
4895
4921
|
options: {
|
|
@@ -4965,12 +4991,12 @@ var re = {}, Hs = {
|
|
|
4965
4991
|
// @method bringToFront: this
|
|
4966
4992
|
// Brings the tile layer to the top of all tile layers.
|
|
4967
4993
|
bringToFront: function() {
|
|
4968
|
-
return this._map && (
|
|
4994
|
+
return this._map && (At(this._container), this._setAutoZIndex(Math.max)), this;
|
|
4969
4995
|
},
|
|
4970
4996
|
// @method bringToBack: this
|
|
4971
4997
|
// Brings the tile layer to the bottom of all tile layers.
|
|
4972
4998
|
bringToBack: function() {
|
|
4973
|
-
return this._map && (
|
|
4999
|
+
return this._map && (It(this._container), this._setAutoZIndex(Math.min)), this;
|
|
4974
5000
|
},
|
|
4975
5001
|
// @method getContainer: HTMLElement
|
|
4976
5002
|
// Returns the HTML element that contains the tiles for this layer.
|
|
@@ -5037,21 +5063,21 @@ var re = {}, Hs = {
|
|
|
5037
5063
|
},
|
|
5038
5064
|
_updateOpacity: function() {
|
|
5039
5065
|
if (this._map && !p.ielt9) {
|
|
5040
|
-
|
|
5041
|
-
var t =
|
|
5066
|
+
ot(this._container, this.options.opacity);
|
|
5067
|
+
var t = +/* @__PURE__ */ new Date(), e = !1, i = !1;
|
|
5042
5068
|
for (var n in this._tiles) {
|
|
5043
5069
|
var o = this._tiles[n];
|
|
5044
5070
|
if (!(!o.current || !o.loaded)) {
|
|
5045
5071
|
var s = Math.min(1, (t - o.loaded) / 200);
|
|
5046
|
-
|
|
5072
|
+
ot(o.el, s), s < 1 ? e = !0 : (o.active ? i = !0 : this._onOpaqueTile(o), o.active = !0);
|
|
5047
5073
|
}
|
|
5048
5074
|
}
|
|
5049
|
-
i && !this._noPrune && this._pruneTiles(), e && (
|
|
5075
|
+
i && !this._noPrune && this._pruneTiles(), e && (nt(this._fadeFrame), this._fadeFrame = J(this._updateOpacity, this));
|
|
5050
5076
|
}
|
|
5051
5077
|
},
|
|
5052
|
-
_onOpaqueTile:
|
|
5078
|
+
_onOpaqueTile: S,
|
|
5053
5079
|
_initContainer: function() {
|
|
5054
|
-
this._container || (this._container =
|
|
5080
|
+
this._container || (this._container = E("div", "leaflet-layer " + (this.options.className || "")), this._updateZIndex(), this.options.opacity < 1 && this._updateOpacity(), this.getPane().appendChild(this._container));
|
|
5055
5081
|
},
|
|
5056
5082
|
_updateLevels: function() {
|
|
5057
5083
|
var t = this._tileZoom, e = this.options.maxZoom;
|
|
@@ -5059,12 +5085,12 @@ var re = {}, Hs = {
|
|
|
5059
5085
|
for (var i in this._levels)
|
|
5060
5086
|
i = Number(i), this._levels[i].el.children.length || i === t ? (this._levels[i].el.style.zIndex = e - Math.abs(t - i), this._onUpdateLevel(i)) : (D(this._levels[i].el), this._removeTilesAtZoom(i), this._onRemoveLevel(i), delete this._levels[i]);
|
|
5061
5087
|
var n = this._levels[t], o = this._map;
|
|
5062
|
-
return n || (n = this._levels[t] = {}, n.el =
|
|
5088
|
+
return n || (n = this._levels[t] = {}, n.el = E("div", "leaflet-tile-container leaflet-zoom-animated", this._container), n.el.style.zIndex = e, n.origin = o.project(o.unproject(o.getPixelOrigin()), t).round(), n.zoom = t, this._setZoomTransform(n, o.getCenter(), o.getZoom()), S(n.el.offsetWidth), this._onCreateLevel(n)), this._level = n, n;
|
|
5063
5089
|
}
|
|
5064
5090
|
},
|
|
5065
|
-
_onUpdateLevel:
|
|
5066
|
-
_onRemoveLevel:
|
|
5067
|
-
_onCreateLevel:
|
|
5091
|
+
_onUpdateLevel: S,
|
|
5092
|
+
_onRemoveLevel: S,
|
|
5093
|
+
_onCreateLevel: S,
|
|
5068
5094
|
_pruneTiles: function() {
|
|
5069
5095
|
if (this._map) {
|
|
5070
5096
|
var t, e, i = this._map.getZoom();
|
|
@@ -5099,8 +5125,8 @@ var re = {}, Hs = {
|
|
|
5099
5125
|
_retainParent: function(t, e, i, n) {
|
|
5100
5126
|
var o = Math.floor(t / 2), s = Math.floor(e / 2), r = i - 1, h = new b(+o, +s);
|
|
5101
5127
|
h.z = +r;
|
|
5102
|
-
var u = this._tileCoordsToKey(h),
|
|
5103
|
-
return
|
|
5128
|
+
var u = this._tileCoordsToKey(h), l = this._tiles[u];
|
|
5129
|
+
return l && l.active ? (l.retain = !0, !0) : (l && l.loaded && (l.retain = !0), r > n ? this._retainParent(o, s, r, n) : !1);
|
|
5104
5130
|
},
|
|
5105
5131
|
_retainChildren: function(t, e, i, n) {
|
|
5106
5132
|
for (var o = 2 * t; o < 2 * t + 2; o++)
|
|
@@ -5139,7 +5165,7 @@ var re = {}, Hs = {
|
|
|
5139
5165
|
},
|
|
5140
5166
|
_setZoomTransform: function(t, e, i) {
|
|
5141
5167
|
var n = this._map.getZoomScale(i, t.zoom), o = t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e, i)).round();
|
|
5142
|
-
p.any3d ?
|
|
5168
|
+
p.any3d ? Ct(t.el, o, n) : U(t.el, o);
|
|
5143
5169
|
},
|
|
5144
5170
|
_resetGrid: function() {
|
|
5145
5171
|
var t = this._map, e = t.options.crs, i = this._tileSize = this.getTileSize(), n = this._tileZoom, o = this._map.getPixelWorldBounds(this._tileZoom);
|
|
@@ -5170,30 +5196,30 @@ var re = {}, Hs = {
|
|
|
5170
5196
|
);
|
|
5171
5197
|
if (!(isFinite(o.min.x) && isFinite(o.min.y) && isFinite(o.max.x) && isFinite(o.max.y)))
|
|
5172
5198
|
throw new Error("Attempted to load an infinite number of tiles");
|
|
5173
|
-
for (var
|
|
5174
|
-
var _ = this._tiles[
|
|
5175
|
-
(_.z !== this._tileZoom || !u.contains(new b(_.x, _.y))) && (this._tiles[
|
|
5199
|
+
for (var l in this._tiles) {
|
|
5200
|
+
var _ = this._tiles[l].coords;
|
|
5201
|
+
(_.z !== this._tileZoom || !u.contains(new b(_.x, _.y))) && (this._tiles[l].current = !1);
|
|
5176
5202
|
}
|
|
5177
5203
|
if (Math.abs(i - this._tileZoom) > 1) {
|
|
5178
5204
|
this._setView(t, i);
|
|
5179
5205
|
return;
|
|
5180
5206
|
}
|
|
5181
5207
|
for (var y = o.min.y; y <= o.max.y; y++)
|
|
5182
|
-
for (var
|
|
5183
|
-
var
|
|
5184
|
-
if (
|
|
5185
|
-
var
|
|
5186
|
-
|
|
5208
|
+
for (var C = o.min.x; C <= o.max.x; C++) {
|
|
5209
|
+
var Y = new b(C, y);
|
|
5210
|
+
if (Y.z = this._tileZoom, !!this._isValidTile(Y)) {
|
|
5211
|
+
var V = this._tiles[this._tileCoordsToKey(Y)];
|
|
5212
|
+
V ? V.current = !0 : r.push(Y);
|
|
5187
5213
|
}
|
|
5188
5214
|
}
|
|
5189
|
-
if (r.sort(function(
|
|
5190
|
-
return
|
|
5215
|
+
if (r.sort(function(Q, Wt) {
|
|
5216
|
+
return Q.distanceTo(s) - Wt.distanceTo(s);
|
|
5191
5217
|
}), r.length !== 0) {
|
|
5192
5218
|
this._loading || (this._loading = !0, this.fire("loading"));
|
|
5193
|
-
var
|
|
5194
|
-
for (
|
|
5195
|
-
this._addTile(r[
|
|
5196
|
-
this._level.el.appendChild(
|
|
5219
|
+
var rt = document.createDocumentFragment();
|
|
5220
|
+
for (C = 0; C < r.length; C++)
|
|
5221
|
+
this._addTile(r[C], rt);
|
|
5222
|
+
this._level.el.appendChild(rt);
|
|
5197
5223
|
}
|
|
5198
5224
|
}
|
|
5199
5225
|
}
|
|
@@ -5208,7 +5234,7 @@ var re = {}, Hs = {
|
|
|
5208
5234
|
if (!this.options.bounds)
|
|
5209
5235
|
return !0;
|
|
5210
5236
|
var n = this._tileCoordsToBounds(t);
|
|
5211
|
-
return
|
|
5237
|
+
return W(this.options.bounds).overlaps(n);
|
|
5212
5238
|
},
|
|
5213
5239
|
_keyToBounds: function(t) {
|
|
5214
5240
|
return this._tileCoordsToBounds(this._keyToTileCoords(t));
|
|
@@ -5219,7 +5245,7 @@ var re = {}, Hs = {
|
|
|
5219
5245
|
},
|
|
5220
5246
|
// converts tile coordinates to its geographical bounds
|
|
5221
5247
|
_tileCoordsToBounds: function(t) {
|
|
5222
|
-
var e = this._tileCoordsToNwSe(t), i = new
|
|
5248
|
+
var e = this._tileCoordsToNwSe(t), i = new $(e[0], e[1]);
|
|
5223
5249
|
return this.options.noWrap || (i = this._map.wrapLatLngBounds(i)), i;
|
|
5224
5250
|
},
|
|
5225
5251
|
// converts tile coordinates to key for the tile cache
|
|
@@ -5241,11 +5267,11 @@ var re = {}, Hs = {
|
|
|
5241
5267
|
_initTile: function(t) {
|
|
5242
5268
|
M(t, "leaflet-tile");
|
|
5243
5269
|
var e = this.getTileSize();
|
|
5244
|
-
t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart =
|
|
5270
|
+
t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = S, t.onmousemove = S, p.ielt9 && this.options.opacity < 1 && ot(t, this.options.opacity);
|
|
5245
5271
|
},
|
|
5246
5272
|
_addTile: function(t, e) {
|
|
5247
5273
|
var i = this._getTilePos(t), n = this._tileCoordsToKey(t), o = this.createTile(this._wrapCoords(t), v(this._tileReady, this, t));
|
|
5248
|
-
this._initTile(o), this.createTile.length < 2 &&
|
|
5274
|
+
this._initTile(o), this.createTile.length < 2 && J(v(this._tileReady, this, t, null, o)), U(o, i), this._tiles[n] = {
|
|
5249
5275
|
el: o,
|
|
5250
5276
|
coords: t,
|
|
5251
5277
|
current: !0
|
|
@@ -5261,10 +5287,10 @@ var re = {}, Hs = {
|
|
|
5261
5287
|
coords: t
|
|
5262
5288
|
});
|
|
5263
5289
|
var n = this._tileCoordsToKey(t);
|
|
5264
|
-
i = this._tiles[n], i && (i.loaded =
|
|
5290
|
+
i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (ot(i.el, 0), nt(this._fadeFrame), this._fadeFrame = J(this._updateOpacity, this)) : (i.active = !0, this._pruneTiles()), e || (M(i.el, "leaflet-tile-loaded"), this.fire("tileload", {
|
|
5265
5291
|
tile: i.el,
|
|
5266
5292
|
coords: t
|
|
5267
|
-
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), p.ielt9 || !this._map._fadeAnimated ?
|
|
5293
|
+
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), p.ielt9 || !this._map._fadeAnimated ? J(this._pruneTiles, this) : setTimeout(v(this._pruneTiles, this), 250)));
|
|
5268
5294
|
},
|
|
5269
5295
|
_getTilePos: function(t) {
|
|
5270
5296
|
return t.scaleBy(this.getTileSize()).subtract(this._level.origin);
|
|
@@ -5290,10 +5316,10 @@ var re = {}, Hs = {
|
|
|
5290
5316
|
return !0;
|
|
5291
5317
|
}
|
|
5292
5318
|
});
|
|
5293
|
-
function
|
|
5294
|
-
return new
|
|
5319
|
+
function ps(t) {
|
|
5320
|
+
return new se(t);
|
|
5295
5321
|
}
|
|
5296
|
-
var
|
|
5322
|
+
var Ft = se.extend({
|
|
5297
5323
|
// @section
|
|
5298
5324
|
// @aka TileLayer options
|
|
5299
5325
|
options: {
|
|
@@ -5370,7 +5396,7 @@ var re = {}, Hs = {
|
|
|
5370
5396
|
var i = this._globalTileRange.max.y - t.y;
|
|
5371
5397
|
this.options.tms && (e.y = i), e["-y"] = i;
|
|
5372
5398
|
}
|
|
5373
|
-
return
|
|
5399
|
+
return ue(this._url, m(e, this.options));
|
|
5374
5400
|
},
|
|
5375
5401
|
_tileOnLoad: function(t, e) {
|
|
5376
5402
|
p.ielt9 ? setTimeout(v(t, this, null, e), 0) : t(null, e);
|
|
@@ -5394,8 +5420,8 @@ var re = {}, Hs = {
|
|
|
5394
5420
|
_abortLoading: function() {
|
|
5395
5421
|
var t, e;
|
|
5396
5422
|
for (t in this._tiles)
|
|
5397
|
-
if (this._tiles[t].coords.z !== this._tileZoom && (e = this._tiles[t].el, e.onload =
|
|
5398
|
-
e.src =
|
|
5423
|
+
if (this._tiles[t].coords.z !== this._tileZoom && (e = this._tiles[t].el, e.onload = S, e.onerror = S, !e.complete)) {
|
|
5424
|
+
e.src = Zt;
|
|
5399
5425
|
var i = this._tiles[t].coords;
|
|
5400
5426
|
D(e), delete this._tiles[t], this.fire("tileabort", {
|
|
5401
5427
|
tile: e,
|
|
@@ -5406,17 +5432,17 @@ var re = {}, Hs = {
|
|
|
5406
5432
|
_removeTile: function(t) {
|
|
5407
5433
|
var e = this._tiles[t];
|
|
5408
5434
|
if (e)
|
|
5409
|
-
return e.el.setAttribute("src",
|
|
5435
|
+
return e.el.setAttribute("src", Zt), se.prototype._removeTile.call(this, t);
|
|
5410
5436
|
},
|
|
5411
5437
|
_tileReady: function(t, e, i) {
|
|
5412
|
-
if (!(!this._map || i && i.getAttribute("src") ===
|
|
5413
|
-
return
|
|
5438
|
+
if (!(!this._map || i && i.getAttribute("src") === Zt))
|
|
5439
|
+
return se.prototype._tileReady.call(this, t, e, i);
|
|
5414
5440
|
}
|
|
5415
5441
|
});
|
|
5416
|
-
function
|
|
5417
|
-
return new
|
|
5442
|
+
function Mn(t, e) {
|
|
5443
|
+
return new Ft(t, e);
|
|
5418
5444
|
}
|
|
5419
|
-
var
|
|
5445
|
+
var Cn = Ft.extend({
|
|
5420
5446
|
// @section
|
|
5421
5447
|
// @aka TileLayer.WMS options
|
|
5422
5448
|
// If any custom options not documented here are used, they will be sent to the
|
|
@@ -5462,11 +5488,11 @@ var re = {}, Hs = {
|
|
|
5462
5488
|
onAdd: function(t) {
|
|
5463
5489
|
this._crs = this.options.crs || t.options.crs, this._wmsVersion = parseFloat(this.wmsParams.version);
|
|
5464
5490
|
var e = this._wmsVersion >= 1.3 ? "crs" : "srs";
|
|
5465
|
-
this.wmsParams[e] = this._crs.code,
|
|
5491
|
+
this.wmsParams[e] = this._crs.code, Ft.prototype.onAdd.call(this, t);
|
|
5466
5492
|
},
|
|
5467
5493
|
getTileUrl: function(t) {
|
|
5468
|
-
var e = this._tileCoordsToNwSe(t), i = this._crs, n =
|
|
5469
|
-
return h +
|
|
5494
|
+
var e = this._tileCoordsToNwSe(t), i = this._crs, n = X(i.project(e[0]), i.project(e[1])), o = n.min, s = n.max, r = (this._wmsVersion >= 1.3 && this._crs === yn ? [o.y, o.x, s.y, s.x] : [o.x, o.y, s.x, s.y]).join(","), h = Ft.prototype.getTileUrl.call(this, t);
|
|
5495
|
+
return h + it(this.wmsParams, h, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + r;
|
|
5470
5496
|
},
|
|
5471
5497
|
// @method setParams(params: Object, noRedraw?: Boolean): this
|
|
5472
5498
|
// Merges an object with the new parameters and re-requests tiles on the current screen (unless `noRedraw` was set to true).
|
|
@@ -5474,11 +5500,11 @@ var re = {}, Hs = {
|
|
|
5474
5500
|
return m(this.wmsParams, t), e || this.redraw(), this;
|
|
5475
5501
|
}
|
|
5476
5502
|
});
|
|
5477
|
-
function
|
|
5478
|
-
return new
|
|
5503
|
+
function vs(t, e) {
|
|
5504
|
+
return new Cn(t, e);
|
|
5479
5505
|
}
|
|
5480
|
-
|
|
5481
|
-
var
|
|
5506
|
+
Ft.WMS = Cn, Mn.wms = vs;
|
|
5507
|
+
var wt = ut.extend({
|
|
5482
5508
|
// @section
|
|
5483
5509
|
// @aka Renderer options
|
|
5484
5510
|
options: {
|
|
@@ -5491,7 +5517,7 @@ var re = {}, Hs = {
|
|
|
5491
5517
|
z(this, t), g(this), this._layers = this._layers || {};
|
|
5492
5518
|
},
|
|
5493
5519
|
onAdd: function() {
|
|
5494
|
-
this._container || (this._initContainer(),
|
|
5520
|
+
this._container || (this._initContainer(), M(this._container, "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this._update(), this.on("update", this._updatePaths, this);
|
|
5495
5521
|
},
|
|
5496
5522
|
onRemove: function() {
|
|
5497
5523
|
this.off("update", this._updatePaths, this), this._destroyContainer();
|
|
@@ -5513,7 +5539,7 @@ var re = {}, Hs = {
|
|
|
5513
5539
|
},
|
|
5514
5540
|
_updateTransform: function(t, e) {
|
|
5515
5541
|
var i = this._map.getZoomScale(e, this._zoom), n = this._map.getSize().multiplyBy(0.5 + this.options.padding), o = this._map.project(this._center, e), s = n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t, e));
|
|
5516
|
-
p.any3d ?
|
|
5542
|
+
p.any3d ? Ct(this._container, s, i) : U(this._container, s);
|
|
5517
5543
|
},
|
|
5518
5544
|
_reset: function() {
|
|
5519
5545
|
this._update(), this._updateTransform(this._center, this._zoom);
|
|
@@ -5532,7 +5558,7 @@ var re = {}, Hs = {
|
|
|
5532
5558
|
var t = this.options.padding, e = this._map.getSize(), i = this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();
|
|
5533
5559
|
this._bounds = new N(i, i.add(e.multiplyBy(1 + t * 2)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom();
|
|
5534
5560
|
}
|
|
5535
|
-
}),
|
|
5561
|
+
}), Sn = wt.extend({
|
|
5536
5562
|
// @section
|
|
5537
5563
|
// @aka Canvas options
|
|
5538
5564
|
options: {
|
|
@@ -5541,21 +5567,21 @@ var re = {}, Hs = {
|
|
|
5541
5567
|
tolerance: 0
|
|
5542
5568
|
},
|
|
5543
5569
|
getEvents: function() {
|
|
5544
|
-
var t =
|
|
5570
|
+
var t = wt.prototype.getEvents.call(this);
|
|
5545
5571
|
return t.viewprereset = this._onViewPreReset, t;
|
|
5546
5572
|
},
|
|
5547
5573
|
_onViewPreReset: function() {
|
|
5548
5574
|
this._postponeUpdatePaths = !0;
|
|
5549
5575
|
},
|
|
5550
5576
|
onAdd: function() {
|
|
5551
|
-
|
|
5577
|
+
wt.prototype.onAdd.call(this), this._draw();
|
|
5552
5578
|
},
|
|
5553
5579
|
_initContainer: function() {
|
|
5554
5580
|
var t = this._container = document.createElement("canvas");
|
|
5555
5581
|
T(t, "mousemove", this._onMouseMove, this), T(t, "click dblclick mousedown mouseup contextmenu", this._onClick, this), T(t, "mouseout", this._handleMouseOut, this), t._leaflet_disable_events = !0, this._ctx = t.getContext("2d");
|
|
5556
5582
|
},
|
|
5557
5583
|
_destroyContainer: function() {
|
|
5558
|
-
|
|
5584
|
+
nt(this._redrawRequest), delete this._ctx, D(this._container), B(this._container), delete this._container;
|
|
5559
5585
|
},
|
|
5560
5586
|
_updatePaths: function() {
|
|
5561
5587
|
if (!this._postponeUpdatePaths) {
|
|
@@ -5568,13 +5594,13 @@ var re = {}, Hs = {
|
|
|
5568
5594
|
},
|
|
5569
5595
|
_update: function() {
|
|
5570
5596
|
if (!(this._map._animatingZoom && this._bounds)) {
|
|
5571
|
-
|
|
5597
|
+
wt.prototype._update.call(this);
|
|
5572
5598
|
var t = this._bounds, e = this._container, i = t.getSize(), n = p.retina ? 2 : 1;
|
|
5573
|
-
|
|
5599
|
+
U(e, t.min), e.width = n * i.x, e.height = n * i.y, e.style.width = i.x + "px", e.style.height = i.y + "px", p.retina && this._ctx.scale(2, 2), this._ctx.translate(-t.min.x, -t.min.y), this.fire("update");
|
|
5574
5600
|
}
|
|
5575
5601
|
},
|
|
5576
5602
|
_reset: function() {
|
|
5577
|
-
|
|
5603
|
+
wt.prototype._reset.call(this), this._postponeUpdatePaths && (this._postponeUpdatePaths = !1, this._updatePaths());
|
|
5578
5604
|
},
|
|
5579
5605
|
_initPath: function(t) {
|
|
5580
5606
|
this._updateDashArray(t), this._layers[g(t)] = t;
|
|
@@ -5611,7 +5637,7 @@ var re = {}, Hs = {
|
|
|
5611
5637
|
t.options._dashArray = t.options.dashArray;
|
|
5612
5638
|
},
|
|
5613
5639
|
_requestRedraw: function(t) {
|
|
5614
|
-
this._map && (this._extendRedrawBounds(t), this._redrawRequest = this._redrawRequest ||
|
|
5640
|
+
this._map && (this._extendRedrawBounds(t), this._redrawRequest = this._redrawRequest || J(this._redraw, this));
|
|
5615
5641
|
},
|
|
5616
5642
|
_extendRedrawBounds: function(t) {
|
|
5617
5643
|
if (t._pxBounds) {
|
|
@@ -5716,10 +5742,10 @@ var re = {}, Hs = {
|
|
|
5716
5742
|
}
|
|
5717
5743
|
}
|
|
5718
5744
|
});
|
|
5719
|
-
function
|
|
5720
|
-
return p.canvas ? new
|
|
5745
|
+
function zn(t) {
|
|
5746
|
+
return p.canvas ? new Sn(t) : null;
|
|
5721
5747
|
}
|
|
5722
|
-
var
|
|
5748
|
+
var re = function() {
|
|
5723
5749
|
try {
|
|
5724
5750
|
return document.namespaces.add("lvml", "urn:schemas-microsoft-com:vml"), function(t) {
|
|
5725
5751
|
return document.createElement("<lvml:" + t + ' class="lvml">');
|
|
@@ -5729,16 +5755,16 @@ var re = {}, Hs = {
|
|
|
5729
5755
|
return function(t) {
|
|
5730
5756
|
return document.createElement("<" + t + ' xmlns="urn:schemas-microsoft.com:vml" class="lvml">');
|
|
5731
5757
|
};
|
|
5732
|
-
}(),
|
|
5758
|
+
}(), gs = {
|
|
5733
5759
|
_initContainer: function() {
|
|
5734
|
-
this._container =
|
|
5760
|
+
this._container = E("div", "leaflet-vml-container");
|
|
5735
5761
|
},
|
|
5736
5762
|
_update: function() {
|
|
5737
|
-
this._map._animatingZoom || (
|
|
5763
|
+
this._map._animatingZoom || (wt.prototype._update.call(this), this.fire("update"));
|
|
5738
5764
|
},
|
|
5739
5765
|
_initPath: function(t) {
|
|
5740
|
-
var e = t._container =
|
|
5741
|
-
M(e, "leaflet-vml-shape " + (this.options.className || "")), e.coordsize = "1 1", t._path =
|
|
5766
|
+
var e = t._container = re("shape");
|
|
5767
|
+
M(e, "leaflet-vml-shape " + (this.options.className || "")), e.coordsize = "1 1", t._path = re("path"), e.appendChild(t._path), this._updateStyle(t), this._layers[g(t)] = t;
|
|
5742
5768
|
},
|
|
5743
5769
|
_addPath: function(t) {
|
|
5744
5770
|
var e = t._container;
|
|
@@ -5750,7 +5776,7 @@ var re = {}, Hs = {
|
|
|
5750
5776
|
},
|
|
5751
5777
|
_updateStyle: function(t) {
|
|
5752
5778
|
var e = t._stroke, i = t._fill, n = t.options, o = t._container;
|
|
5753
|
-
o.stroked = !!n.stroke, o.filled = !!n.fill, n.stroke ? (e || (e = t._stroke =
|
|
5779
|
+
o.stroked = !!n.stroke, o.filled = !!n.fill, n.stroke ? (e || (e = t._stroke = re("stroke")), o.appendChild(e), e.weight = n.weight + "px", e.color = n.color, e.opacity = n.opacity, n.dashArray ? e.dashStyle = tt(n.dashArray) ? n.dashArray.join(" ") : n.dashArray.replace(/( *, *)/g, " ") : e.dashStyle = "", e.endcap = n.lineCap.replace("butt", "flat"), e.joinstyle = n.lineJoin) : e && (o.removeChild(e), t._stroke = null), n.fill ? (i || (i = t._fill = re("fill")), o.appendChild(i), i.color = n.fillColor || n.color, i.opacity = n.fillOpacity) : i && (o.removeChild(i), t._fill = null);
|
|
5754
5780
|
},
|
|
5755
5781
|
_updateCircle: function(t) {
|
|
5756
5782
|
var e = t._point.round(), i = Math.round(t._radius), n = Math.round(t._radiusY || i);
|
|
@@ -5760,28 +5786,28 @@ var re = {}, Hs = {
|
|
|
5760
5786
|
t._path.v = e;
|
|
5761
5787
|
},
|
|
5762
5788
|
_bringToFront: function(t) {
|
|
5763
|
-
|
|
5789
|
+
At(t._container);
|
|
5764
5790
|
},
|
|
5765
5791
|
_bringToBack: function(t) {
|
|
5766
|
-
|
|
5792
|
+
It(t._container);
|
|
5767
5793
|
}
|
|
5768
|
-
},
|
|
5794
|
+
}, Ce = p.vml ? re : Ei, ae = wt.extend({
|
|
5769
5795
|
_initContainer: function() {
|
|
5770
|
-
this._container =
|
|
5796
|
+
this._container = Ce("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = Ce("g"), this._container.appendChild(this._rootGroup);
|
|
5771
5797
|
},
|
|
5772
5798
|
_destroyContainer: function() {
|
|
5773
5799
|
D(this._container), B(this._container), delete this._container, delete this._rootGroup, delete this._svgSize;
|
|
5774
5800
|
},
|
|
5775
5801
|
_update: function() {
|
|
5776
5802
|
if (!(this._map._animatingZoom && this._bounds)) {
|
|
5777
|
-
|
|
5803
|
+
wt.prototype._update.call(this);
|
|
5778
5804
|
var t = this._bounds, e = t.getSize(), i = this._container;
|
|
5779
|
-
(!this._svgSize || !this._svgSize.equals(e)) && (this._svgSize = e, i.setAttribute("width", e.x), i.setAttribute("height", e.y)),
|
|
5805
|
+
(!this._svgSize || !this._svgSize.equals(e)) && (this._svgSize = e, i.setAttribute("width", e.x), i.setAttribute("height", e.y)), U(i, t.min), i.setAttribute("viewBox", [t.min.x, t.min.y, e.x, e.y].join(" ")), this.fire("update");
|
|
5780
5806
|
}
|
|
5781
5807
|
},
|
|
5782
5808
|
// methods below are called by vector layers implementations
|
|
5783
5809
|
_initPath: function(t) {
|
|
5784
|
-
var e = t._path =
|
|
5810
|
+
var e = t._path = Ce("path");
|
|
5785
5811
|
t.options.className && M(e, t.options.className), t.options.interactive && M(e, "leaflet-interactive"), this._updateStyle(t), this._layers[g(t)] = t;
|
|
5786
5812
|
},
|
|
5787
5813
|
_addPath: function(t) {
|
|
@@ -5798,7 +5824,7 @@ var re = {}, Hs = {
|
|
|
5798
5824
|
e && (i.stroke ? (e.setAttribute("stroke", i.color), e.setAttribute("stroke-opacity", i.opacity), e.setAttribute("stroke-width", i.weight), e.setAttribute("stroke-linecap", i.lineCap), e.setAttribute("stroke-linejoin", i.lineJoin), i.dashArray ? e.setAttribute("stroke-dasharray", i.dashArray) : e.removeAttribute("stroke-dasharray"), i.dashOffset ? e.setAttribute("stroke-dashoffset", i.dashOffset) : e.removeAttribute("stroke-dashoffset")) : e.setAttribute("stroke", "none"), i.fill ? (e.setAttribute("fill", i.fillColor || i.color), e.setAttribute("fill-opacity", i.fillOpacity), e.setAttribute("fill-rule", i.fillRule || "evenodd")) : e.setAttribute("fill", "none"));
|
|
5799
5825
|
},
|
|
5800
5826
|
_updatePoly: function(t, e) {
|
|
5801
|
-
this._setPath(t,
|
|
5827
|
+
this._setPath(t, Zi(t._parts, e));
|
|
5802
5828
|
},
|
|
5803
5829
|
_updateCircle: function(t) {
|
|
5804
5830
|
var e = t._point, i = Math.max(Math.round(t._radius), 1), n = Math.max(Math.round(t._radiusY), 1) || i, o = "a" + i + "," + n + " 0 1,0 ", s = t._empty() ? "M0 0" : "M" + (e.x - i) + "," + e.y + o + i * 2 + ",0 " + o + -i * 2 + ",0 ";
|
|
@@ -5809,17 +5835,17 @@ var re = {}, Hs = {
|
|
|
5809
5835
|
},
|
|
5810
5836
|
// SVG does not have the concept of zIndex so we resort to changing the DOM order of elements
|
|
5811
5837
|
_bringToFront: function(t) {
|
|
5812
|
-
|
|
5838
|
+
At(t._path);
|
|
5813
5839
|
},
|
|
5814
5840
|
_bringToBack: function(t) {
|
|
5815
|
-
|
|
5841
|
+
It(t._path);
|
|
5816
5842
|
}
|
|
5817
5843
|
});
|
|
5818
|
-
p.vml &&
|
|
5819
|
-
function
|
|
5820
|
-
return p.svg || p.vml ? new
|
|
5844
|
+
p.vml && ae.include(gs);
|
|
5845
|
+
function On(t) {
|
|
5846
|
+
return p.svg || p.vml ? new ae(t) : null;
|
|
5821
5847
|
}
|
|
5822
|
-
|
|
5848
|
+
k.include({
|
|
5823
5849
|
// @namespace Map; @method getRenderer(layer: Path): Renderer
|
|
5824
5850
|
// Returns the instance of `Renderer` that should be used to render the given
|
|
5825
5851
|
// `Path`. It will ensure that the `renderer` options of the map and paths
|
|
@@ -5835,12 +5861,12 @@ var re = {}, Hs = {
|
|
|
5835
5861
|
return e === void 0 && (e = this._createRenderer({ pane: t }), this._paneRenderers[t] = e), e;
|
|
5836
5862
|
},
|
|
5837
5863
|
_createRenderer: function(t) {
|
|
5838
|
-
return this.options.preferCanvas &&
|
|
5864
|
+
return this.options.preferCanvas && zn(t) || On(t);
|
|
5839
5865
|
}
|
|
5840
5866
|
});
|
|
5841
|
-
var
|
|
5867
|
+
var kn = Dt.extend({
|
|
5842
5868
|
initialize: function(t, e) {
|
|
5843
|
-
|
|
5869
|
+
Dt.prototype.initialize.call(this, this._boundsToLatLngs(t), e);
|
|
5844
5870
|
},
|
|
5845
5871
|
// @method setBounds(latLngBounds: LatLngBounds): this
|
|
5846
5872
|
// Redraws the rectangle with the passed bounds.
|
|
@@ -5848,7 +5874,7 @@ var re = {}, Hs = {
|
|
|
5848
5874
|
return this.setLatLngs(this._boundsToLatLngs(t));
|
|
5849
5875
|
},
|
|
5850
5876
|
_boundsToLatLngs: function(t) {
|
|
5851
|
-
return t =
|
|
5877
|
+
return t = W(t), [
|
|
5852
5878
|
t.getSouthWest(),
|
|
5853
5879
|
t.getNorthWest(),
|
|
5854
5880
|
t.getNorthEast(),
|
|
@@ -5856,16 +5882,16 @@ var re = {}, Hs = {
|
|
|
5856
5882
|
];
|
|
5857
5883
|
}
|
|
5858
5884
|
});
|
|
5859
|
-
function
|
|
5860
|
-
return new
|
|
5885
|
+
function ys(t, e) {
|
|
5886
|
+
return new kn(t, e);
|
|
5861
5887
|
}
|
|
5862
|
-
|
|
5888
|
+
ae.create = Ce, ae.pointsToPath = Zi, yt.geometryToLayer = we, yt.coordsToLatLng = yi, yt.coordsToLatLngs = Le, yt.latLngToCoords = wi, yt.latLngsToCoords = Pe, yt.getFeature = Ht, yt.asFeature = xe, k.mergeOptions({
|
|
5863
5889
|
// @option boxZoom: Boolean = true
|
|
5864
5890
|
// Whether the map can be zoomed to a rectangular area specified by
|
|
5865
5891
|
// dragging the mouse while pressing the shift key.
|
|
5866
5892
|
boxZoom: !0
|
|
5867
5893
|
});
|
|
5868
|
-
var
|
|
5894
|
+
var En = dt.extend({
|
|
5869
5895
|
initialize: function(t) {
|
|
5870
5896
|
this._map = t, this._container = t._container, this._pane = t._panes.overlayPane, this._resetStateTimeout = 0, t.on("unload", this._destroy, this);
|
|
5871
5897
|
},
|
|
@@ -5890,21 +5916,21 @@ var re = {}, Hs = {
|
|
|
5890
5916
|
_onMouseDown: function(t) {
|
|
5891
5917
|
if (!t.shiftKey || t.which !== 1 && t.button !== 1)
|
|
5892
5918
|
return !1;
|
|
5893
|
-
this._clearDeferredResetState(), this._resetState(),
|
|
5894
|
-
contextmenu:
|
|
5919
|
+
this._clearDeferredResetState(), this._resetState(), $t(), ii(), this._startPoint = this._map.mouseEventToContainerPoint(t), T(document, {
|
|
5920
|
+
contextmenu: Ot,
|
|
5895
5921
|
mousemove: this._onMouseMove,
|
|
5896
5922
|
mouseup: this._onMouseUp,
|
|
5897
5923
|
keydown: this._onKeyDown
|
|
5898
5924
|
}, this);
|
|
5899
5925
|
},
|
|
5900
5926
|
_onMouseMove: function(t) {
|
|
5901
|
-
this._moved || (this._moved = !0, this._box =
|
|
5927
|
+
this._moved || (this._moved = !0, this._box = E("div", "leaflet-zoom-box", this._container), M(this._container, "leaflet-crosshair"), this._map.fire("boxzoomstart")), this._point = this._map.mouseEventToContainerPoint(t);
|
|
5902
5928
|
var e = new N(this._point, this._startPoint), i = e.getSize();
|
|
5903
|
-
|
|
5929
|
+
U(this._box, e.min), this._box.style.width = i.x + "px", this._box.style.height = i.y + "px";
|
|
5904
5930
|
},
|
|
5905
5931
|
_finish: function() {
|
|
5906
|
-
this._moved && (D(this._box), F(this._container, "leaflet-crosshair")),
|
|
5907
|
-
contextmenu:
|
|
5932
|
+
this._moved && (D(this._box), F(this._container, "leaflet-crosshair")), Qt(), ni(), B(document, {
|
|
5933
|
+
contextmenu: Ot,
|
|
5908
5934
|
mousemove: this._onMouseMove,
|
|
5909
5935
|
mouseup: this._onMouseUp,
|
|
5910
5936
|
keydown: this._onKeyDown
|
|
@@ -5913,7 +5939,7 @@ var re = {}, Hs = {
|
|
|
5913
5939
|
_onMouseUp: function(t) {
|
|
5914
5940
|
if (!(t.which !== 1 && t.button !== 1) && (this._finish(), !!this._moved)) {
|
|
5915
5941
|
this._clearDeferredResetState(), this._resetStateTimeout = setTimeout(v(this._resetState, this), 0);
|
|
5916
|
-
var e = new
|
|
5942
|
+
var e = new $(
|
|
5917
5943
|
this._map.containerPointToLatLng(this._startPoint),
|
|
5918
5944
|
this._map.containerPointToLatLng(this._point)
|
|
5919
5945
|
);
|
|
@@ -5924,7 +5950,7 @@ var re = {}, Hs = {
|
|
|
5924
5950
|
t.keyCode === 27 && (this._finish(), this._clearDeferredResetState(), this._resetState());
|
|
5925
5951
|
}
|
|
5926
5952
|
});
|
|
5927
|
-
|
|
5953
|
+
k.addInitHook("addHandler", "boxZoom", En), k.mergeOptions({
|
|
5928
5954
|
// @option doubleClickZoom: Boolean|String = true
|
|
5929
5955
|
// Whether the map can be zoomed in by double clicking on it and
|
|
5930
5956
|
// zoomed out by double clicking while holding shift. If passed
|
|
@@ -5932,7 +5958,7 @@ var re = {}, Hs = {
|
|
|
5932
5958
|
// view regardless of where the mouse was.
|
|
5933
5959
|
doubleClickZoom: !0
|
|
5934
5960
|
});
|
|
5935
|
-
var
|
|
5961
|
+
var Zn = dt.extend({
|
|
5936
5962
|
addHooks: function() {
|
|
5937
5963
|
this._map.on("dblclick", this._onDoubleClick, this);
|
|
5938
5964
|
},
|
|
@@ -5944,7 +5970,7 @@ var re = {}, Hs = {
|
|
|
5944
5970
|
e.options.doubleClickZoom === "center" ? e.setZoom(o) : e.setZoomAround(t.containerPoint, o);
|
|
5945
5971
|
}
|
|
5946
5972
|
});
|
|
5947
|
-
|
|
5973
|
+
k.addInitHook("addHandler", "doubleClickZoom", Zn), k.mergeOptions({
|
|
5948
5974
|
// @option dragging: Boolean = true
|
|
5949
5975
|
// Whether the map is draggable with mouse/touch or not.
|
|
5950
5976
|
dragging: !0,
|
|
@@ -5979,11 +6005,11 @@ var re = {}, Hs = {
|
|
|
5979
6005
|
// solid, preventing the user from dragging outside the bounds.
|
|
5980
6006
|
maxBoundsViscosity: 0
|
|
5981
6007
|
});
|
|
5982
|
-
var
|
|
6008
|
+
var Bn = dt.extend({
|
|
5983
6009
|
addHooks: function() {
|
|
5984
6010
|
if (!this._draggable) {
|
|
5985
6011
|
var t = this._map;
|
|
5986
|
-
this._draggable = new
|
|
6012
|
+
this._draggable = new bt(t._mapPane, t._container), this._draggable.on({
|
|
5987
6013
|
dragstart: this._onDragStart,
|
|
5988
6014
|
drag: this._onDrag,
|
|
5989
6015
|
dragend: this._onDragEnd
|
|
@@ -6003,8 +6029,8 @@ var re = {}, Hs = {
|
|
|
6003
6029
|
_onDragStart: function() {
|
|
6004
6030
|
var t = this._map;
|
|
6005
6031
|
if (t._stop(), this._map.options.maxBounds && this._map.options.maxBoundsViscosity) {
|
|
6006
|
-
var e =
|
|
6007
|
-
this._offsetLimit =
|
|
6032
|
+
var e = W(this._map.options.maxBounds);
|
|
6033
|
+
this._offsetLimit = X(
|
|
6008
6034
|
this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),
|
|
6009
6035
|
this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())
|
|
6010
6036
|
), this._viscosity = Math.min(1, Math.max(0, this._map.options.maxBoundsViscosity));
|
|
@@ -6014,7 +6040,7 @@ var re = {}, Hs = {
|
|
|
6014
6040
|
},
|
|
6015
6041
|
_onDrag: function(t) {
|
|
6016
6042
|
if (this._map.options.inertia) {
|
|
6017
|
-
var e = this._lastTime =
|
|
6043
|
+
var e = this._lastTime = +/* @__PURE__ */ new Date(), i = this._lastPos = this._draggable._absPos || this._draggable._newPos;
|
|
6018
6044
|
this._positions.push(i), this._times.push(e), this._prunePositions(e);
|
|
6019
6045
|
}
|
|
6020
6046
|
this._map.fire("move", t).fire("drag", t);
|
|
@@ -6045,10 +6071,10 @@ var re = {}, Hs = {
|
|
|
6045
6071
|
if (e.fire("dragend", t), n)
|
|
6046
6072
|
e.fire("moveend");
|
|
6047
6073
|
else {
|
|
6048
|
-
this._prunePositions(
|
|
6049
|
-
var o = this._lastPos.subtract(this._positions[0]), s = (this._lastTime - this._times[0]) / 1e3, r = i.easeLinearity, h = o.multiplyBy(r / s), u = h.distanceTo([0, 0]),
|
|
6050
|
-
!
|
|
6051
|
-
e.panBy(
|
|
6074
|
+
this._prunePositions(+/* @__PURE__ */ new Date());
|
|
6075
|
+
var o = this._lastPos.subtract(this._positions[0]), s = (this._lastTime - this._times[0]) / 1e3, r = i.easeLinearity, h = o.multiplyBy(r / s), u = h.distanceTo([0, 0]), l = Math.min(i.inertiaMaxSpeed, u), _ = h.multiplyBy(l / u), y = l / (i.inertiaDeceleration * r), C = _.multiplyBy(-y / 2).round();
|
|
6076
|
+
!C.x && !C.y ? e.fire("moveend") : (C = e._limitOffset(C, e.options.maxBounds), J(function() {
|
|
6077
|
+
e.panBy(C, {
|
|
6052
6078
|
duration: y,
|
|
6053
6079
|
easeLinearity: r,
|
|
6054
6080
|
noMoveStart: !0,
|
|
@@ -6058,7 +6084,7 @@ var re = {}, Hs = {
|
|
|
6058
6084
|
}
|
|
6059
6085
|
}
|
|
6060
6086
|
});
|
|
6061
|
-
|
|
6087
|
+
k.addInitHook("addHandler", "dragging", Bn), k.mergeOptions({
|
|
6062
6088
|
// @option keyboard: Boolean = true
|
|
6063
6089
|
// Makes the map focusable and allows users to navigate the map with keyboard
|
|
6064
6090
|
// arrows and `+`/`-` keys.
|
|
@@ -6067,7 +6093,7 @@ var re = {}, Hs = {
|
|
|
6067
6093
|
// Amount of pixels to pan when pressing an arrow key.
|
|
6068
6094
|
keyboardPanDelta: 80
|
|
6069
6095
|
});
|
|
6070
|
-
var
|
|
6096
|
+
var An = dt.extend({
|
|
6071
6097
|
keyCodes: {
|
|
6072
6098
|
left: [37],
|
|
6073
6099
|
right: [39],
|
|
@@ -6152,11 +6178,11 @@ var re = {}, Hs = {
|
|
|
6152
6178
|
i.closePopup();
|
|
6153
6179
|
else
|
|
6154
6180
|
return;
|
|
6155
|
-
|
|
6181
|
+
Ot(t);
|
|
6156
6182
|
}
|
|
6157
6183
|
}
|
|
6158
6184
|
});
|
|
6159
|
-
|
|
6185
|
+
k.addInitHook("addHandler", "keyboard", An), k.mergeOptions({
|
|
6160
6186
|
// @section Mouse wheel options
|
|
6161
6187
|
// @option scrollWheelZoom: Boolean|String = true
|
|
6162
6188
|
// Whether the map can be zoomed by using the mouse wheel. If passed `'center'`,
|
|
@@ -6172,7 +6198,7 @@ var re = {}, Hs = {
|
|
|
6172
6198
|
// faster (and vice versa).
|
|
6173
6199
|
wheelPxPerZoomLevel: 60
|
|
6174
6200
|
});
|
|
6175
|
-
var
|
|
6201
|
+
var In = dt.extend({
|
|
6176
6202
|
addHooks: function() {
|
|
6177
6203
|
T(this._map._container, "wheel", this._onWheelScroll, this), this._delta = 0;
|
|
6178
6204
|
},
|
|
@@ -6180,10 +6206,10 @@ var re = {}, Hs = {
|
|
|
6180
6206
|
B(this._map._container, "wheel", this._onWheelScroll, this);
|
|
6181
6207
|
},
|
|
6182
6208
|
_onWheelScroll: function(t) {
|
|
6183
|
-
var e =
|
|
6184
|
-
this._delta += e, this._lastMousePos = this._map.mouseEventToContainerPoint(t), this._startTime || (this._startTime =
|
|
6185
|
-
var n = Math.max(i - (
|
|
6186
|
-
clearTimeout(this._timer), this._timer = setTimeout(v(this._performZoom, this), n),
|
|
6209
|
+
var e = rn(t), i = this._map.options.wheelDebounceTime;
|
|
6210
|
+
this._delta += e, this._lastMousePos = this._map.mouseEventToContainerPoint(t), this._startTime || (this._startTime = +/* @__PURE__ */ new Date());
|
|
6211
|
+
var n = Math.max(i - (+/* @__PURE__ */ new Date() - this._startTime), 0);
|
|
6212
|
+
clearTimeout(this._timer), this._timer = setTimeout(v(this._performZoom, this), n), Ot(t);
|
|
6187
6213
|
},
|
|
6188
6214
|
_performZoom: function() {
|
|
6189
6215
|
var t = this._map, e = t.getZoom(), i = this._map.options.zoomSnap || 0;
|
|
@@ -6192,9 +6218,9 @@ var re = {}, Hs = {
|
|
|
6192
6218
|
this._delta = 0, this._startTime = null, r && (t.options.scrollWheelZoom === "center" ? t.setZoom(e + r) : t.setZoomAround(this._lastMousePos, e + r));
|
|
6193
6219
|
}
|
|
6194
6220
|
});
|
|
6195
|
-
|
|
6196
|
-
var
|
|
6197
|
-
|
|
6221
|
+
k.addInitHook("addHandler", "scrollWheelZoom", In);
|
|
6222
|
+
var ws = 600;
|
|
6223
|
+
k.mergeOptions({
|
|
6198
6224
|
// @section Touch interaction options
|
|
6199
6225
|
// @option tapHold: Boolean
|
|
6200
6226
|
// Enables simulation of `contextmenu` event, default is `true` for mobile Safari.
|
|
@@ -6204,7 +6230,7 @@ var re = {}, Hs = {
|
|
|
6204
6230
|
// for it to be considered a valid tap.
|
|
6205
6231
|
tapTolerance: 15
|
|
6206
6232
|
});
|
|
6207
|
-
var
|
|
6233
|
+
var Rn = dt.extend({
|
|
6208
6234
|
addHooks: function() {
|
|
6209
6235
|
T(this._map._container, "touchstart", this._onDown, this);
|
|
6210
6236
|
},
|
|
@@ -6215,12 +6241,12 @@ var re = {}, Hs = {
|
|
|
6215
6241
|
if (clearTimeout(this._holdTimeout), t.touches.length === 1) {
|
|
6216
6242
|
var e = t.touches[0];
|
|
6217
6243
|
this._startPos = this._newPos = new b(e.clientX, e.clientY), this._holdTimeout = setTimeout(v(function() {
|
|
6218
|
-
this._cancel(), this._isTapValid() && (T(document, "touchend",
|
|
6219
|
-
}, this),
|
|
6244
|
+
this._cancel(), this._isTapValid() && (T(document, "touchend", q), T(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e));
|
|
6245
|
+
}, this), ws), T(document, "touchend touchcancel contextmenu", this._cancel, this), T(document, "touchmove", this._onMove, this);
|
|
6220
6246
|
}
|
|
6221
6247
|
},
|
|
6222
6248
|
_cancelClickPrevent: function t() {
|
|
6223
|
-
B(document, "touchend",
|
|
6249
|
+
B(document, "touchend", q), B(document, "touchend touchcancel", t);
|
|
6224
6250
|
},
|
|
6225
6251
|
_cancel: function() {
|
|
6226
6252
|
clearTimeout(this._holdTimeout), B(document, "touchend touchcancel contextmenu", this._cancel, this), B(document, "touchmove", this._onMove, this);
|
|
@@ -6248,7 +6274,7 @@ var re = {}, Hs = {
|
|
|
6248
6274
|
i._simulated = !0, e.target.dispatchEvent(i);
|
|
6249
6275
|
}
|
|
6250
6276
|
});
|
|
6251
|
-
|
|
6277
|
+
k.addInitHook("addHandler", "tapHold", Rn), k.mergeOptions({
|
|
6252
6278
|
// @section Touch interaction options
|
|
6253
6279
|
// @option touchZoom: Boolean|String = *
|
|
6254
6280
|
// Whether the map can be zoomed by touch-dragging with two fingers. If
|
|
@@ -6261,7 +6287,7 @@ var re = {}, Hs = {
|
|
|
6261
6287
|
// and then bounce back when pinch-zooming.
|
|
6262
6288
|
bounceAtZoomLimits: !0
|
|
6263
6289
|
});
|
|
6264
|
-
var
|
|
6290
|
+
var Nn = dt.extend({
|
|
6265
6291
|
addHooks: function() {
|
|
6266
6292
|
M(this._map._container, "leaflet-touch-zoom"), T(this._map._container, "touchstart", this._onTouchStart, this);
|
|
6267
6293
|
},
|
|
@@ -6272,7 +6298,7 @@ var re = {}, Hs = {
|
|
|
6272
6298
|
var e = this._map;
|
|
6273
6299
|
if (!(!t.touches || t.touches.length !== 2 || e._animatingZoom || this._zooming)) {
|
|
6274
6300
|
var i = e.mouseEventToContainerPoint(t.touches[0]), n = e.mouseEventToContainerPoint(t.touches[1]);
|
|
6275
|
-
this._centerPoint = e.getSize()._divideBy(2), this._startLatLng = e.containerPointToLatLng(this._centerPoint), e.options.touchZoom !== "center" && (this._pinchStartLatLng = e.containerPointToLatLng(i.add(n)._divideBy(2))), this._startDist = i.distanceTo(n), this._startZoom = e.getZoom(), this._moved = !1, this._zooming = !0, e._stop(), T(document, "touchmove", this._onTouchMove, this), T(document, "touchend touchcancel", this._onTouchEnd, this),
|
|
6301
|
+
this._centerPoint = e.getSize()._divideBy(2), this._startLatLng = e.containerPointToLatLng(this._centerPoint), e.options.touchZoom !== "center" && (this._pinchStartLatLng = e.containerPointToLatLng(i.add(n)._divideBy(2))), this._startDist = i.distanceTo(n), this._startZoom = e.getZoom(), this._moved = !1, this._zooming = !0, e._stop(), T(document, "touchmove", this._onTouchMove, this), T(document, "touchend touchcancel", this._onTouchEnd, this), q(t);
|
|
6276
6302
|
}
|
|
6277
6303
|
},
|
|
6278
6304
|
_onTouchMove: function(t) {
|
|
@@ -6287,9 +6313,9 @@ var re = {}, Hs = {
|
|
|
6287
6313
|
return;
|
|
6288
6314
|
this._center = e.unproject(e.project(this._pinchStartLatLng, this._zoom).subtract(s), this._zoom);
|
|
6289
6315
|
}
|
|
6290
|
-
this._moved || (e._moveStart(!0, !1), this._moved = !0),
|
|
6316
|
+
this._moved || (e._moveStart(!0, !1), this._moved = !0), nt(this._animRequest);
|
|
6291
6317
|
var r = v(e._move, e, this._center, this._zoom, { pinch: !0, round: !1 }, void 0);
|
|
6292
|
-
this._animRequest =
|
|
6318
|
+
this._animRequest = J(r, this, !0), q(t);
|
|
6293
6319
|
}
|
|
6294
6320
|
},
|
|
6295
6321
|
_onTouchEnd: function() {
|
|
@@ -6297,87 +6323,88 @@ var re = {}, Hs = {
|
|
|
6297
6323
|
this._zooming = !1;
|
|
6298
6324
|
return;
|
|
6299
6325
|
}
|
|
6300
|
-
this._zooming = !1,
|
|
6326
|
+
this._zooming = !1, nt(this._animRequest), B(document, "touchmove", this._onTouchMove, this), B(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));
|
|
6301
6327
|
}
|
|
6302
6328
|
});
|
|
6303
|
-
|
|
6304
|
-
var
|
|
6329
|
+
k.addInitHook("addHandler", "touchZoom", Nn), k.BoxZoom = En, k.DoubleClickZoom = Zn, k.Drag = Bn, k.Keyboard = An, k.ScrollWheelZoom = In, k.TapHold = Rn, k.TouchZoom = Nn, a.Bounds = N, a.Browser = p, a.CRS = pt, a.Canvas = Sn, a.Circle = gi, a.CircleMarker = ye, a.Class = mt, a.Control = ht, a.DivIcon = Tn, a.DivOverlay = ft, a.DomEvent = No, a.DomUtil = Io, a.Draggable = bt, a.Evented = qt, a.FeatureGroup = vt, a.GeoJSON = yt, a.GridLayer = se, a.Handler = dt, a.Icon = Nt, a.ImageOverlay = be, a.LatLng = Z, a.LatLngBounds = $, a.Layer = ut, a.LayerGroup = Rt, a.LineUtil = Xo, a.Map = k, a.Marker = ge, a.Mixin = Go, a.Path = Tt, a.Point = b, a.PolyUtil = Vo, a.Polygon = Dt, a.Polyline = gt, a.Popup = Te, a.PosAnimation = an, a.Projection = $o, a.Rectangle = kn, a.Renderer = wt, a.SVG = ae, a.SVGOverlay = bn, a.TileLayer = Ft, a.Tooltip = Me, a.Transformation = je, a.Util = no, a.VideoOverlay = xn, a.bind = v, a.bounds = X, a.canvas = zn, a.circle = rs, a.circleMarker = ss, a.control = ie, a.divIcon = ms, a.extend = m, a.featureGroup = is, a.geoJSON = Pn, a.geoJson = us, a.gridLayer = ps, a.icon = ns, a.imageOverlay = ls, a.latLng = O, a.latLngBounds = W, a.layerGroup = es, a.map = Do, a.marker = os, a.point = P, a.polygon = hs, a.polyline = as, a.popup = fs, a.rectangle = ys, a.setOptions = z, a.stamp = g, a.svg = On, a.svgOverlay = ds, a.tileLayer = Mn, a.tooltip = _s, a.transformation = Kt, a.version = d, a.videoOverlay = cs;
|
|
6330
|
+
var Ls = window.L;
|
|
6305
6331
|
a.noConflict = function() {
|
|
6306
|
-
return window.L =
|
|
6332
|
+
return window.L = Ls, this;
|
|
6307
6333
|
}, window.L = a;
|
|
6308
6334
|
});
|
|
6309
|
-
})(
|
|
6310
|
-
|
|
6335
|
+
})(Mi, Mi.exports);
|
|
6336
|
+
var Kn = Mi.exports;
|
|
6337
|
+
const Us = /* @__PURE__ */ Zs(Kn), js = /* @__PURE__ */ Ws({
|
|
6311
6338
|
__proto__: null,
|
|
6312
|
-
default:
|
|
6313
|
-
}, [
|
|
6339
|
+
default: Us
|
|
6340
|
+
}, [Kn]), Yn = (c, f = 100) => {
|
|
6314
6341
|
let a;
|
|
6315
6342
|
const d = function(...m) {
|
|
6316
6343
|
const w = this;
|
|
6317
6344
|
a && clearTimeout(a), a = setTimeout(() => {
|
|
6318
|
-
|
|
6345
|
+
c.apply(w, m), a = null;
|
|
6319
6346
|
}, f);
|
|
6320
6347
|
};
|
|
6321
6348
|
return d.cancel = function() {
|
|
6322
6349
|
a && clearTimeout(a);
|
|
6323
6350
|
}, d;
|
|
6324
|
-
},
|
|
6325
|
-
for (const f of Object.values(
|
|
6326
|
-
f &&
|
|
6327
|
-
},
|
|
6351
|
+
}, Jn = function(c) {
|
|
6352
|
+
for (const f of Object.values(c))
|
|
6353
|
+
f && Et(f.cancel) && f.cancel();
|
|
6354
|
+
}, Gs = (c) => !c || typeof c.charAt != "function" ? c : c.charAt(0).toUpperCase() + c.slice(1), Et = (c) => typeof c == "function", De = (c, f, a) => {
|
|
6328
6355
|
for (const d in a) {
|
|
6329
|
-
const m = "set" +
|
|
6330
|
-
|
|
6356
|
+
const m = "set" + Gs(d);
|
|
6357
|
+
c[m] ? Un(
|
|
6331
6358
|
() => a[d],
|
|
6332
6359
|
(w, v) => {
|
|
6333
|
-
|
|
6360
|
+
c[m](w, v);
|
|
6334
6361
|
}
|
|
6335
|
-
) : f[m] &&
|
|
6362
|
+
) : f[m] && Un(
|
|
6336
6363
|
() => a[d],
|
|
6337
6364
|
(w) => {
|
|
6338
6365
|
f[m](w);
|
|
6339
6366
|
}
|
|
6340
6367
|
);
|
|
6341
6368
|
}
|
|
6342
|
-
},
|
|
6369
|
+
}, he = (c, f, a = {}) => {
|
|
6343
6370
|
const d = { ...a };
|
|
6344
|
-
for (const m in
|
|
6345
|
-
const w = f[m], v =
|
|
6371
|
+
for (const m in c) {
|
|
6372
|
+
const w = f[m], v = c[m];
|
|
6346
6373
|
w && (w && w.custom === !0 || v !== void 0 && (d[m] = v));
|
|
6347
6374
|
}
|
|
6348
6375
|
return d;
|
|
6349
|
-
}, He = (
|
|
6376
|
+
}, He = (c) => {
|
|
6350
6377
|
const f = {};
|
|
6351
|
-
for (const a in
|
|
6378
|
+
for (const a in c)
|
|
6352
6379
|
if (a.startsWith("on") && !a.startsWith("onUpdate") && a !== "onReady") {
|
|
6353
6380
|
const d = a.slice(2).toLocaleLowerCase();
|
|
6354
|
-
f[d] =
|
|
6381
|
+
f[d] = c[a];
|
|
6355
6382
|
}
|
|
6356
6383
|
return f;
|
|
6357
|
-
},
|
|
6384
|
+
}, Vs = async (c) => {
|
|
6358
6385
|
const f = await Promise.all([
|
|
6359
6386
|
import("./marker-icon-2x-b9d2094a.js"),
|
|
6360
6387
|
import("./marker-icon-b2ca459f.js"),
|
|
6361
6388
|
import("./marker-shadow-eea80fe0.js")
|
|
6362
6389
|
]);
|
|
6363
|
-
delete
|
|
6390
|
+
delete c.Default.prototype._getIconUrl, c.Default.mergeOptions({
|
|
6364
6391
|
iconRetinaUrl: f[0].default,
|
|
6365
6392
|
iconUrl: f[1].default,
|
|
6366
6393
|
shadowUrl: f[2].default
|
|
6367
6394
|
});
|
|
6368
|
-
}, Ee = (
|
|
6369
|
-
const f =
|
|
6370
|
-
() => console.warn(`Method ${
|
|
6395
|
+
}, Ee = (c) => {
|
|
6396
|
+
const f = Lt(
|
|
6397
|
+
() => console.warn(`Method ${c} has been invoked without being replaced`)
|
|
6371
6398
|
), a = (...d) => f.value(...d);
|
|
6372
|
-
return a.wrapped = f,
|
|
6373
|
-
}, Ze = (
|
|
6399
|
+
return a.wrapped = f, Pt(c, a), a;
|
|
6400
|
+
}, Ze = (c, f) => c.wrapped.value = f, Ut = typeof self == "object" && self.self === self && self || typeof global == "object" && global.global === global && global || void 0, Fe = "useGlobalLeaflet", Xn = {
|
|
6374
6401
|
options: {
|
|
6375
6402
|
type: Object,
|
|
6376
6403
|
default: () => ({}),
|
|
6377
6404
|
custom: !0
|
|
6378
6405
|
}
|
|
6379
|
-
},
|
|
6380
|
-
...
|
|
6406
|
+
}, $n = (c) => ({ options: c.options, methods: {} }), jt = {
|
|
6407
|
+
...Xn,
|
|
6381
6408
|
pane: {
|
|
6382
6409
|
type: String
|
|
6383
6410
|
},
|
|
@@ -6397,60 +6424,60 @@ const Fs = re, Ws = /* @__PURE__ */ Ds({
|
|
|
6397
6424
|
custom: !0,
|
|
6398
6425
|
default: !0
|
|
6399
6426
|
}
|
|
6400
|
-
},
|
|
6401
|
-
const d =
|
|
6427
|
+
}, Qn = (c, f, a) => {
|
|
6428
|
+
const d = Mt("addLayer"), m = Mt("removeLayer"), {
|
|
6402
6429
|
options: w,
|
|
6403
6430
|
methods: v
|
|
6404
|
-
} =
|
|
6431
|
+
} = $n(c), A = he(c, jt, w), g = () => d({ leafletObject: f.value }), I = () => m({ leafletObject: f.value }), H = {
|
|
6405
6432
|
...v,
|
|
6406
|
-
setAttribution(
|
|
6407
|
-
I(), f.value.options.attribution =
|
|
6433
|
+
setAttribution(S) {
|
|
6434
|
+
I(), f.value.options.attribution = S, c.visible && g();
|
|
6408
6435
|
},
|
|
6409
6436
|
setName() {
|
|
6410
|
-
I(),
|
|
6437
|
+
I(), c.visible && g();
|
|
6411
6438
|
},
|
|
6412
6439
|
setLayerType() {
|
|
6413
|
-
I(),
|
|
6440
|
+
I(), c.visible && g();
|
|
6414
6441
|
},
|
|
6415
|
-
setVisible(
|
|
6416
|
-
f.value && (
|
|
6442
|
+
setVisible(S) {
|
|
6443
|
+
f.value && (S ? g() : I());
|
|
6417
6444
|
},
|
|
6418
|
-
bindPopup({ leafletObject:
|
|
6419
|
-
if (!f.value || !
|
|
6445
|
+
bindPopup({ leafletObject: S }) {
|
|
6446
|
+
if (!f.value || !Et(f.value.bindPopup)) {
|
|
6420
6447
|
console.warn(
|
|
6421
6448
|
"Attempt to bind popup before bindPopup method available on layer."
|
|
6422
6449
|
);
|
|
6423
6450
|
return;
|
|
6424
6451
|
}
|
|
6425
|
-
f.value.bindPopup(
|
|
6452
|
+
f.value.bindPopup(S);
|
|
6426
6453
|
},
|
|
6427
|
-
bindTooltip({ leafletObject:
|
|
6428
|
-
if (!f.value || !
|
|
6454
|
+
bindTooltip({ leafletObject: S }) {
|
|
6455
|
+
if (!f.value || !Et(f.value.bindTooltip)) {
|
|
6429
6456
|
console.warn(
|
|
6430
6457
|
"Attempt to bind tooltip before bindTooltip method available on layer."
|
|
6431
6458
|
);
|
|
6432
6459
|
return;
|
|
6433
6460
|
}
|
|
6434
|
-
f.value.bindTooltip(
|
|
6461
|
+
f.value.bindTooltip(S);
|
|
6435
6462
|
},
|
|
6436
6463
|
unbindTooltip() {
|
|
6437
|
-
f.value && (
|
|
6464
|
+
f.value && (Et(f.value.closeTooltip) && f.value.closeTooltip(), Et(f.value.unbindTooltip) && f.value.unbindTooltip());
|
|
6438
6465
|
},
|
|
6439
6466
|
unbindPopup() {
|
|
6440
|
-
f.value && (
|
|
6467
|
+
f.value && (Et(f.value.closePopup) && f.value.closePopup(), Et(f.value.unbindPopup) && f.value.unbindPopup());
|
|
6441
6468
|
},
|
|
6442
|
-
updateVisibleProp(
|
|
6443
|
-
a.emit("update:visible",
|
|
6469
|
+
updateVisibleProp(S) {
|
|
6470
|
+
a.emit("update:visible", S);
|
|
6444
6471
|
}
|
|
6445
6472
|
};
|
|
6446
|
-
return
|
|
6473
|
+
return Pt("bindPopup", H.bindPopup), Pt("bindTooltip", H.bindTooltip), Pt("unbindTooltip", H.unbindTooltip), Pt("unbindPopup", H.unbindPopup), qn(() => {
|
|
6447
6474
|
H.unbindPopup(), H.unbindTooltip(), I();
|
|
6448
6475
|
}), { options: A, methods: H };
|
|
6449
|
-
},
|
|
6450
|
-
if (
|
|
6476
|
+
}, qs = (c, f) => {
|
|
6477
|
+
if (c && f.default)
|
|
6451
6478
|
return Be("div", { style: { display: "none" } }, f.default());
|
|
6452
|
-
},
|
|
6453
|
-
...
|
|
6479
|
+
}, Ks = {
|
|
6480
|
+
...jt,
|
|
6454
6481
|
interactive: {
|
|
6455
6482
|
type: Boolean,
|
|
6456
6483
|
default: void 0
|
|
@@ -6459,8 +6486,8 @@ const Fs = re, Ws = /* @__PURE__ */ Ds({
|
|
|
6459
6486
|
type: Boolean,
|
|
6460
6487
|
default: void 0
|
|
6461
6488
|
}
|
|
6462
|
-
},
|
|
6463
|
-
...
|
|
6489
|
+
}, Ys = {
|
|
6490
|
+
...Ks,
|
|
6464
6491
|
stroke: {
|
|
6465
6492
|
type: Boolean,
|
|
6466
6493
|
default: void 0
|
|
@@ -6504,10 +6531,10 @@ const Fs = re, Ws = /* @__PURE__ */ Ds({
|
|
|
6504
6531
|
}
|
|
6505
6532
|
};
|
|
6506
6533
|
({
|
|
6507
|
-
...
|
|
6534
|
+
...jt
|
|
6508
6535
|
});
|
|
6509
|
-
const
|
|
6510
|
-
...
|
|
6536
|
+
const Ci = {
|
|
6537
|
+
...jt,
|
|
6511
6538
|
opacity: {
|
|
6512
6539
|
type: Number
|
|
6513
6540
|
},
|
|
@@ -6527,22 +6554,22 @@ const Mi = {
|
|
|
6527
6554
|
maxZoom: {
|
|
6528
6555
|
type: Number
|
|
6529
6556
|
}
|
|
6530
|
-
},
|
|
6531
|
-
const { options: d, methods: m } =
|
|
6532
|
-
|
|
6557
|
+
}, to = (c, f, a) => {
|
|
6558
|
+
const { options: d, methods: m } = Qn(
|
|
6559
|
+
c,
|
|
6533
6560
|
f,
|
|
6534
6561
|
a
|
|
6535
6562
|
);
|
|
6536
|
-
return { options:
|
|
6563
|
+
return { options: he(c, Ci, d), methods: { ...m } };
|
|
6537
6564
|
};
|
|
6538
6565
|
({
|
|
6539
|
-
...
|
|
6566
|
+
...Ci
|
|
6540
6567
|
});
|
|
6541
6568
|
({
|
|
6542
|
-
...
|
|
6569
|
+
...jt
|
|
6543
6570
|
});
|
|
6544
|
-
const
|
|
6545
|
-
...
|
|
6571
|
+
const Gn = {
|
|
6572
|
+
...Xn,
|
|
6546
6573
|
/**
|
|
6547
6574
|
* The center of the map, supports .sync modifier
|
|
6548
6575
|
*/
|
|
@@ -6653,40 +6680,40 @@ const jn = {
|
|
|
6653
6680
|
default: !0,
|
|
6654
6681
|
custom: !0
|
|
6655
6682
|
}
|
|
6656
|
-
},
|
|
6683
|
+
}, Js = {
|
|
6657
6684
|
emits: ["ready", "update:zoom", "update:center", "update:bounds"],
|
|
6658
|
-
props:
|
|
6659
|
-
setup(
|
|
6660
|
-
const a =
|
|
6685
|
+
props: Gn,
|
|
6686
|
+
setup(c, f) {
|
|
6687
|
+
const a = Lt(null), d = Ns({
|
|
6661
6688
|
ready: !1,
|
|
6662
6689
|
leafletRef: {},
|
|
6663
6690
|
layersToAdd: [],
|
|
6664
6691
|
layersInControl: []
|
|
6665
|
-
}), { options: m } =
|
|
6666
|
-
|
|
6692
|
+
}), { options: m } = $n(c), w = he(c, Gn, m), v = Ee("addLayer"), A = Ee("removeLayer"), g = Ee("registerControl"), I = Ee("registerLayerControl");
|
|
6693
|
+
Pt(Fe, c.useGlobalLeaflet);
|
|
6667
6694
|
const H = {
|
|
6668
|
-
moveEndHandler:
|
|
6695
|
+
moveEndHandler: Yn(() => {
|
|
6669
6696
|
f.emit("update:zoom", d.leafletRef.getZoom()), f.emit("update:center", d.leafletRef.getCenter()), f.emit("update:bounds", d.leafletRef.getBounds());
|
|
6670
6697
|
}),
|
|
6671
|
-
overlayAddHandler(
|
|
6672
|
-
const
|
|
6673
|
-
|
|
6698
|
+
overlayAddHandler(at) {
|
|
6699
|
+
const G = d.layersInControl.find((z) => z.name === at.name);
|
|
6700
|
+
G && G.updateVisibleProp(!0);
|
|
6674
6701
|
},
|
|
6675
|
-
overlayRemoveHandler(
|
|
6676
|
-
const
|
|
6677
|
-
|
|
6702
|
+
overlayRemoveHandler(at) {
|
|
6703
|
+
const G = d.layersInControl.find((z) => z.name === at.name);
|
|
6704
|
+
G && G.updateVisibleProp(!1);
|
|
6678
6705
|
}
|
|
6679
6706
|
};
|
|
6680
6707
|
Ie(async () => {
|
|
6681
|
-
|
|
6708
|
+
c.useGlobalLeaflet && (Ut.L = Ut.L || await Promise.resolve().then(() => js));
|
|
6682
6709
|
const {
|
|
6683
|
-
map:
|
|
6684
|
-
CRS:
|
|
6710
|
+
map: at,
|
|
6711
|
+
CRS: G,
|
|
6685
6712
|
Icon: z,
|
|
6686
|
-
latLngBounds:
|
|
6687
|
-
latLng:
|
|
6688
|
-
DomEvent:
|
|
6689
|
-
} =
|
|
6713
|
+
latLngBounds: it,
|
|
6714
|
+
latLng: Gt,
|
|
6715
|
+
DomEvent: ue
|
|
6716
|
+
} = c.useGlobalLeaflet ? Ut.L : await import("./leaflet-src.esm-a9ea7d3e.js");
|
|
6690
6717
|
try {
|
|
6691
6718
|
w.beforeMapMount && await w.beforeMapMount();
|
|
6692
6719
|
} catch (x) {
|
|
@@ -6694,10 +6721,10 @@ const jn = {
|
|
|
6694
6721
|
`The following error occurred running the provided beforeMapMount hook ${x.message}`
|
|
6695
6722
|
);
|
|
6696
6723
|
}
|
|
6697
|
-
await
|
|
6698
|
-
const
|
|
6699
|
-
w.crs =
|
|
6700
|
-
const
|
|
6724
|
+
await Vs(z);
|
|
6725
|
+
const tt = typeof w.crs == "string" ? G[w.crs] : w.crs;
|
|
6726
|
+
w.crs = tt || G.EPSG3857;
|
|
6727
|
+
const _t = {
|
|
6701
6728
|
addLayer(x) {
|
|
6702
6729
|
x.layerType !== void 0 && (d.layerControl === void 0 ? d.layersToAdd.push(x) : d.layersInControl.find(
|
|
6703
6730
|
(R) => R.leafletObject._leaflet_id === x.leafletObject._leaflet_id
|
|
@@ -6721,7 +6748,7 @@ const jn = {
|
|
|
6721
6748
|
setZoom(x) {
|
|
6722
6749
|
const R = d.leafletRef.getZoom();
|
|
6723
6750
|
x !== R && d.leafletRef.setZoom(x, {
|
|
6724
|
-
animate:
|
|
6751
|
+
animate: c.noBlockingAnimations ? !1 : null
|
|
6725
6752
|
});
|
|
6726
6753
|
},
|
|
6727
6754
|
setPaddingBottomRight(x) {
|
|
@@ -6748,29 +6775,29 @@ const jn = {
|
|
|
6748
6775
|
setBounds(x) {
|
|
6749
6776
|
if (!x)
|
|
6750
6777
|
return;
|
|
6751
|
-
const R =
|
|
6778
|
+
const R = it(x);
|
|
6752
6779
|
R.isValid() && !(d.lastSetBounds || d.leafletRef.getBounds()).equals(R, 0) && (d.lastSetBounds = R, d.leafletRef.fitBounds(R, this.fitBoundsOptions));
|
|
6753
6780
|
},
|
|
6754
6781
|
setCenter(x) {
|
|
6755
6782
|
if (x == null)
|
|
6756
6783
|
return;
|
|
6757
|
-
const R =
|
|
6758
|
-
(
|
|
6784
|
+
const R = Gt(x), Vt = d.lastSetCenter || d.leafletRef.getCenter();
|
|
6785
|
+
(Vt.lat !== R.lat || Vt.lng !== R.lng) && (d.lastSetCenter = R, d.leafletRef.panTo(R, {
|
|
6759
6786
|
animate: this.noBlockingAnimations ? !1 : null
|
|
6760
6787
|
}));
|
|
6761
6788
|
}
|
|
6762
6789
|
};
|
|
6763
|
-
Ze(v,
|
|
6764
|
-
const
|
|
6790
|
+
Ze(v, _t.addLayer), Ze(A, _t.removeLayer), Ze(g, _t.registerControl), Ze(I, _t.registerLayerControl), d.leafletRef = Re(at(a.value, w)), De(_t, d.leafletRef, c);
|
|
6791
|
+
const Zt = He(f.attrs);
|
|
6765
6792
|
d.leafletRef.on("moveend", H.moveEndHandler), d.leafletRef.on("overlayadd", H.overlayAddHandler), d.leafletRef.on(
|
|
6766
6793
|
"overlayremove",
|
|
6767
6794
|
H.overlayRemoveHandler
|
|
6768
|
-
),
|
|
6769
|
-
}),
|
|
6770
|
-
|
|
6795
|
+
), ue.on(d.leafletRef, Zt), d.ready = !0, Ne(() => f.emit("ready", d.leafletRef));
|
|
6796
|
+
}), Vn(() => {
|
|
6797
|
+
Jn(H), d.leafletRef && (d.leafletRef.off(), d.leafletRef.remove());
|
|
6771
6798
|
});
|
|
6772
|
-
const
|
|
6773
|
-
return { root: a, ready:
|
|
6799
|
+
const S = Wn(() => d.leafletRef), K = Wn(() => d.ready);
|
|
6800
|
+
return { root: a, ready: K, leafletObject: S };
|
|
6774
6801
|
},
|
|
6775
6802
|
render() {
|
|
6776
6803
|
return Be(
|
|
@@ -6779,8 +6806,8 @@ const jn = {
|
|
|
6779
6806
|
this.ready && this.$slots.default ? this.$slots.default() : {}
|
|
6780
6807
|
);
|
|
6781
6808
|
}
|
|
6782
|
-
},
|
|
6783
|
-
...
|
|
6809
|
+
}, Xs = Js, $s = ["Symbol(Comment)", "Symbol(Text)"], Qs = ["LTooltip", "LPopup"], eo = {
|
|
6810
|
+
...jt,
|
|
6784
6811
|
draggable: {
|
|
6785
6812
|
type: Boolean,
|
|
6786
6813
|
default: void 0
|
|
@@ -6796,12 +6823,12 @@ const jn = {
|
|
|
6796
6823
|
custom: !0,
|
|
6797
6824
|
required: !0
|
|
6798
6825
|
}
|
|
6799
|
-
},
|
|
6800
|
-
const { options: d, methods: m } =
|
|
6801
|
-
|
|
6826
|
+
}, tr = (c, f, a) => {
|
|
6827
|
+
const { options: d, methods: m } = Qn(
|
|
6828
|
+
c,
|
|
6802
6829
|
f,
|
|
6803
6830
|
a
|
|
6804
|
-
), w =
|
|
6831
|
+
), w = he(c, eo, d), v = {
|
|
6805
6832
|
...m,
|
|
6806
6833
|
setDraggable(A) {
|
|
6807
6834
|
f.value.dragging && (A ? f.value.dragging.enable() : f.value.dragging.disable());
|
|
@@ -6817,44 +6844,44 @@ const jn = {
|
|
|
6817
6844
|
}
|
|
6818
6845
|
};
|
|
6819
6846
|
return { options: w, methods: v };
|
|
6820
|
-
},
|
|
6847
|
+
}, er = (c, f) => {
|
|
6821
6848
|
const a = f.slots.default && f.slots.default();
|
|
6822
|
-
return a && a.length && a.some(
|
|
6849
|
+
return a && a.length && a.some(ir);
|
|
6823
6850
|
};
|
|
6824
|
-
function
|
|
6825
|
-
return !(
|
|
6851
|
+
function ir(c) {
|
|
6852
|
+
return !($s.includes(c.type.toString()) || Qs.includes(c.type.name));
|
|
6826
6853
|
}
|
|
6827
|
-
const
|
|
6854
|
+
const nr = {
|
|
6828
6855
|
name: "LMarker",
|
|
6829
|
-
props:
|
|
6830
|
-
setup(
|
|
6831
|
-
const a =
|
|
6832
|
-
|
|
6856
|
+
props: eo,
|
|
6857
|
+
setup(c, f) {
|
|
6858
|
+
const a = Lt({}), d = Lt(!1), m = Mt(Fe), w = Mt("addLayer");
|
|
6859
|
+
Pt("canSetParentHtml", () => !!a.value.getElement()), Pt(
|
|
6833
6860
|
"setParentHtml",
|
|
6834
6861
|
(I) => a.value.getElement().innerHTML = I
|
|
6835
|
-
),
|
|
6862
|
+
), Pt(
|
|
6836
6863
|
"setIcon",
|
|
6837
6864
|
(I) => a.value.setIcon && a.value.setIcon(I)
|
|
6838
6865
|
);
|
|
6839
|
-
const { options: v, methods: A } =
|
|
6840
|
-
moveHandler:
|
|
6866
|
+
const { options: v, methods: A } = tr(c, a, f), g = {
|
|
6867
|
+
moveHandler: Yn(A.latLngSync)
|
|
6841
6868
|
};
|
|
6842
6869
|
return Ie(async () => {
|
|
6843
|
-
const { marker: I, DomEvent: H, divIcon:
|
|
6844
|
-
|
|
6845
|
-
const
|
|
6846
|
-
H.on(a.value,
|
|
6847
|
-
...
|
|
6870
|
+
const { marker: I, DomEvent: H, divIcon: S } = m ? Ut.L : await import("./leaflet-src.esm-a9ea7d3e.js");
|
|
6871
|
+
er(v, f) && (v.icon = S({ className: "" })), a.value = Re(I(c.latLng, v));
|
|
6872
|
+
const K = He(f.attrs);
|
|
6873
|
+
H.on(a.value, K), a.value.on("move", g.moveHandler), De(A, a.value, c), w({
|
|
6874
|
+
...c,
|
|
6848
6875
|
...A,
|
|
6849
6876
|
leafletObject: a.value
|
|
6850
6877
|
}), d.value = !0, Ne(() => f.emit("ready", a.value));
|
|
6851
|
-
}),
|
|
6878
|
+
}), Vn(() => Jn(g)), { ready: d, leafletObject: a };
|
|
6852
6879
|
},
|
|
6853
6880
|
render() {
|
|
6854
|
-
return
|
|
6881
|
+
return qs(this.ready, this.$slots);
|
|
6855
6882
|
}
|
|
6856
|
-
},
|
|
6857
|
-
...
|
|
6883
|
+
}, or = nr, sr = {
|
|
6884
|
+
...Ys,
|
|
6858
6885
|
smoothFactor: {
|
|
6859
6886
|
type: Number
|
|
6860
6887
|
},
|
|
@@ -6867,19 +6894,19 @@ const er = {
|
|
|
6867
6894
|
required: !0,
|
|
6868
6895
|
custom: !0
|
|
6869
6896
|
}
|
|
6870
|
-
},
|
|
6871
|
-
...
|
|
6897
|
+
}, rr = {
|
|
6898
|
+
...sr
|
|
6872
6899
|
};
|
|
6873
|
-
|
|
6874
|
-
const
|
|
6875
|
-
...
|
|
6900
|
+
rr.latLngs.required = !1;
|
|
6901
|
+
const Si = {
|
|
6902
|
+
...Ci,
|
|
6876
6903
|
tms: {
|
|
6877
6904
|
type: Boolean,
|
|
6878
6905
|
default: void 0
|
|
6879
6906
|
},
|
|
6880
6907
|
subdomains: {
|
|
6881
6908
|
type: [String, Array],
|
|
6882
|
-
validator: (
|
|
6909
|
+
validator: (c) => typeof c == "string" ? !0 : Array.isArray(c) ? c.every((f) => typeof f == "string") : !1
|
|
6883
6910
|
},
|
|
6884
6911
|
detectRetina: {
|
|
6885
6912
|
type: Boolean,
|
|
@@ -6890,28 +6917,28 @@ const Ci = {
|
|
|
6890
6917
|
required: !0,
|
|
6891
6918
|
custom: !0
|
|
6892
6919
|
}
|
|
6893
|
-
},
|
|
6920
|
+
}, ar = (c, f, a) => {
|
|
6894
6921
|
const {
|
|
6895
6922
|
options: d,
|
|
6896
6923
|
methods: m
|
|
6897
|
-
} =
|
|
6898
|
-
|
|
6899
|
-
|
|
6924
|
+
} = to(c, f, a), w = he(
|
|
6925
|
+
c,
|
|
6926
|
+
Si,
|
|
6900
6927
|
d
|
|
6901
6928
|
), v = {
|
|
6902
6929
|
...m
|
|
6903
6930
|
};
|
|
6904
6931
|
return { options: w, methods: v };
|
|
6905
|
-
},
|
|
6906
|
-
props:
|
|
6907
|
-
setup(
|
|
6908
|
-
const a =
|
|
6932
|
+
}, hr = {
|
|
6933
|
+
props: Si,
|
|
6934
|
+
setup(c, f) {
|
|
6935
|
+
const a = Lt({}), d = Mt(Fe), m = Mt("addLayer"), { options: w, methods: v } = ar(c, a, f);
|
|
6909
6936
|
return Ie(async () => {
|
|
6910
|
-
const { tileLayer: A, DomEvent: g } = d ?
|
|
6911
|
-
a.value = Re(A(
|
|
6937
|
+
const { tileLayer: A, DomEvent: g } = d ? Ut.L : await import("./leaflet-src.esm-a9ea7d3e.js");
|
|
6938
|
+
a.value = Re(A(c.url, w));
|
|
6912
6939
|
const I = He(f.attrs);
|
|
6913
|
-
g.on(a.value, I), De(v, a.value,
|
|
6914
|
-
...
|
|
6940
|
+
g.on(a.value, I), De(v, a.value, c), m({
|
|
6941
|
+
...c,
|
|
6915
6942
|
...v,
|
|
6916
6943
|
leafletObject: a.value
|
|
6917
6944
|
}), Ne(() => f.emit("ready", a.value));
|
|
@@ -6920,16 +6947,16 @@ const Ci = {
|
|
|
6920
6947
|
render() {
|
|
6921
6948
|
return null;
|
|
6922
6949
|
}
|
|
6923
|
-
},
|
|
6950
|
+
}, ur = hr;
|
|
6924
6951
|
({
|
|
6925
|
-
...
|
|
6952
|
+
...Si
|
|
6926
6953
|
});
|
|
6927
|
-
var
|
|
6928
|
-
for (var m = d > 1 ? void 0 : d ?
|
|
6929
|
-
(v =
|
|
6930
|
-
return d && m &&
|
|
6954
|
+
var lr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, io = (c, f, a, d) => {
|
|
6955
|
+
for (var m = d > 1 ? void 0 : d ? cr(f, a) : f, w = c.length - 1, v; w >= 0; w--)
|
|
6956
|
+
(v = c[w]) && (m = (d ? v(f, a, m) : v(m)) || m);
|
|
6957
|
+
return d && m && lr(f, a, m), m;
|
|
6931
6958
|
};
|
|
6932
|
-
let Ae = class extends
|
|
6959
|
+
let Ae = class extends Bs {
|
|
6933
6960
|
constructor() {
|
|
6934
6961
|
super(...arguments);
|
|
6935
6962
|
ze(this, "f");
|
|
@@ -6946,35 +6973,35 @@ let Ae = class extends ks {
|
|
|
6946
6973
|
this.marker = this.center;
|
|
6947
6974
|
}
|
|
6948
6975
|
};
|
|
6949
|
-
|
|
6950
|
-
|
|
6976
|
+
io([
|
|
6977
|
+
As({ required: !0 })
|
|
6951
6978
|
], Ae.prototype, "f", 2);
|
|
6952
|
-
Ae =
|
|
6953
|
-
|
|
6979
|
+
Ae = io([
|
|
6980
|
+
Is({ components: { LMap: Xs, LTileLayer: ur, LMarker: or } })
|
|
6954
6981
|
], Ae);
|
|
6955
|
-
const
|
|
6982
|
+
const dr = { id: "Location" }, fr = { class: "map" }, _r = {
|
|
6956
6983
|
key: 0,
|
|
6957
6984
|
class: "info"
|
|
6958
|
-
},
|
|
6985
|
+
}, mr = {
|
|
6959
6986
|
key: 0,
|
|
6960
6987
|
class: "title"
|
|
6961
|
-
},
|
|
6988
|
+
}, pr = {
|
|
6962
6989
|
key: 1,
|
|
6963
6990
|
class: "address"
|
|
6964
6991
|
};
|
|
6965
|
-
function
|
|
6992
|
+
function vr(c, f, a, d, m, w) {
|
|
6966
6993
|
const v = xi("LMarker"), A = xi("LTileLayer"), g = xi("LMap");
|
|
6967
|
-
return Oe(), ke("div",
|
|
6968
|
-
|
|
6994
|
+
return Oe(), ke("div", dr, [
|
|
6995
|
+
Hs("div", fr, [
|
|
6969
6996
|
bi(g, {
|
|
6970
|
-
options:
|
|
6971
|
-
zoom:
|
|
6972
|
-
center:
|
|
6997
|
+
options: c.options,
|
|
6998
|
+
zoom: c.zoom,
|
|
6999
|
+
center: c.center,
|
|
6973
7000
|
minZoom: 3,
|
|
6974
7001
|
maxZoom: 16
|
|
6975
7002
|
}, {
|
|
6976
|
-
default:
|
|
6977
|
-
bi(v, { "lat-lng":
|
|
7003
|
+
default: Fs(() => [
|
|
7004
|
+
bi(v, { "lat-lng": c.marker }, null, 8, ["lat-lng"]),
|
|
6978
7005
|
bi(A, {
|
|
6979
7006
|
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
6980
7007
|
"layer-type": "base",
|
|
@@ -6984,14 +7011,14 @@ function mr(l, f, a, d, m, w) {
|
|
|
6984
7011
|
_: 1
|
|
6985
7012
|
}, 8, ["options", "zoom", "center"])
|
|
6986
7013
|
]),
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
7014
|
+
c.f.title ? (Oe(), ke("div", _r, [
|
|
7015
|
+
c.f.title ? (Oe(), ke("div", mr, jn(c.f.title), 1)) : Ti("", !0),
|
|
7016
|
+
c.f.address ? (Oe(), ke("div", pr, jn(c.f.address), 1)) : Ti("", !0)
|
|
6990
7017
|
])) : Ti("", !0)
|
|
6991
7018
|
]);
|
|
6992
7019
|
}
|
|
6993
|
-
const
|
|
7020
|
+
const Pr = /* @__PURE__ */ Rs(Ae, [["render", vr], ["__scopeId", "data-v-b4275981"]]);
|
|
6994
7021
|
export {
|
|
6995
|
-
|
|
7022
|
+
Pr as default
|
|
6996
7023
|
};
|
|
6997
|
-
//# sourceMappingURL=Location-
|
|
7024
|
+
//# sourceMappingURL=Location-0e22d74d.js.map
|