@edugis-org/webmapx 0.1.7 → 0.1.8
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-lib/{decorate-CWgUV1hU.js → decorate-DnZTfaod.js} +6 -6
- package/dist-lib/dist-BIbq3o-p.js +213 -0
- package/dist-lib/{dist-Dm6b7XCs.js → dist-CKAaoSoW.js} +2743 -2491
- package/dist-lib/{dist-kKlmcBXq.js → dist-CWCNMXMK.js} +1 -1
- package/dist-lib/{dist-Ha9LQCut.js → dist-D-5Gmgwo.js} +1 -1
- package/dist-lib/{layer-discovery-afWzu5hY.js → layer-discovery-DFP-WHAh.js} +1 -1
- package/dist-lib/{leaflet-adapter-D9djjrKv.js → leaflet-adapter-A0rte-c7.js} +1 -1
- package/dist-lib/{maplibre-adapter-TFc3e0G9.js → maplibre-adapter-Cy6yX6o7.js} +1 -1
- package/dist-lib/ol-tilegrid-Ct4my3IN.js +24 -0
- package/dist-lib/openlayers-adapter-B8WtV1tn.js +1462 -0
- package/dist-lib/{toast-Cm28o9U6.js → toast-BsoXOdeA.js} +1 -1
- package/dist-lib/{webmapx-3d-tool-D4CTD2gB.js → webmapx-3d-tool-CLppA7mK.js} +13 -13
- package/dist-lib/{webmapx-base-tool-Dm9NAWLD.js → webmapx-base-tool-DfRa7TlD.js} +1 -1
- package/dist-lib/{webmapx-config-edit-tool-BgcSkmmg.js → webmapx-config-edit-tool-BztWspia.js} +21 -21
- package/dist-lib/{webmapx-coordinates-tool-GMfztOzE.js → webmapx-coordinates-tool-EOqZodjr.js} +20 -20
- package/dist-lib/{webmapx-core-bundle-BDImi1RE.js → webmapx-core-bundle-CH-5vYXU.js} +607 -1519
- package/dist-lib/webmapx-draw-tool-DxQgUF1Q.js +2117 -0
- package/dist-lib/{webmapx-geolocation-tool-Rw3-Iad1.js → webmapx-geolocation-tool-DIMh2kIr.js} +26 -25
- package/dist-lib/{webmapx-import-layer-tool-DRYviHd5.js → webmapx-import-layer-tool-DMiC1TpU.js} +16 -16
- package/dist-lib/{webmapx-info-tool-BJA157cy.js → webmapx-info-tool-D-XbAU9J.js} +56 -56
- package/dist-lib/{webmapx-language-osmvector-M5y_lwOg.js → webmapx-language-osmvector-BAw9TR-M.js} +12 -11
- package/dist-lib/{webmapx-measure-tool-BXhMJFC6.js → webmapx-measure-tool-CXlg11s8.js} +34 -34
- package/dist-lib/{webmapx-modal-tool-eF6Naluv.js → webmapx-modal-tool-Cs7LRrgW.js} +3 -3
- package/dist-lib/{webmapx-plugin-tool-D2Hghf9n.js → webmapx-plugin-tool-qe2yTrWB.js} +7 -7
- package/dist-lib/{webmapx-print-tool-ob1bOsR5.js → webmapx-print-tool-DrK9sLC7.js} +27 -26
- package/dist-lib/{webmapx-search-tool-Cv8BrYvY.js → webmapx-search-tool-H7NisgWH.js} +11 -11
- package/dist-lib/webmapx-settings-EHSm-AGU.js +167 -0
- package/dist-lib/{webmapx-truearea-tool-CMB4Orm-.js → webmapx-truearea-tool-CSU9mE1D.js} +26 -26
- package/dist-lib/{webmapx-view-mode-tool-CUpLNjOj.js → webmapx-view-mode-tool-D1QyQfq8.js} +9 -9
- package/dist-lib/webmapx.css +1 -1
- package/dist-lib/webmapx.js +21 -21
- package/package.json +1 -1
- package/dist-lib/WMTS-DCN4zX0-.js +0 -1169
- package/dist-lib/alert-GeHlqlN8.js +0 -310
- package/dist-lib/button-DFdGkRPQ.js +0 -741
- package/dist-lib/checkbox-QoR4S8tV.js +0 -284
- package/dist-lib/chunk.36O46B5H-B6ZL7Sm1.js +0 -77
- package/dist-lib/chunk.3RPBFEDE-BFO1fHVm.js +0 -138
- package/dist-lib/chunk.5JY5FUCG-DTXsslmx.js +0 -1090
- package/dist-lib/chunk.6CTB5ZDJ-DjZrBd6Y.js +0 -99
- package/dist-lib/chunk.AJ3ENQ5C-Ci7Gm2b6.js +0 -175
- package/dist-lib/chunk.LD4M4QGE-CiCfhE8r.js +0 -8
- package/dist-lib/chunk.NYIIDP5N-BikXIStD.js +0 -99
- package/dist-lib/chunk.RWUUFNUL-DFztA4uV.js +0 -43
- package/dist-lib/chunk.SI4ACBFK-CLb9VfMG.js +0 -61
- package/dist-lib/chunk.YHLNUJ7P-D-kanrCf.js +0 -503
- package/dist-lib/decorators-B35AgiCU.js +0 -351
- package/dist-lib/dist-c1PlDAd1.js +0 -2359
- package/dist-lib/divider-CPm675yY.js +0 -41
- package/dist-lib/icon-CEOgWlro.js +0 -9
- package/dist-lib/icon-button-Da_nBTy3.js +0 -408
- package/dist-lib/input-CeGntPlT.js +0 -590
- package/dist-lib/ol-tilegrid-9VtyxaLG.js +0 -64
- package/dist-lib/openlayers-adapter-DVW1KCRv.js +0 -13307
- package/dist-lib/option-CBxl1mZP.js +0 -1106
- package/dist-lib/rbush-C8k41T4z.js +0 -254
- package/dist-lib/spinner-DysxdNG9.js +0 -6
- package/dist-lib/tooltip-Cucn1SiD.js +0 -197
- package/dist-lib/webmapx-draw-tool-DooAV8cF.js +0 -4336
- package/dist-lib/webmapx-settings-DDEJ8aoV.js +0 -479
|
@@ -1,2359 +0,0 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, n as r, r as i, s as a, t as o } from "./dist-Dm6b7XCs.js";
|
|
2
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/events/Event.js
|
|
3
|
-
var s = class {
|
|
4
|
-
constructor(e) {
|
|
5
|
-
this.propagationStopped, this.defaultPrevented, this.type = e, this.target = null;
|
|
6
|
-
}
|
|
7
|
-
preventDefault() {
|
|
8
|
-
this.defaultPrevented = !0;
|
|
9
|
-
}
|
|
10
|
-
stopPropagation() {
|
|
11
|
-
this.propagationStopped = !0;
|
|
12
|
-
}
|
|
13
|
-
}, c = { PROPERTYCHANGE: "propertychange" }, l = class {
|
|
14
|
-
constructor() {
|
|
15
|
-
this.disposed = !1;
|
|
16
|
-
}
|
|
17
|
-
dispose() {
|
|
18
|
-
this.disposed || (this.disposed = !0, this.disposeInternal());
|
|
19
|
-
}
|
|
20
|
-
disposeInternal() {}
|
|
21
|
-
};
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/array.js
|
|
24
|
-
function u(e, t) {
|
|
25
|
-
return e > t ? 1 : e < t ? -1 : 0;
|
|
26
|
-
}
|
|
27
|
-
function d(e, t, n) {
|
|
28
|
-
if (e[0] <= t) return 0;
|
|
29
|
-
let r = e.length;
|
|
30
|
-
if (t <= e[r - 1]) return r - 1;
|
|
31
|
-
if (typeof n == "function") {
|
|
32
|
-
for (let i = 1; i < r; ++i) {
|
|
33
|
-
let r = e[i];
|
|
34
|
-
if (r === t) return i;
|
|
35
|
-
if (r < t) return n(t, e[i - 1], r) > 0 ? i - 1 : i;
|
|
36
|
-
}
|
|
37
|
-
return r - 1;
|
|
38
|
-
}
|
|
39
|
-
if (n > 0) {
|
|
40
|
-
for (let n = 1; n < r; ++n) if (e[n] < t) return n - 1;
|
|
41
|
-
return r - 1;
|
|
42
|
-
}
|
|
43
|
-
if (n < 0) {
|
|
44
|
-
for (let n = 1; n < r; ++n) if (e[n] <= t) return n;
|
|
45
|
-
return r - 1;
|
|
46
|
-
}
|
|
47
|
-
for (let n = 1; n < r; ++n) {
|
|
48
|
-
if (e[n] == t) return n;
|
|
49
|
-
if (e[n] < t) return e[n - 1] - t < t - e[n] ? n - 1 : n;
|
|
50
|
-
}
|
|
51
|
-
return r - 1;
|
|
52
|
-
}
|
|
53
|
-
function f(e, t) {
|
|
54
|
-
let n = Array.isArray(t) ? t : [t], r = n.length;
|
|
55
|
-
for (let t = 0; t < r; t++) e[e.length] = n[t];
|
|
56
|
-
}
|
|
57
|
-
function p(e, t) {
|
|
58
|
-
let n = e.length;
|
|
59
|
-
if (n !== t.length) return !1;
|
|
60
|
-
for (let r = 0; r < n; r++) if (e[r] !== t[r]) return !1;
|
|
61
|
-
return !0;
|
|
62
|
-
}
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/functions.js
|
|
65
|
-
function m() {}
|
|
66
|
-
function h(e) {
|
|
67
|
-
let t = !1, n, r, i;
|
|
68
|
-
return function() {
|
|
69
|
-
let a = Array.prototype.slice.call(arguments);
|
|
70
|
-
return (!t || this !== i || !p(a, r)) && (t = !0, i = this, r = a, n = e.apply(this, arguments)), n;
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
//#endregion
|
|
74
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/obj.js
|
|
75
|
-
function g(e) {
|
|
76
|
-
for (let t in e) delete e[t];
|
|
77
|
-
}
|
|
78
|
-
function _(e) {
|
|
79
|
-
let t;
|
|
80
|
-
for (t in e) return !1;
|
|
81
|
-
return !t;
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/events/Target.js
|
|
85
|
-
var v = class extends l {
|
|
86
|
-
constructor(e) {
|
|
87
|
-
super(), this.eventTarget_ = e, this.pendingRemovals_ = null, this.dispatching_ = null, this.listeners_ = null;
|
|
88
|
-
}
|
|
89
|
-
addEventListener(e, t) {
|
|
90
|
-
if (!e || !t) return;
|
|
91
|
-
let n = this.listeners_ ||= {}, r = n[e] || (n[e] = []);
|
|
92
|
-
r.includes(t) || r.push(t);
|
|
93
|
-
}
|
|
94
|
-
dispatchEvent(e) {
|
|
95
|
-
let t = typeof e == "string", n = t ? e : e.type, r = this.listeners_ && this.listeners_[n];
|
|
96
|
-
if (!r) return;
|
|
97
|
-
let i = t ? new s(e) : e;
|
|
98
|
-
i.target ||= this.eventTarget_ || this;
|
|
99
|
-
let a = this.dispatching_ ||= {}, o = this.pendingRemovals_ ||= {};
|
|
100
|
-
n in a || (a[n] = 0, o[n] = 0), ++a[n];
|
|
101
|
-
let c;
|
|
102
|
-
for (let e = 0, t = r.length; e < t; ++e) if (c = "handleEvent" in r[e] ? r[e].handleEvent(i) : r[e].call(this, i), c === !1 || i.propagationStopped) {
|
|
103
|
-
c = !1;
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
if (--a[n] === 0) {
|
|
107
|
-
let e = o[n];
|
|
108
|
-
for (delete o[n]; e--;) this.removeEventListener(n, m);
|
|
109
|
-
delete a[n];
|
|
110
|
-
}
|
|
111
|
-
return c;
|
|
112
|
-
}
|
|
113
|
-
disposeInternal() {
|
|
114
|
-
this.listeners_ && g(this.listeners_);
|
|
115
|
-
}
|
|
116
|
-
getListeners(e) {
|
|
117
|
-
return this.listeners_ && this.listeners_[e] || void 0;
|
|
118
|
-
}
|
|
119
|
-
hasListener(e) {
|
|
120
|
-
return this.listeners_ ? e ? e in this.listeners_ : Object.keys(this.listeners_).length > 0 : !1;
|
|
121
|
-
}
|
|
122
|
-
removeEventListener(e, t) {
|
|
123
|
-
if (!this.listeners_) return;
|
|
124
|
-
let n = this.listeners_[e];
|
|
125
|
-
if (!n) return;
|
|
126
|
-
let r = n.indexOf(t);
|
|
127
|
-
r !== -1 && (this.pendingRemovals_ && e in this.pendingRemovals_ ? (n[r] = m, ++this.pendingRemovals_[e]) : (n.splice(r, 1), n.length === 0 && delete this.listeners_[e]));
|
|
128
|
-
}
|
|
129
|
-
}, ee = {
|
|
130
|
-
CHANGE: "change",
|
|
131
|
-
ERROR: "error",
|
|
132
|
-
BLUR: "blur",
|
|
133
|
-
CLEAR: "clear",
|
|
134
|
-
CONTEXTMENU: "contextmenu",
|
|
135
|
-
CLICK: "click",
|
|
136
|
-
DBLCLICK: "dblclick",
|
|
137
|
-
DRAGENTER: "dragenter",
|
|
138
|
-
DRAGOVER: "dragover",
|
|
139
|
-
DROP: "drop",
|
|
140
|
-
FOCUS: "focus",
|
|
141
|
-
KEYDOWN: "keydown",
|
|
142
|
-
KEYPRESS: "keypress",
|
|
143
|
-
LOAD: "load",
|
|
144
|
-
RESIZE: "resize",
|
|
145
|
-
TOUCHMOVE: "touchmove",
|
|
146
|
-
WHEEL: "wheel"
|
|
147
|
-
};
|
|
148
|
-
//#endregion
|
|
149
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/events.js
|
|
150
|
-
function y(e, t, n, r, i) {
|
|
151
|
-
if (r && r !== e && (n = n.bind(r)), i) {
|
|
152
|
-
let r = n;
|
|
153
|
-
n = function() {
|
|
154
|
-
e.removeEventListener(t, n), r.apply(this, arguments);
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
let a = {
|
|
158
|
-
target: e,
|
|
159
|
-
type: t,
|
|
160
|
-
listener: n
|
|
161
|
-
};
|
|
162
|
-
return e.addEventListener(t, n), a;
|
|
163
|
-
}
|
|
164
|
-
function te(e, t, n, r) {
|
|
165
|
-
return y(e, t, n, r, !0);
|
|
166
|
-
}
|
|
167
|
-
function b(e) {
|
|
168
|
-
e && e.target && (e.target.removeEventListener(e.type, e.listener), g(e));
|
|
169
|
-
}
|
|
170
|
-
//#endregion
|
|
171
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/Observable.js
|
|
172
|
-
var x = class extends v {
|
|
173
|
-
constructor() {
|
|
174
|
-
super(), this.on = this.onInternal, this.once = this.onceInternal, this.un = this.unInternal, this.revision_ = 0;
|
|
175
|
-
}
|
|
176
|
-
changed() {
|
|
177
|
-
++this.revision_, this.dispatchEvent(ee.CHANGE);
|
|
178
|
-
}
|
|
179
|
-
getRevision() {
|
|
180
|
-
return this.revision_;
|
|
181
|
-
}
|
|
182
|
-
onInternal(e, t) {
|
|
183
|
-
if (Array.isArray(e)) {
|
|
184
|
-
let n = e.length, r = Array(n);
|
|
185
|
-
for (let i = 0; i < n; ++i) r[i] = y(this, e[i], t);
|
|
186
|
-
return r;
|
|
187
|
-
}
|
|
188
|
-
return y(this, e, t);
|
|
189
|
-
}
|
|
190
|
-
onceInternal(e, t) {
|
|
191
|
-
let n;
|
|
192
|
-
if (Array.isArray(e)) {
|
|
193
|
-
let r = e.length;
|
|
194
|
-
n = Array(r);
|
|
195
|
-
for (let i = 0; i < r; ++i) n[i] = te(this, e[i], t);
|
|
196
|
-
} else n = te(this, e, t);
|
|
197
|
-
return t.ol_key = n, n;
|
|
198
|
-
}
|
|
199
|
-
unInternal(e, t) {
|
|
200
|
-
let n = t.ol_key;
|
|
201
|
-
if (n) ne(n);
|
|
202
|
-
else if (Array.isArray(e)) for (let n = 0, r = e.length; n < r; ++n) this.removeEventListener(e[n], t);
|
|
203
|
-
else this.removeEventListener(e, t);
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
x.prototype.on, x.prototype.once, x.prototype.un;
|
|
207
|
-
function ne(e) {
|
|
208
|
-
if (Array.isArray(e)) for (let t = 0, n = e.length; t < n; ++t) b(e[t]);
|
|
209
|
-
else b(e);
|
|
210
|
-
}
|
|
211
|
-
//#endregion
|
|
212
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/util.js
|
|
213
|
-
function S() {
|
|
214
|
-
throw Error("Unimplemented abstract method.");
|
|
215
|
-
}
|
|
216
|
-
var re = 0;
|
|
217
|
-
function ie(e) {
|
|
218
|
-
return e.ol_uid ||= String(++re);
|
|
219
|
-
}
|
|
220
|
-
//#endregion
|
|
221
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/Object.js
|
|
222
|
-
var ae = class extends s {
|
|
223
|
-
constructor(e, t, n) {
|
|
224
|
-
super(e), this.key = t, this.oldValue = n;
|
|
225
|
-
}
|
|
226
|
-
}, oe = class extends x {
|
|
227
|
-
constructor(e) {
|
|
228
|
-
super(), this.on, this.once, this.un, ie(this), this.values_ = null, e !== void 0 && this.setProperties(e);
|
|
229
|
-
}
|
|
230
|
-
get(e) {
|
|
231
|
-
let t;
|
|
232
|
-
return this.values_ && this.values_.hasOwnProperty(e) && (t = this.values_[e]), t;
|
|
233
|
-
}
|
|
234
|
-
getKeys() {
|
|
235
|
-
return this.values_ && Object.keys(this.values_) || [];
|
|
236
|
-
}
|
|
237
|
-
getProperties() {
|
|
238
|
-
return this.values_ && Object.assign({}, this.values_) || {};
|
|
239
|
-
}
|
|
240
|
-
getPropertiesInternal() {
|
|
241
|
-
return this.values_;
|
|
242
|
-
}
|
|
243
|
-
hasProperties() {
|
|
244
|
-
return !!this.values_;
|
|
245
|
-
}
|
|
246
|
-
notify(e, t) {
|
|
247
|
-
let n;
|
|
248
|
-
n = `change:${e}`, this.hasListener(n) && this.dispatchEvent(new ae(n, e, t)), n = c.PROPERTYCHANGE, this.hasListener(n) && this.dispatchEvent(new ae(n, e, t));
|
|
249
|
-
}
|
|
250
|
-
addChangeListener(e, t) {
|
|
251
|
-
this.addEventListener(`change:${e}`, t);
|
|
252
|
-
}
|
|
253
|
-
removeChangeListener(e, t) {
|
|
254
|
-
this.removeEventListener(`change:${e}`, t);
|
|
255
|
-
}
|
|
256
|
-
set(e, t, n) {
|
|
257
|
-
let r = this.values_ ||= {};
|
|
258
|
-
if (n) r[e] = t;
|
|
259
|
-
else {
|
|
260
|
-
let n = r[e];
|
|
261
|
-
r[e] = t, n !== t && this.notify(e, n);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
setProperties(e, t) {
|
|
265
|
-
for (let n in e) this.set(n, e[n], t);
|
|
266
|
-
}
|
|
267
|
-
applyProperties(e) {
|
|
268
|
-
e.values_ && Object.assign(this.values_ ||= {}, e.values_);
|
|
269
|
-
}
|
|
270
|
-
unset(e, t) {
|
|
271
|
-
if (this.values_ && e in this.values_) {
|
|
272
|
-
let n = this.values_[e];
|
|
273
|
-
delete this.values_[e], _(this.values_) && (this.values_ = null), t || this.notify(e, n);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
}, C = {
|
|
277
|
-
OPACITY: "opacity",
|
|
278
|
-
VISIBLE: "visible",
|
|
279
|
-
EXTENT: "extent",
|
|
280
|
-
Z_INDEX: "zIndex",
|
|
281
|
-
MAX_RESOLUTION: "maxResolution",
|
|
282
|
-
MIN_RESOLUTION: "minResolution",
|
|
283
|
-
MAX_ZOOM: "maxZoom",
|
|
284
|
-
MIN_ZOOM: "minZoom",
|
|
285
|
-
SOURCE: "source",
|
|
286
|
-
MAP: "map"
|
|
287
|
-
};
|
|
288
|
-
//#endregion
|
|
289
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/asserts.js
|
|
290
|
-
function w(e, t) {
|
|
291
|
-
if (!e) throw Error(t);
|
|
292
|
-
}
|
|
293
|
-
//#endregion
|
|
294
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/math.js
|
|
295
|
-
function T(e, t, n) {
|
|
296
|
-
return Math.min(Math.max(e, t), n);
|
|
297
|
-
}
|
|
298
|
-
function se(e, t, n, r, i, a) {
|
|
299
|
-
let o = i - n, s = a - r;
|
|
300
|
-
if (o !== 0 || s !== 0) {
|
|
301
|
-
let c = ((e - n) * o + (t - r) * s) / (o * o + s * s);
|
|
302
|
-
c > 1 ? (n = i, r = a) : c > 0 && (n += o * c, r += s * c);
|
|
303
|
-
}
|
|
304
|
-
return E(e, t, n, r);
|
|
305
|
-
}
|
|
306
|
-
function E(e, t, n, r) {
|
|
307
|
-
let i = n - e, a = r - t;
|
|
308
|
-
return i * i + a * a;
|
|
309
|
-
}
|
|
310
|
-
function ce(e) {
|
|
311
|
-
return e * Math.PI / 180;
|
|
312
|
-
}
|
|
313
|
-
function le(e, t) {
|
|
314
|
-
let n = e % t;
|
|
315
|
-
return n * t < 0 ? n + t : n;
|
|
316
|
-
}
|
|
317
|
-
function ue(e, t, n) {
|
|
318
|
-
return e + n * (t - e);
|
|
319
|
-
}
|
|
320
|
-
//#endregion
|
|
321
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/layer/Base.js
|
|
322
|
-
var de = class extends oe {
|
|
323
|
-
constructor(e) {
|
|
324
|
-
super(), this.on, this.once, this.un, this.background_ = e.background;
|
|
325
|
-
let t = Object.assign({}, e);
|
|
326
|
-
typeof e.properties == "object" && (delete t.properties, Object.assign(t, e.properties)), t[C.OPACITY] = e.opacity === void 0 ? 1 : e.opacity, w(typeof t[C.OPACITY] == "number", "Layer opacity must be a number"), t[C.VISIBLE] = e.visible === void 0 ? !0 : e.visible, t[C.Z_INDEX] = e.zIndex, t[C.MAX_RESOLUTION] = e.maxResolution === void 0 ? Infinity : e.maxResolution, t[C.MIN_RESOLUTION] = e.minResolution === void 0 ? 0 : e.minResolution, t[C.MIN_ZOOM] = e.minZoom === void 0 ? -Infinity : e.minZoom, t[C.MAX_ZOOM] = e.maxZoom === void 0 ? Infinity : e.maxZoom, this.className_ = t.className === void 0 ? "ol-layer" : t.className, delete t.className, this.setProperties(t), this.state_ = null;
|
|
327
|
-
}
|
|
328
|
-
getBackground() {
|
|
329
|
-
return this.background_;
|
|
330
|
-
}
|
|
331
|
-
getClassName() {
|
|
332
|
-
return this.className_;
|
|
333
|
-
}
|
|
334
|
-
getLayerState(e) {
|
|
335
|
-
let t = this.state_ || {
|
|
336
|
-
layer: this,
|
|
337
|
-
managed: e === void 0 ? !0 : e
|
|
338
|
-
}, n = this.getZIndex();
|
|
339
|
-
return t.opacity = T(Math.round(this.getOpacity() * 100) / 100, 0, 1), t.visible = this.getVisible(), t.extent = this.getExtent(), t.zIndex = n === void 0 && !t.managed ? Infinity : n, t.maxResolution = this.getMaxResolution(), t.minResolution = Math.max(this.getMinResolution(), 0), t.minZoom = this.getMinZoom(), t.maxZoom = this.getMaxZoom(), this.state_ = t, t;
|
|
340
|
-
}
|
|
341
|
-
getLayersArray(e) {
|
|
342
|
-
return S();
|
|
343
|
-
}
|
|
344
|
-
getLayerStatesArray(e) {
|
|
345
|
-
return S();
|
|
346
|
-
}
|
|
347
|
-
getExtent() {
|
|
348
|
-
return this.get(C.EXTENT);
|
|
349
|
-
}
|
|
350
|
-
getMaxResolution() {
|
|
351
|
-
return this.get(C.MAX_RESOLUTION);
|
|
352
|
-
}
|
|
353
|
-
getMinResolution() {
|
|
354
|
-
return this.get(C.MIN_RESOLUTION);
|
|
355
|
-
}
|
|
356
|
-
getMinZoom() {
|
|
357
|
-
return this.get(C.MIN_ZOOM);
|
|
358
|
-
}
|
|
359
|
-
getMaxZoom() {
|
|
360
|
-
return this.get(C.MAX_ZOOM);
|
|
361
|
-
}
|
|
362
|
-
getOpacity() {
|
|
363
|
-
return this.get(C.OPACITY);
|
|
364
|
-
}
|
|
365
|
-
getSourceState() {
|
|
366
|
-
return S();
|
|
367
|
-
}
|
|
368
|
-
getVisible() {
|
|
369
|
-
return this.get(C.VISIBLE);
|
|
370
|
-
}
|
|
371
|
-
getZIndex() {
|
|
372
|
-
return this.get(C.Z_INDEX);
|
|
373
|
-
}
|
|
374
|
-
setBackground(e) {
|
|
375
|
-
this.background_ = e, this.changed();
|
|
376
|
-
}
|
|
377
|
-
setExtent(e) {
|
|
378
|
-
this.set(C.EXTENT, e);
|
|
379
|
-
}
|
|
380
|
-
setMaxResolution(e) {
|
|
381
|
-
this.set(C.MAX_RESOLUTION, e);
|
|
382
|
-
}
|
|
383
|
-
setMinResolution(e) {
|
|
384
|
-
this.set(C.MIN_RESOLUTION, e);
|
|
385
|
-
}
|
|
386
|
-
setMaxZoom(e) {
|
|
387
|
-
this.set(C.MAX_ZOOM, e);
|
|
388
|
-
}
|
|
389
|
-
setMinZoom(e) {
|
|
390
|
-
this.set(C.MIN_ZOOM, e);
|
|
391
|
-
}
|
|
392
|
-
setOpacity(e) {
|
|
393
|
-
w(typeof e == "number", "Layer opacity must be a number"), this.set(C.OPACITY, e);
|
|
394
|
-
}
|
|
395
|
-
setVisible(e) {
|
|
396
|
-
this.set(C.VISIBLE, e);
|
|
397
|
-
}
|
|
398
|
-
setZIndex(e) {
|
|
399
|
-
this.set(C.Z_INDEX, e);
|
|
400
|
-
}
|
|
401
|
-
disposeInternal() {
|
|
402
|
-
this.state_ &&= (this.state_.layer = null, null), super.disposeInternal();
|
|
403
|
-
}
|
|
404
|
-
}, fe = {
|
|
405
|
-
PRERENDER: "prerender",
|
|
406
|
-
POSTRENDER: "postrender",
|
|
407
|
-
PRECOMPOSE: "precompose",
|
|
408
|
-
POSTCOMPOSE: "postcompose",
|
|
409
|
-
RENDERCOMPLETE: "rendercomplete"
|
|
410
|
-
}, D = {
|
|
411
|
-
ANIMATING: 0,
|
|
412
|
-
INTERACTING: 1
|
|
413
|
-
}, O = {
|
|
414
|
-
CENTER: "center",
|
|
415
|
-
RESOLUTION: "resolution",
|
|
416
|
-
ROTATION: "rotation"
|
|
417
|
-
}, pe = {
|
|
418
|
-
radians: 6370997 / (2 * Math.PI),
|
|
419
|
-
degrees: 2 * Math.PI * 6370997 / 360,
|
|
420
|
-
ft: .3048,
|
|
421
|
-
m: 1,
|
|
422
|
-
"us-ft": 1200 / 3937
|
|
423
|
-
}, me = class {
|
|
424
|
-
constructor(e) {
|
|
425
|
-
this.code_ = e.code, this.units_ = e.units, this.extent_ = e.extent === void 0 ? null : e.extent, this.worldExtent_ = e.worldExtent === void 0 ? null : e.worldExtent, this.axisOrientation_ = e.axisOrientation === void 0 ? "enu" : e.axisOrientation, this.global_ = e.global === void 0 ? !1 : e.global, this.canWrapX_ = !!(this.global_ && this.extent_), this.getPointResolutionFunc_ = e.getPointResolution, this.defaultTileGrid_ = null, this.metersPerUnit_ = e.metersPerUnit;
|
|
426
|
-
}
|
|
427
|
-
canWrapX() {
|
|
428
|
-
return this.canWrapX_;
|
|
429
|
-
}
|
|
430
|
-
getCode() {
|
|
431
|
-
return this.code_;
|
|
432
|
-
}
|
|
433
|
-
getExtent() {
|
|
434
|
-
return this.extent_;
|
|
435
|
-
}
|
|
436
|
-
getUnits() {
|
|
437
|
-
return this.units_;
|
|
438
|
-
}
|
|
439
|
-
getMetersPerUnit() {
|
|
440
|
-
return this.metersPerUnit_ || pe[this.units_];
|
|
441
|
-
}
|
|
442
|
-
getWorldExtent() {
|
|
443
|
-
return this.worldExtent_;
|
|
444
|
-
}
|
|
445
|
-
getAxisOrientation() {
|
|
446
|
-
return this.axisOrientation_;
|
|
447
|
-
}
|
|
448
|
-
isGlobal() {
|
|
449
|
-
return this.global_;
|
|
450
|
-
}
|
|
451
|
-
setGlobal(e) {
|
|
452
|
-
this.global_ = e, this.canWrapX_ = !!(e && this.extent_);
|
|
453
|
-
}
|
|
454
|
-
getDefaultTileGrid() {
|
|
455
|
-
return this.defaultTileGrid_;
|
|
456
|
-
}
|
|
457
|
-
setDefaultTileGrid(e) {
|
|
458
|
-
this.defaultTileGrid_ = e;
|
|
459
|
-
}
|
|
460
|
-
setExtent(e) {
|
|
461
|
-
this.extent_ = e, this.canWrapX_ = !!(this.global_ && e);
|
|
462
|
-
}
|
|
463
|
-
setWorldExtent(e) {
|
|
464
|
-
this.worldExtent_ = e;
|
|
465
|
-
}
|
|
466
|
-
setGetPointResolution(e) {
|
|
467
|
-
this.getPointResolutionFunc_ = e;
|
|
468
|
-
}
|
|
469
|
-
getPointResolutionFunc() {
|
|
470
|
-
return this.getPointResolutionFunc_;
|
|
471
|
-
}
|
|
472
|
-
}, k = 6378137, A = Math.PI * k, he = [
|
|
473
|
-
-A,
|
|
474
|
-
-A,
|
|
475
|
-
A,
|
|
476
|
-
A
|
|
477
|
-
], ge = [
|
|
478
|
-
-180,
|
|
479
|
-
-85,
|
|
480
|
-
180,
|
|
481
|
-
85
|
|
482
|
-
], j = k * Math.log(Math.tan(Math.PI / 2)), M = class extends me {
|
|
483
|
-
constructor(e) {
|
|
484
|
-
super({
|
|
485
|
-
code: e,
|
|
486
|
-
units: "m",
|
|
487
|
-
extent: he,
|
|
488
|
-
global: !0,
|
|
489
|
-
worldExtent: ge,
|
|
490
|
-
getPointResolution: function(e, t) {
|
|
491
|
-
return e / Math.cosh(t[1] / k);
|
|
492
|
-
}
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
}, _e = [
|
|
496
|
-
new M("EPSG:3857"),
|
|
497
|
-
new M("EPSG:102100"),
|
|
498
|
-
new M("EPSG:102113"),
|
|
499
|
-
new M("EPSG:900913"),
|
|
500
|
-
new M("http://www.opengis.net/def/crs/EPSG/0/3857"),
|
|
501
|
-
new M("http://www.opengis.net/gml/srs/epsg.xml#3857")
|
|
502
|
-
];
|
|
503
|
-
function ve(e, t, n) {
|
|
504
|
-
let r = e.length;
|
|
505
|
-
n = n > 1 ? n : 2, t === void 0 && (t = n > 2 ? e.slice() : Array(r));
|
|
506
|
-
for (let i = 0; i < r; i += n) {
|
|
507
|
-
t[i] = A * e[i] / 180;
|
|
508
|
-
let n = k * Math.log(Math.tan(Math.PI * (+e[i + 1] + 90) / 360));
|
|
509
|
-
n > j ? n = j : n < -j && (n = -j), t[i + 1] = n;
|
|
510
|
-
}
|
|
511
|
-
return t;
|
|
512
|
-
}
|
|
513
|
-
function ye(e, t, n) {
|
|
514
|
-
let r = e.length;
|
|
515
|
-
n = n > 1 ? n : 2, t === void 0 && (t = n > 2 ? e.slice() : Array(r));
|
|
516
|
-
for (let i = 0; i < r; i += n) t[i] = 180 * e[i] / A, t[i + 1] = 360 * Math.atan(Math.exp(e[i + 1] / k)) / Math.PI - 90;
|
|
517
|
-
return t;
|
|
518
|
-
}
|
|
519
|
-
//#endregion
|
|
520
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/proj/epsg4326.js
|
|
521
|
-
var be = 6378137, xe = [
|
|
522
|
-
-180,
|
|
523
|
-
-90,
|
|
524
|
-
180,
|
|
525
|
-
90
|
|
526
|
-
], Se = Math.PI * be / 180, N = class extends me {
|
|
527
|
-
constructor(e, t) {
|
|
528
|
-
super({
|
|
529
|
-
code: e,
|
|
530
|
-
units: "degrees",
|
|
531
|
-
extent: xe,
|
|
532
|
-
axisOrientation: t,
|
|
533
|
-
global: !0,
|
|
534
|
-
metersPerUnit: Se,
|
|
535
|
-
worldExtent: xe
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
}, Ce = [
|
|
539
|
-
new N("CRS:84"),
|
|
540
|
-
new N("EPSG:4326", "neu"),
|
|
541
|
-
new N("urn:ogc:def:crs:OGC:1.3:CRS84"),
|
|
542
|
-
new N("urn:ogc:def:crs:OGC:2:84"),
|
|
543
|
-
new N("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),
|
|
544
|
-
new N("http://www.opengis.net/gml/srs/epsg.xml#4326", "neu"),
|
|
545
|
-
new N("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
|
|
546
|
-
], P = {};
|
|
547
|
-
function we(e) {
|
|
548
|
-
return P[e] || P[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
|
|
549
|
-
}
|
|
550
|
-
function Te(e, t) {
|
|
551
|
-
P[e] = t;
|
|
552
|
-
}
|
|
553
|
-
//#endregion
|
|
554
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/proj/transforms.js
|
|
555
|
-
var F = {};
|
|
556
|
-
function I(e, t, n) {
|
|
557
|
-
let r = e.getCode(), i = t.getCode();
|
|
558
|
-
r in F || (F[r] = {}), F[r][i] = n;
|
|
559
|
-
}
|
|
560
|
-
function Ee(e, t) {
|
|
561
|
-
let n;
|
|
562
|
-
return e in F && t in F[e] && (n = F[e][t]), n;
|
|
563
|
-
}
|
|
564
|
-
//#endregion
|
|
565
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/extent/Relationship.js
|
|
566
|
-
var L = {
|
|
567
|
-
UNKNOWN: 0,
|
|
568
|
-
INTERSECTING: 1,
|
|
569
|
-
ABOVE: 2,
|
|
570
|
-
RIGHT: 4,
|
|
571
|
-
BELOW: 8,
|
|
572
|
-
LEFT: 16
|
|
573
|
-
};
|
|
574
|
-
//#endregion
|
|
575
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/extent.js
|
|
576
|
-
function De(e, t, n) {
|
|
577
|
-
return R(Math.min.apply(null, e), Math.min.apply(null, t), Math.max.apply(null, e), Math.max.apply(null, t), n);
|
|
578
|
-
}
|
|
579
|
-
function Oe(e, t, n) {
|
|
580
|
-
let r, i;
|
|
581
|
-
return r = t < e[0] ? e[0] - t : e[2] < t ? t - e[2] : 0, i = n < e[1] ? e[1] - n : e[3] < n ? n - e[3] : 0, r * r + i * i;
|
|
582
|
-
}
|
|
583
|
-
function ke(e, t) {
|
|
584
|
-
return e[0] <= t[0] && t[2] <= e[2] && e[1] <= t[1] && t[3] <= e[3];
|
|
585
|
-
}
|
|
586
|
-
function Ae(e, t, n) {
|
|
587
|
-
return e[0] <= t && t <= e[2] && e[1] <= n && n <= e[3];
|
|
588
|
-
}
|
|
589
|
-
function je(e, t) {
|
|
590
|
-
let n = e[0], r = e[1], i = e[2], a = e[3], o = t[0], s = t[1], c = L.UNKNOWN;
|
|
591
|
-
return o < n ? c |= L.LEFT : o > i && (c |= L.RIGHT), s < r ? c |= L.BELOW : s > a && (c |= L.ABOVE), c === L.UNKNOWN && (c = L.INTERSECTING), c;
|
|
592
|
-
}
|
|
593
|
-
function Me() {
|
|
594
|
-
return [
|
|
595
|
-
Infinity,
|
|
596
|
-
Infinity,
|
|
597
|
-
-Infinity,
|
|
598
|
-
-Infinity
|
|
599
|
-
];
|
|
600
|
-
}
|
|
601
|
-
function R(e, t, n, r, i) {
|
|
602
|
-
return i ? (i[0] = e, i[1] = t, i[2] = n, i[3] = r, i) : [
|
|
603
|
-
e,
|
|
604
|
-
t,
|
|
605
|
-
n,
|
|
606
|
-
r
|
|
607
|
-
];
|
|
608
|
-
}
|
|
609
|
-
function z(e) {
|
|
610
|
-
return R(Infinity, Infinity, -Infinity, -Infinity, e);
|
|
611
|
-
}
|
|
612
|
-
function Ne(e, t) {
|
|
613
|
-
let n = e[0], r = e[1];
|
|
614
|
-
return R(n, r, n, r, t);
|
|
615
|
-
}
|
|
616
|
-
function Pe(e, t, n, r, i) {
|
|
617
|
-
return Fe(z(i), e, t, n, r);
|
|
618
|
-
}
|
|
619
|
-
function Fe(e, t, n, r, i) {
|
|
620
|
-
for (; n < r; n += i) Ie(e, t[n], t[n + 1]);
|
|
621
|
-
return e;
|
|
622
|
-
}
|
|
623
|
-
function Ie(e, t, n) {
|
|
624
|
-
e[0] = Math.min(e[0], t), e[1] = Math.min(e[1], n), e[2] = Math.max(e[2], t), e[3] = Math.max(e[3], n);
|
|
625
|
-
}
|
|
626
|
-
function Le(e, t) {
|
|
627
|
-
let n;
|
|
628
|
-
return n = t(Re(e)), n || (n = t(ze(e)), n) || (n = t(Ue(e)), n) || (n = t(He(e)), n) ? n : !1;
|
|
629
|
-
}
|
|
630
|
-
function Re(e) {
|
|
631
|
-
return [e[0], e[1]];
|
|
632
|
-
}
|
|
633
|
-
function ze(e) {
|
|
634
|
-
return [e[2], e[1]];
|
|
635
|
-
}
|
|
636
|
-
function B(e) {
|
|
637
|
-
return [(e[0] + e[2]) / 2, (e[1] + e[3]) / 2];
|
|
638
|
-
}
|
|
639
|
-
function Be(e, t, n, r, i) {
|
|
640
|
-
let [a, o, s, c, l, u, d, f] = Ve(e, t, n, r);
|
|
641
|
-
return R(Math.min(a, s, l, d), Math.min(o, c, u, f), Math.max(a, s, l, d), Math.max(o, c, u, f), i);
|
|
642
|
-
}
|
|
643
|
-
function Ve(e, t, n, r) {
|
|
644
|
-
let i = t * r[0] / 2, a = t * r[1] / 2, o = Math.cos(n), s = Math.sin(n), c = i * o, l = i * s, u = a * o, d = a * s, f = e[0], p = e[1];
|
|
645
|
-
return [
|
|
646
|
-
f - c + d,
|
|
647
|
-
p - l - u,
|
|
648
|
-
f - c - d,
|
|
649
|
-
p - l + u,
|
|
650
|
-
f + c - d,
|
|
651
|
-
p + l + u,
|
|
652
|
-
f + c + d,
|
|
653
|
-
p + l - u,
|
|
654
|
-
f - c + d,
|
|
655
|
-
p - l - u
|
|
656
|
-
];
|
|
657
|
-
}
|
|
658
|
-
function V(e) {
|
|
659
|
-
return e[3] - e[1];
|
|
660
|
-
}
|
|
661
|
-
function He(e) {
|
|
662
|
-
return [e[0], e[3]];
|
|
663
|
-
}
|
|
664
|
-
function Ue(e) {
|
|
665
|
-
return [e[2], e[3]];
|
|
666
|
-
}
|
|
667
|
-
function H(e) {
|
|
668
|
-
return e[2] - e[0];
|
|
669
|
-
}
|
|
670
|
-
function We(e, t) {
|
|
671
|
-
return e[0] <= t[2] && e[2] >= t[0] && e[1] <= t[3] && e[3] >= t[1];
|
|
672
|
-
}
|
|
673
|
-
function U(e) {
|
|
674
|
-
return e[2] < e[0] || e[3] < e[1];
|
|
675
|
-
}
|
|
676
|
-
function Ge(e, t) {
|
|
677
|
-
return t ? (t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t) : e;
|
|
678
|
-
}
|
|
679
|
-
function Ke(e, t, n) {
|
|
680
|
-
let r = !1, i = je(e, t), a = je(e, n);
|
|
681
|
-
if (i === L.INTERSECTING || a === L.INTERSECTING) r = !0;
|
|
682
|
-
else {
|
|
683
|
-
let o = e[0], s = e[1], c = e[2], l = e[3], u = t[0], d = t[1], f = n[0], p = n[1], m = (p - d) / (f - u), h, g;
|
|
684
|
-
a & L.ABOVE && !(i & L.ABOVE) && (h = f - (p - l) / m, r = h >= o && h <= c), !r && a & L.RIGHT && !(i & L.RIGHT) && (g = p - (f - c) * m, r = g >= s && g <= l), !r && a & L.BELOW && !(i & L.BELOW) && (h = f - (p - s) / m, r = h >= o && h <= c), !r && a & L.LEFT && !(i & L.LEFT) && (g = p - (f - o) * m, r = g >= s && g <= l);
|
|
685
|
-
}
|
|
686
|
-
return r;
|
|
687
|
-
}
|
|
688
|
-
function qe(e, t, n, r) {
|
|
689
|
-
if (U(e)) return z(n);
|
|
690
|
-
let i = [];
|
|
691
|
-
if (r > 1) {
|
|
692
|
-
let t = e[2] - e[0], n = e[3] - e[1];
|
|
693
|
-
for (let a = 0; a < r; ++a) i.push(e[0] + t * a / r, e[1], e[2], e[1] + n * a / r, e[2] - t * a / r, e[3], e[0], e[3] - n * a / r);
|
|
694
|
-
} else i = [
|
|
695
|
-
e[0],
|
|
696
|
-
e[1],
|
|
697
|
-
e[2],
|
|
698
|
-
e[1],
|
|
699
|
-
e[2],
|
|
700
|
-
e[3],
|
|
701
|
-
e[0],
|
|
702
|
-
e[3]
|
|
703
|
-
];
|
|
704
|
-
t(i, i, 2);
|
|
705
|
-
let a = [], o = [];
|
|
706
|
-
for (let e = 0, t = i.length; e < t; e += 2) a.push(i[e]), o.push(i[e + 1]);
|
|
707
|
-
return De(a, o, n);
|
|
708
|
-
}
|
|
709
|
-
//#endregion
|
|
710
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/coordinate.js
|
|
711
|
-
function Je(e, t) {
|
|
712
|
-
return e[0] += +t[0], e[1] += +t[1], e;
|
|
713
|
-
}
|
|
714
|
-
function W(e, t) {
|
|
715
|
-
let n = !0;
|
|
716
|
-
for (let r = e.length - 1; r >= 0; --r) if (e[r] != t[r]) {
|
|
717
|
-
n = !1;
|
|
718
|
-
break;
|
|
719
|
-
}
|
|
720
|
-
return n;
|
|
721
|
-
}
|
|
722
|
-
function Ye(e, t) {
|
|
723
|
-
let n = Math.cos(t), r = Math.sin(t), i = e[0] * n - e[1] * r, a = e[1] * n + e[0] * r;
|
|
724
|
-
return e[0] = i, e[1] = a, e;
|
|
725
|
-
}
|
|
726
|
-
//#endregion
|
|
727
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/console.js
|
|
728
|
-
var Xe = {
|
|
729
|
-
info: 1,
|
|
730
|
-
warn: 2,
|
|
731
|
-
error: 3,
|
|
732
|
-
none: 4
|
|
733
|
-
}, Ze = Xe.info;
|
|
734
|
-
function Qe(...e) {
|
|
735
|
-
Ze > Xe.warn || console.warn(...e);
|
|
736
|
-
}
|
|
737
|
-
//#endregion
|
|
738
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/proj.js
|
|
739
|
-
var $e = !0;
|
|
740
|
-
function et(e) {
|
|
741
|
-
$e = !(e === void 0 || e);
|
|
742
|
-
}
|
|
743
|
-
function tt(e, t) {
|
|
744
|
-
if (t !== void 0) {
|
|
745
|
-
for (let n = 0, r = e.length; n < r; ++n) t[n] = e[n];
|
|
746
|
-
t = t;
|
|
747
|
-
} else t = e.slice();
|
|
748
|
-
return t;
|
|
749
|
-
}
|
|
750
|
-
function nt(e, t) {
|
|
751
|
-
if (t !== void 0 && e !== t) {
|
|
752
|
-
for (let n = 0, r = e.length; n < r; ++n) t[n] = e[n];
|
|
753
|
-
e = t;
|
|
754
|
-
}
|
|
755
|
-
return e;
|
|
756
|
-
}
|
|
757
|
-
function rt(e) {
|
|
758
|
-
Te(e.getCode(), e), I(e, e, tt);
|
|
759
|
-
}
|
|
760
|
-
function it(e) {
|
|
761
|
-
e.forEach(rt);
|
|
762
|
-
}
|
|
763
|
-
function G(e) {
|
|
764
|
-
return typeof e == "string" ? we(e) : e || null;
|
|
765
|
-
}
|
|
766
|
-
function at(e) {
|
|
767
|
-
it(e), e.forEach(function(t) {
|
|
768
|
-
e.forEach(function(e) {
|
|
769
|
-
t !== e && I(t, e, tt);
|
|
770
|
-
});
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
function ot(e, t, n, r) {
|
|
774
|
-
e.forEach(function(e) {
|
|
775
|
-
t.forEach(function(t) {
|
|
776
|
-
I(e, t, n), I(t, e, r);
|
|
777
|
-
});
|
|
778
|
-
});
|
|
779
|
-
}
|
|
780
|
-
function st(e, t) {
|
|
781
|
-
return e ? typeof e == "string" ? G(e) : e : G(t);
|
|
782
|
-
}
|
|
783
|
-
function ct(e, t) {
|
|
784
|
-
let n = Ee(e.getCode(), t.getCode());
|
|
785
|
-
return n ||= nt, n;
|
|
786
|
-
}
|
|
787
|
-
function K(e, t) {
|
|
788
|
-
return ct(G(e), G(t));
|
|
789
|
-
}
|
|
790
|
-
function lt(e, t, n) {
|
|
791
|
-
return K(t, n)(e, void 0, e.length);
|
|
792
|
-
}
|
|
793
|
-
function ut(e, t, n, r) {
|
|
794
|
-
return qe(e, K(t, n), void 0, r);
|
|
795
|
-
}
|
|
796
|
-
var q = null;
|
|
797
|
-
function dt() {
|
|
798
|
-
return q;
|
|
799
|
-
}
|
|
800
|
-
function ft(e, t) {
|
|
801
|
-
return q ? lt(e, t, q) : e;
|
|
802
|
-
}
|
|
803
|
-
function J(e, t) {
|
|
804
|
-
return q ? lt(e, q, t) : ($e && !W(e, [0, 0]) && e[0] >= -180 && e[0] <= 180 && e[1] >= -90 && e[1] <= 90 && ($e = !1, Qe("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")), e);
|
|
805
|
-
}
|
|
806
|
-
function pt(e, t) {
|
|
807
|
-
return q ? ut(e, t, q) : e;
|
|
808
|
-
}
|
|
809
|
-
function Y(e, t) {
|
|
810
|
-
return q ? ut(e, q, t) : e;
|
|
811
|
-
}
|
|
812
|
-
function mt() {
|
|
813
|
-
at(_e), at(Ce), ot(Ce, _e, ve, ye);
|
|
814
|
-
}
|
|
815
|
-
mt();
|
|
816
|
-
//#endregion
|
|
817
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/centerconstraint.js
|
|
818
|
-
function ht(e, t, n) {
|
|
819
|
-
return (function(r, i, a, o, s) {
|
|
820
|
-
if (!r) return;
|
|
821
|
-
if (!i && !t) return r;
|
|
822
|
-
let c = t ? 0 : a[0] * i, l = t ? 0 : a[1] * i, u = s ? s[0] : 0, d = s ? s[1] : 0, f = e[0] + c / 2 + u, p = e[2] - c / 2 + u, m = e[1] + l / 2 + d, h = e[3] - l / 2 + d;
|
|
823
|
-
f > p && (f = (p + f) / 2, p = f), m > h && (m = (h + m) / 2, h = m);
|
|
824
|
-
let g = T(r[0], f, p), _ = T(r[1], m, h);
|
|
825
|
-
if (o && n && i) {
|
|
826
|
-
let e = 30 * i;
|
|
827
|
-
g += -e * Math.log(1 + Math.max(0, f - r[0]) / e) + e * Math.log(1 + Math.max(0, r[0] - p) / e), _ += -e * Math.log(1 + Math.max(0, m - r[1]) / e) + e * Math.log(1 + Math.max(0, r[1] - h) / e);
|
|
828
|
-
}
|
|
829
|
-
return [g, _];
|
|
830
|
-
});
|
|
831
|
-
}
|
|
832
|
-
function gt(e) {
|
|
833
|
-
return e;
|
|
834
|
-
}
|
|
835
|
-
//#endregion
|
|
836
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/resolutionconstraint.js
|
|
837
|
-
function _t(e, t, n, r) {
|
|
838
|
-
let i = H(t) / n[0], a = V(t) / n[1];
|
|
839
|
-
return r ? Math.min(e, Math.max(i, a)) : Math.min(e, Math.min(i, a));
|
|
840
|
-
}
|
|
841
|
-
function vt(e, t, n) {
|
|
842
|
-
let r = Math.min(e, t);
|
|
843
|
-
return r *= Math.log(1 + 50 * Math.max(0, e / t - 1)) / 50 + 1, n && (r = Math.max(r, n), r /= Math.log(1 + 50 * Math.max(0, n / e - 1)) / 50 + 1), T(r, n / 2, t * 2);
|
|
844
|
-
}
|
|
845
|
-
function yt(e, t, n, r) {
|
|
846
|
-
return t = t === void 0 ? !0 : t, (function(i, a, o, s) {
|
|
847
|
-
if (i !== void 0) {
|
|
848
|
-
let c = e[0], l = e[e.length - 1], u = n ? _t(c, n, o, r) : c;
|
|
849
|
-
if (s) return t ? vt(i, u, l) : T(i, l, u);
|
|
850
|
-
let f = Math.floor(d(e, Math.min(u, i), a));
|
|
851
|
-
return e[f] > u && f < e.length - 1 ? e[f + 1] : e[f];
|
|
852
|
-
}
|
|
853
|
-
});
|
|
854
|
-
}
|
|
855
|
-
function bt(e, t, n, r, i, a) {
|
|
856
|
-
return r = r === void 0 ? !0 : r, n = n === void 0 ? 0 : n, (function(o, s, c, l) {
|
|
857
|
-
if (o !== void 0) {
|
|
858
|
-
let u = i ? _t(t, i, c, a) : t;
|
|
859
|
-
if (l) return r ? vt(o, u, n) : T(o, n, u);
|
|
860
|
-
let d = 1e-9, f = Math.ceil(Math.log(t / u) / Math.log(e) - d), p = -s * (.5 - d) + .5, m = Math.floor(Math.log(t / Math.min(u, o)) / Math.log(e) + p);
|
|
861
|
-
return T(t / e ** +Math.max(f, m), n, u);
|
|
862
|
-
}
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
|
-
function xt(e, t, n, r, i) {
|
|
866
|
-
return n = n === void 0 ? !0 : n, (function(a, o, s, c) {
|
|
867
|
-
if (a !== void 0) {
|
|
868
|
-
let o = r ? _t(e, r, s, i) : e;
|
|
869
|
-
return !n || !c ? T(a, t, o) : vt(a, o, t);
|
|
870
|
-
}
|
|
871
|
-
});
|
|
872
|
-
}
|
|
873
|
-
//#endregion
|
|
874
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/rotationconstraint.js
|
|
875
|
-
function St(e) {
|
|
876
|
-
if (e !== void 0) return 0;
|
|
877
|
-
}
|
|
878
|
-
function Ct(e) {
|
|
879
|
-
if (e !== void 0) return e;
|
|
880
|
-
}
|
|
881
|
-
function wt(e) {
|
|
882
|
-
let t = 2 * Math.PI / e;
|
|
883
|
-
return (function(e, n) {
|
|
884
|
-
if (n) return e;
|
|
885
|
-
if (e !== void 0) return e = Math.floor(e / t + .5) * t, e;
|
|
886
|
-
});
|
|
887
|
-
}
|
|
888
|
-
function Tt(e) {
|
|
889
|
-
let t = e === void 0 ? ce(5) : e;
|
|
890
|
-
return (function(e, n) {
|
|
891
|
-
return n || e === void 0 ? e : Math.abs(e) <= t ? 0 : e;
|
|
892
|
-
});
|
|
893
|
-
}
|
|
894
|
-
//#endregion
|
|
895
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/easing.js
|
|
896
|
-
function Et(e) {
|
|
897
|
-
return e ** 3;
|
|
898
|
-
}
|
|
899
|
-
function Dt(e) {
|
|
900
|
-
return 1 - Et(1 - e);
|
|
901
|
-
}
|
|
902
|
-
function Ot(e) {
|
|
903
|
-
return 3 * e * e - 2 * e * e * e;
|
|
904
|
-
}
|
|
905
|
-
function kt() {
|
|
906
|
-
return [
|
|
907
|
-
1,
|
|
908
|
-
0,
|
|
909
|
-
0,
|
|
910
|
-
1,
|
|
911
|
-
0,
|
|
912
|
-
0
|
|
913
|
-
];
|
|
914
|
-
}
|
|
915
|
-
function At(e, t, n, r, i, a, o, s) {
|
|
916
|
-
let c = Math.sin(a), l = Math.cos(a);
|
|
917
|
-
return e[0] = r * l, e[1] = i * c, e[2] = -r * c, e[3] = i * l, e[4] = o * r * l - s * r * c + t, e[5] = o * i * c + s * i * l + n, e;
|
|
918
|
-
}
|
|
919
|
-
//#endregion
|
|
920
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/geom/flat/transform.js
|
|
921
|
-
function jt(e, t, n, r, i, a) {
|
|
922
|
-
a ||= [];
|
|
923
|
-
let o = 0;
|
|
924
|
-
for (let s = t; s < n; s += r) {
|
|
925
|
-
let t = e[s], n = e[s + 1];
|
|
926
|
-
a[o++] = i[0] * t + i[2] * n + i[4], a[o++] = i[1] * t + i[3] * n + i[5];
|
|
927
|
-
}
|
|
928
|
-
return a && a.length != o && (a.length = o), a;
|
|
929
|
-
}
|
|
930
|
-
function Mt(e, t, n, r, i, a, o) {
|
|
931
|
-
o ||= [];
|
|
932
|
-
let s = Math.cos(i), c = Math.sin(i), l = a[0], u = a[1], d = 0;
|
|
933
|
-
for (let i = t; i < n; i += r) {
|
|
934
|
-
let t = e[i] - l, n = e[i + 1] - u;
|
|
935
|
-
o[d++] = l + t * s - n * c, o[d++] = u + t * c + n * s;
|
|
936
|
-
for (let t = i + 2; t < i + r; ++t) o[d++] = e[t];
|
|
937
|
-
}
|
|
938
|
-
return o && o.length != d && (o.length = d), o;
|
|
939
|
-
}
|
|
940
|
-
function Nt(e, t, n, r, i, a, o, s) {
|
|
941
|
-
s ||= [];
|
|
942
|
-
let c = o[0], l = o[1], u = 0;
|
|
943
|
-
for (let o = t; o < n; o += r) {
|
|
944
|
-
let t = e[o] - c, n = e[o + 1] - l;
|
|
945
|
-
s[u++] = c + i * t, s[u++] = l + a * n;
|
|
946
|
-
for (let t = o + 2; t < o + r; ++t) s[u++] = e[t];
|
|
947
|
-
}
|
|
948
|
-
return s && s.length != u && (s.length = u), s;
|
|
949
|
-
}
|
|
950
|
-
function Pt(e, t, n, r, i, a, o) {
|
|
951
|
-
o ||= [];
|
|
952
|
-
let s = 0;
|
|
953
|
-
for (let c = t; c < n; c += r) {
|
|
954
|
-
o[s++] = e[c] + i, o[s++] = e[c + 1] + a;
|
|
955
|
-
for (let t = c + 2; t < c + r; ++t) o[s++] = e[t];
|
|
956
|
-
}
|
|
957
|
-
return o && o.length != s && (o.length = s), o;
|
|
958
|
-
}
|
|
959
|
-
//#endregion
|
|
960
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/geom/Geometry.js
|
|
961
|
-
var Ft = kt(), It = class extends oe {
|
|
962
|
-
constructor() {
|
|
963
|
-
super(), this.extent_ = Me(), this.extentRevision_ = -1, this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = 0, this.simplifyTransformedInternal = h((e, t, n) => {
|
|
964
|
-
if (!n) return this.getSimplifiedGeometry(t);
|
|
965
|
-
let r = this.clone();
|
|
966
|
-
return r.applyTransform(n), r.getSimplifiedGeometry(t);
|
|
967
|
-
});
|
|
968
|
-
}
|
|
969
|
-
simplifyTransformed(e, t) {
|
|
970
|
-
return this.simplifyTransformedInternal(this.getRevision(), e, t);
|
|
971
|
-
}
|
|
972
|
-
clone() {
|
|
973
|
-
return S();
|
|
974
|
-
}
|
|
975
|
-
closestPointXY(e, t, n, r) {
|
|
976
|
-
return S();
|
|
977
|
-
}
|
|
978
|
-
containsXY(e, t) {
|
|
979
|
-
let n = this.getClosestPoint([e, t]);
|
|
980
|
-
return n[0] === e && n[1] === t;
|
|
981
|
-
}
|
|
982
|
-
getClosestPoint(e, t) {
|
|
983
|
-
return t ||= [NaN, NaN], this.closestPointXY(e[0], e[1], t, Infinity), t;
|
|
984
|
-
}
|
|
985
|
-
intersectsCoordinate(e) {
|
|
986
|
-
return this.containsXY(e[0], e[1]);
|
|
987
|
-
}
|
|
988
|
-
computeExtent(e) {
|
|
989
|
-
return S();
|
|
990
|
-
}
|
|
991
|
-
getExtent(e) {
|
|
992
|
-
if (this.extentRevision_ != this.getRevision()) {
|
|
993
|
-
let e = this.computeExtent(this.extent_);
|
|
994
|
-
(isNaN(e[0]) || isNaN(e[1])) && z(e), this.extentRevision_ = this.getRevision();
|
|
995
|
-
}
|
|
996
|
-
return Ge(this.extent_, e);
|
|
997
|
-
}
|
|
998
|
-
rotate(e, t) {
|
|
999
|
-
S();
|
|
1000
|
-
}
|
|
1001
|
-
scale(e, t, n) {
|
|
1002
|
-
S();
|
|
1003
|
-
}
|
|
1004
|
-
simplify(e) {
|
|
1005
|
-
return this.getSimplifiedGeometry(e * e);
|
|
1006
|
-
}
|
|
1007
|
-
getSimplifiedGeometry(e) {
|
|
1008
|
-
return S();
|
|
1009
|
-
}
|
|
1010
|
-
getType() {
|
|
1011
|
-
return S();
|
|
1012
|
-
}
|
|
1013
|
-
applyTransform(e) {
|
|
1014
|
-
S();
|
|
1015
|
-
}
|
|
1016
|
-
intersectsExtent(e) {
|
|
1017
|
-
return S();
|
|
1018
|
-
}
|
|
1019
|
-
translate(e, t) {
|
|
1020
|
-
S();
|
|
1021
|
-
}
|
|
1022
|
-
transform(e, t) {
|
|
1023
|
-
let n = G(e), r = n.getUnits() == "tile-pixels" ? function(e, r, i) {
|
|
1024
|
-
let a = n.getExtent(), o = n.getWorldExtent(), s = V(o) / V(a);
|
|
1025
|
-
return At(Ft, o[0], o[3], s, -s, 0, 0, 0), jt(e, 0, e.length, i, Ft, r), K(n, t)(e, r, i);
|
|
1026
|
-
} : K(n, t);
|
|
1027
|
-
return this.applyTransform(r), this;
|
|
1028
|
-
}
|
|
1029
|
-
}, Lt = class extends It {
|
|
1030
|
-
constructor() {
|
|
1031
|
-
super(), this.layout = "XY", this.stride = 2, this.flatCoordinates;
|
|
1032
|
-
}
|
|
1033
|
-
computeExtent(e) {
|
|
1034
|
-
return Pe(this.flatCoordinates, 0, this.flatCoordinates.length, this.stride, e);
|
|
1035
|
-
}
|
|
1036
|
-
getCoordinates() {
|
|
1037
|
-
return S();
|
|
1038
|
-
}
|
|
1039
|
-
getFirstCoordinate() {
|
|
1040
|
-
return this.flatCoordinates.slice(0, this.stride);
|
|
1041
|
-
}
|
|
1042
|
-
getFlatCoordinates() {
|
|
1043
|
-
return this.flatCoordinates;
|
|
1044
|
-
}
|
|
1045
|
-
getLastCoordinate() {
|
|
1046
|
-
return this.flatCoordinates.slice(this.flatCoordinates.length - this.stride);
|
|
1047
|
-
}
|
|
1048
|
-
getLayout() {
|
|
1049
|
-
return this.layout;
|
|
1050
|
-
}
|
|
1051
|
-
getSimplifiedGeometry(e) {
|
|
1052
|
-
if (this.simplifiedGeometryRevision !== this.getRevision() && (this.simplifiedGeometryMaxMinSquaredTolerance = 0, this.simplifiedGeometryRevision = this.getRevision()), e < 0 || this.simplifiedGeometryMaxMinSquaredTolerance !== 0 && e <= this.simplifiedGeometryMaxMinSquaredTolerance) return this;
|
|
1053
|
-
let t = this.getSimplifiedGeometryInternal(e);
|
|
1054
|
-
return t.getFlatCoordinates().length < this.flatCoordinates.length ? t : (this.simplifiedGeometryMaxMinSquaredTolerance = e, this);
|
|
1055
|
-
}
|
|
1056
|
-
getSimplifiedGeometryInternal(e) {
|
|
1057
|
-
return this;
|
|
1058
|
-
}
|
|
1059
|
-
getStride() {
|
|
1060
|
-
return this.stride;
|
|
1061
|
-
}
|
|
1062
|
-
setFlatCoordinates(e, t) {
|
|
1063
|
-
this.stride = zt(e), this.layout = e, this.flatCoordinates = t;
|
|
1064
|
-
}
|
|
1065
|
-
setCoordinates(e, t) {
|
|
1066
|
-
S();
|
|
1067
|
-
}
|
|
1068
|
-
setLayout(e, t, n) {
|
|
1069
|
-
let r;
|
|
1070
|
-
if (e) r = zt(e);
|
|
1071
|
-
else {
|
|
1072
|
-
for (let e = 0; e < n; ++e) {
|
|
1073
|
-
if (t.length === 0) {
|
|
1074
|
-
this.layout = "XY", this.stride = 2;
|
|
1075
|
-
return;
|
|
1076
|
-
}
|
|
1077
|
-
t = t[0];
|
|
1078
|
-
}
|
|
1079
|
-
r = t.length, e = Rt(r);
|
|
1080
|
-
}
|
|
1081
|
-
this.layout = e, this.stride = r;
|
|
1082
|
-
}
|
|
1083
|
-
applyTransform(e) {
|
|
1084
|
-
this.flatCoordinates && (e(this.flatCoordinates, this.flatCoordinates, this.stride), this.changed());
|
|
1085
|
-
}
|
|
1086
|
-
rotate(e, t) {
|
|
1087
|
-
let n = this.getFlatCoordinates();
|
|
1088
|
-
if (n) {
|
|
1089
|
-
let r = this.getStride();
|
|
1090
|
-
Mt(n, 0, n.length, r, e, t, n), this.changed();
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
scale(e, t, n) {
|
|
1094
|
-
t === void 0 && (t = e), n ||= B(this.getExtent());
|
|
1095
|
-
let r = this.getFlatCoordinates();
|
|
1096
|
-
if (r) {
|
|
1097
|
-
let i = this.getStride();
|
|
1098
|
-
Nt(r, 0, r.length, i, e, t, n, r), this.changed();
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
translate(e, t) {
|
|
1102
|
-
let n = this.getFlatCoordinates();
|
|
1103
|
-
if (n) {
|
|
1104
|
-
let r = this.getStride();
|
|
1105
|
-
Pt(n, 0, n.length, r, e, t, n), this.changed();
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
};
|
|
1109
|
-
function Rt(e) {
|
|
1110
|
-
let t;
|
|
1111
|
-
return e == 2 ? t = "XY" : e == 3 ? t = "XYZ" : e == 4 && (t = "XYZM"), t;
|
|
1112
|
-
}
|
|
1113
|
-
function zt(e) {
|
|
1114
|
-
let t;
|
|
1115
|
-
return e == "XY" ? t = 2 : e == "XYZ" || e == "XYM" ? t = 3 : e == "XYZM" && (t = 4), t;
|
|
1116
|
-
}
|
|
1117
|
-
//#endregion
|
|
1118
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/geom/flat/closest.js
|
|
1119
|
-
function Bt(e, t, n, r, i, a, o) {
|
|
1120
|
-
let s = e[t], c = e[t + 1], l = e[n] - s, u = e[n + 1] - c, d;
|
|
1121
|
-
if (l === 0 && u === 0) d = t;
|
|
1122
|
-
else {
|
|
1123
|
-
let f = ((i - s) * l + (a - c) * u) / (l * l + u * u);
|
|
1124
|
-
if (f > 1) d = n;
|
|
1125
|
-
else if (f > 0) {
|
|
1126
|
-
for (let i = 0; i < r; ++i) o[i] = ue(e[t + i], e[n + i], f);
|
|
1127
|
-
o.length = r;
|
|
1128
|
-
return;
|
|
1129
|
-
} else d = t;
|
|
1130
|
-
}
|
|
1131
|
-
for (let t = 0; t < r; ++t) o[t] = e[d + t];
|
|
1132
|
-
o.length = r;
|
|
1133
|
-
}
|
|
1134
|
-
function Vt(e, t, n, r, i) {
|
|
1135
|
-
let a = e[t], o = e[t + 1];
|
|
1136
|
-
for (t += r; t < n; t += r) {
|
|
1137
|
-
let n = e[t], r = e[t + 1], s = E(a, o, n, r);
|
|
1138
|
-
s > i && (i = s), a = n, o = r;
|
|
1139
|
-
}
|
|
1140
|
-
return i;
|
|
1141
|
-
}
|
|
1142
|
-
function Ht(e, t, n, r, i) {
|
|
1143
|
-
for (let a = 0, o = n.length; a < o; ++a) {
|
|
1144
|
-
let o = n[a];
|
|
1145
|
-
i = Vt(e, t, o, r, i), t = o;
|
|
1146
|
-
}
|
|
1147
|
-
return i;
|
|
1148
|
-
}
|
|
1149
|
-
function Ut(e, t, n, r, i, a, o, s, c, l, u) {
|
|
1150
|
-
if (t == n) return l;
|
|
1151
|
-
let d, f;
|
|
1152
|
-
if (i === 0) {
|
|
1153
|
-
if (f = E(o, s, e[t], e[t + 1]), f < l) {
|
|
1154
|
-
for (d = 0; d < r; ++d) c[d] = e[t + d];
|
|
1155
|
-
return c.length = r, f;
|
|
1156
|
-
}
|
|
1157
|
-
return l;
|
|
1158
|
-
}
|
|
1159
|
-
u ||= [NaN, NaN];
|
|
1160
|
-
let p = t + r;
|
|
1161
|
-
for (; p < n;) if (Bt(e, p - r, p, r, o, s, u), f = E(o, s, u[0], u[1]), f < l) {
|
|
1162
|
-
for (l = f, d = 0; d < r; ++d) c[d] = u[d];
|
|
1163
|
-
c.length = r, p += r;
|
|
1164
|
-
} else p += r * Math.max((Math.sqrt(f) - Math.sqrt(l)) / i | 0, 1);
|
|
1165
|
-
if (a && (Bt(e, n - r, t, r, o, s, u), f = E(o, s, u[0], u[1]), f < l)) {
|
|
1166
|
-
for (l = f, d = 0; d < r; ++d) c[d] = u[d];
|
|
1167
|
-
c.length = r;
|
|
1168
|
-
}
|
|
1169
|
-
return l;
|
|
1170
|
-
}
|
|
1171
|
-
function Wt(e, t, n, r, i, a, o, s, c, l, u) {
|
|
1172
|
-
u ||= [NaN, NaN];
|
|
1173
|
-
for (let d = 0, f = n.length; d < f; ++d) {
|
|
1174
|
-
let f = n[d];
|
|
1175
|
-
l = Ut(e, t, f, r, i, a, o, s, c, l, u), t = f;
|
|
1176
|
-
}
|
|
1177
|
-
return l;
|
|
1178
|
-
}
|
|
1179
|
-
//#endregion
|
|
1180
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/geom/flat/deflate.js
|
|
1181
|
-
function Gt(e, t, n, r) {
|
|
1182
|
-
for (let r = 0, i = n.length; r < i; ++r) e[t++] = n[r];
|
|
1183
|
-
return t;
|
|
1184
|
-
}
|
|
1185
|
-
function Kt(e, t, n, r) {
|
|
1186
|
-
for (let i = 0, a = n.length; i < a; ++i) {
|
|
1187
|
-
let a = n[i];
|
|
1188
|
-
for (let n = 0; n < r; ++n) e[t++] = a[n];
|
|
1189
|
-
}
|
|
1190
|
-
return t;
|
|
1191
|
-
}
|
|
1192
|
-
function qt(e, t, n, r, i) {
|
|
1193
|
-
i ||= [];
|
|
1194
|
-
let a = 0;
|
|
1195
|
-
for (let o = 0, s = n.length; o < s; ++o) {
|
|
1196
|
-
let s = Kt(e, t, n[o], r);
|
|
1197
|
-
i[a++] = s, t = s;
|
|
1198
|
-
}
|
|
1199
|
-
return i.length = a, i;
|
|
1200
|
-
}
|
|
1201
|
-
//#endregion
|
|
1202
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/geom/flat/simplify.js
|
|
1203
|
-
function Jt(e, t, n, r, i, a, o) {
|
|
1204
|
-
let s = (n - t) / r;
|
|
1205
|
-
if (s < 3) {
|
|
1206
|
-
for (; t < n; t += r) a[o++] = e[t], a[o++] = e[t + 1];
|
|
1207
|
-
return o;
|
|
1208
|
-
}
|
|
1209
|
-
let c = Array(s);
|
|
1210
|
-
c[0] = 1, c[s - 1] = 1;
|
|
1211
|
-
let l = [t, n - r], u = 0;
|
|
1212
|
-
for (; l.length > 0;) {
|
|
1213
|
-
let n = l.pop(), a = l.pop(), o = 0, s = e[a], d = e[a + 1], f = e[n], p = e[n + 1];
|
|
1214
|
-
for (let t = a + r; t < n; t += r) {
|
|
1215
|
-
let n = e[t], r = e[t + 1], i = se(n, r, s, d, f, p);
|
|
1216
|
-
i > o && (u = t, o = i);
|
|
1217
|
-
}
|
|
1218
|
-
o > i && (c[(u - t) / r] = 1, a + r < u && l.push(a, u), u + r < n && l.push(u, n));
|
|
1219
|
-
}
|
|
1220
|
-
for (let n = 0; n < s; ++n) c[n] && (a[o++] = e[t + n * r], a[o++] = e[t + n * r + 1]);
|
|
1221
|
-
return o;
|
|
1222
|
-
}
|
|
1223
|
-
function X(e, t) {
|
|
1224
|
-
return t * Math.round(e / t);
|
|
1225
|
-
}
|
|
1226
|
-
function Yt(e, t, n, r, i, a, o) {
|
|
1227
|
-
if (t == n) return o;
|
|
1228
|
-
let s = X(e[t], i), c = X(e[t + 1], i);
|
|
1229
|
-
t += r, a[o++] = s, a[o++] = c;
|
|
1230
|
-
let l, u;
|
|
1231
|
-
do
|
|
1232
|
-
if (l = X(e[t], i), u = X(e[t + 1], i), t += r, t == n) return a[o++] = l, a[o++] = u, o;
|
|
1233
|
-
while (l == s && u == c);
|
|
1234
|
-
for (; t < n;) {
|
|
1235
|
-
let n = X(e[t], i), d = X(e[t + 1], i);
|
|
1236
|
-
if (t += r, n == l && d == u) continue;
|
|
1237
|
-
let f = l - s, p = u - c, m = n - s, h = d - c;
|
|
1238
|
-
if (f * h == p * m && (f < 0 && m < f || f == m || f > 0 && m > f) && (p < 0 && h < p || p == h || p > 0 && h > p)) {
|
|
1239
|
-
l = n, u = d;
|
|
1240
|
-
continue;
|
|
1241
|
-
}
|
|
1242
|
-
a[o++] = l, a[o++] = u, s = l, c = u, l = n, u = d;
|
|
1243
|
-
}
|
|
1244
|
-
return a[o++] = l, a[o++] = u, o;
|
|
1245
|
-
}
|
|
1246
|
-
function Xt(e, t, n, r, i, a, o, s) {
|
|
1247
|
-
for (let c = 0, l = n.length; c < l; ++c) {
|
|
1248
|
-
let l = n[c];
|
|
1249
|
-
o = Yt(e, t, l, r, i, a, o), s.push(o), t = l;
|
|
1250
|
-
}
|
|
1251
|
-
return o;
|
|
1252
|
-
}
|
|
1253
|
-
//#endregion
|
|
1254
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/geom/flat/inflate.js
|
|
1255
|
-
function Zt(e, t, n, r, i) {
|
|
1256
|
-
i = i === void 0 ? [] : i;
|
|
1257
|
-
let a = 0;
|
|
1258
|
-
for (let o = t; o < n; o += r) i[a++] = e.slice(o, o + r);
|
|
1259
|
-
return i.length = a, i;
|
|
1260
|
-
}
|
|
1261
|
-
function Qt(e, t, n, r, i) {
|
|
1262
|
-
i = i === void 0 ? [] : i;
|
|
1263
|
-
let a = 0;
|
|
1264
|
-
for (let o = 0, s = n.length; o < s; ++o) {
|
|
1265
|
-
let s = n[o];
|
|
1266
|
-
i[a++] = Zt(e, t, s, r, i[a]), t = s;
|
|
1267
|
-
}
|
|
1268
|
-
return i.length = a, i;
|
|
1269
|
-
}
|
|
1270
|
-
//#endregion
|
|
1271
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/geom/flat/area.js
|
|
1272
|
-
function $t(e, t, n, r) {
|
|
1273
|
-
let i = 0, a = e[n - r], o = e[n - r + 1];
|
|
1274
|
-
for (; t < n; t += r) {
|
|
1275
|
-
let n = e[t], r = e[t + 1];
|
|
1276
|
-
i += o * n - a * r, a = n, o = r;
|
|
1277
|
-
}
|
|
1278
|
-
return i / 2;
|
|
1279
|
-
}
|
|
1280
|
-
function en(e, t, n, r) {
|
|
1281
|
-
let i = 0;
|
|
1282
|
-
for (let a = 0, o = n.length; a < o; ++a) {
|
|
1283
|
-
let o = n[a];
|
|
1284
|
-
i += $t(e, t, o, r), t = o;
|
|
1285
|
-
}
|
|
1286
|
-
return i;
|
|
1287
|
-
}
|
|
1288
|
-
//#endregion
|
|
1289
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/geom/LinearRing.js
|
|
1290
|
-
var tn = class e extends Lt {
|
|
1291
|
-
constructor(e, t) {
|
|
1292
|
-
super(), this.maxDelta_ = -1, this.maxDeltaRevision_ = -1, t !== void 0 && !Array.isArray(e[0]) ? this.setFlatCoordinates(t, e) : this.setCoordinates(e, t);
|
|
1293
|
-
}
|
|
1294
|
-
clone() {
|
|
1295
|
-
return new e(this.flatCoordinates.slice(), this.layout);
|
|
1296
|
-
}
|
|
1297
|
-
closestPointXY(e, t, n, r) {
|
|
1298
|
-
return r < Oe(this.getExtent(), e, t) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(Vt(this.flatCoordinates, 0, this.flatCoordinates.length, this.stride, 0)), this.maxDeltaRevision_ = this.getRevision()), Ut(this.flatCoordinates, 0, this.flatCoordinates.length, this.stride, this.maxDelta_, !0, e, t, n, r));
|
|
1299
|
-
}
|
|
1300
|
-
getArea() {
|
|
1301
|
-
return $t(this.flatCoordinates, 0, this.flatCoordinates.length, this.stride);
|
|
1302
|
-
}
|
|
1303
|
-
getCoordinates() {
|
|
1304
|
-
return Zt(this.flatCoordinates, 0, this.flatCoordinates.length, this.stride);
|
|
1305
|
-
}
|
|
1306
|
-
getSimplifiedGeometryInternal(t) {
|
|
1307
|
-
let n = [];
|
|
1308
|
-
return n.length = Jt(this.flatCoordinates, 0, this.flatCoordinates.length, this.stride, t, n, 0), new e(n, "XY");
|
|
1309
|
-
}
|
|
1310
|
-
getType() {
|
|
1311
|
-
return "LinearRing";
|
|
1312
|
-
}
|
|
1313
|
-
intersectsExtent(e) {
|
|
1314
|
-
return !1;
|
|
1315
|
-
}
|
|
1316
|
-
setCoordinates(e, t) {
|
|
1317
|
-
this.setLayout(t, e, 1), this.flatCoordinates ||= [], this.flatCoordinates.length = Kt(this.flatCoordinates, 0, e, this.stride), this.changed();
|
|
1318
|
-
}
|
|
1319
|
-
}, nn = class e extends Lt {
|
|
1320
|
-
constructor(e, t) {
|
|
1321
|
-
super(), this.setCoordinates(e, t);
|
|
1322
|
-
}
|
|
1323
|
-
clone() {
|
|
1324
|
-
let t = new e(this.flatCoordinates.slice(), this.layout);
|
|
1325
|
-
return t.applyProperties(this), t;
|
|
1326
|
-
}
|
|
1327
|
-
closestPointXY(e, t, n, r) {
|
|
1328
|
-
let i = this.flatCoordinates, a = E(e, t, i[0], i[1]);
|
|
1329
|
-
if (a < r) {
|
|
1330
|
-
let e = this.stride;
|
|
1331
|
-
for (let t = 0; t < e; ++t) n[t] = i[t];
|
|
1332
|
-
return n.length = e, a;
|
|
1333
|
-
}
|
|
1334
|
-
return r;
|
|
1335
|
-
}
|
|
1336
|
-
getCoordinates() {
|
|
1337
|
-
return this.flatCoordinates.slice();
|
|
1338
|
-
}
|
|
1339
|
-
computeExtent(e) {
|
|
1340
|
-
return Ne(this.flatCoordinates, e);
|
|
1341
|
-
}
|
|
1342
|
-
getType() {
|
|
1343
|
-
return "Point";
|
|
1344
|
-
}
|
|
1345
|
-
intersectsExtent(e) {
|
|
1346
|
-
return Ae(e, this.flatCoordinates[0], this.flatCoordinates[1]);
|
|
1347
|
-
}
|
|
1348
|
-
setCoordinates(e, t) {
|
|
1349
|
-
this.setLayout(t, e, 0), this.flatCoordinates ||= [], this.flatCoordinates.length = Gt(this.flatCoordinates, 0, e, this.stride), this.changed();
|
|
1350
|
-
}
|
|
1351
|
-
};
|
|
1352
|
-
//#endregion
|
|
1353
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/geom/flat/contains.js
|
|
1354
|
-
function rn(e, t, n, r, i) {
|
|
1355
|
-
return !Le(i, function(i) {
|
|
1356
|
-
return !Z(e, t, n, r, i[0], i[1]);
|
|
1357
|
-
});
|
|
1358
|
-
}
|
|
1359
|
-
function Z(e, t, n, r, i, a) {
|
|
1360
|
-
let o = 0, s = e[n - r], c = e[n - r + 1];
|
|
1361
|
-
for (; t < n; t += r) {
|
|
1362
|
-
let n = e[t], r = e[t + 1];
|
|
1363
|
-
c <= a ? r > a && (n - s) * (a - c) - (i - s) * (r - c) > 0 && o++ : r <= a && (n - s) * (a - c) - (i - s) * (r - c) < 0 && o--, s = n, c = r;
|
|
1364
|
-
}
|
|
1365
|
-
return o !== 0;
|
|
1366
|
-
}
|
|
1367
|
-
function an(e, t, n, r, i, a) {
|
|
1368
|
-
if (n.length === 0 || !Z(e, t, n[0], r, i, a)) return !1;
|
|
1369
|
-
for (let t = 1, o = n.length; t < o; ++t) if (Z(e, n[t - 1], n[t], r, i, a)) return !1;
|
|
1370
|
-
return !0;
|
|
1371
|
-
}
|
|
1372
|
-
//#endregion
|
|
1373
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/geom/flat/interiorpoint.js
|
|
1374
|
-
function on(e, t, n, r, i, a, o) {
|
|
1375
|
-
let s, c, l, d, f, p, m, h = i[a + 1], g = [];
|
|
1376
|
-
for (let i = 0, a = n.length; i < a; ++i) {
|
|
1377
|
-
let a = n[i];
|
|
1378
|
-
for (d = e[a - r], p = e[a - r + 1], s = t; s < a; s += r) f = e[s], m = e[s + 1], (h <= p && m <= h || p <= h && h <= m) && (l = (h - p) / (m - p) * (f - d) + d, g.push(l)), d = f, p = m;
|
|
1379
|
-
}
|
|
1380
|
-
let _ = NaN, v = -Infinity;
|
|
1381
|
-
for (g.sort(u), d = g[0], s = 1, c = g.length; s < c; ++s) {
|
|
1382
|
-
f = g[s];
|
|
1383
|
-
let i = Math.abs(f - d);
|
|
1384
|
-
i > v && (l = (d + f) / 2, an(e, t, n, r, l, h) && (_ = l, v = i)), d = f;
|
|
1385
|
-
}
|
|
1386
|
-
return isNaN(_) && (_ = i[a]), o ? (o.push(_, h, v), o) : [
|
|
1387
|
-
_,
|
|
1388
|
-
h,
|
|
1389
|
-
v
|
|
1390
|
-
];
|
|
1391
|
-
}
|
|
1392
|
-
//#endregion
|
|
1393
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/geom/flat/segments.js
|
|
1394
|
-
function sn(e, t, n, r, i) {
|
|
1395
|
-
let a;
|
|
1396
|
-
for (t += r; t < n; t += r) if (a = i(e.slice(t - r, t), e.slice(t, t + r)), a) return a;
|
|
1397
|
-
return !1;
|
|
1398
|
-
}
|
|
1399
|
-
//#endregion
|
|
1400
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/geom/flat/intersectsextent.js
|
|
1401
|
-
function cn(e, t, n, r, i) {
|
|
1402
|
-
let a = Fe(Me(), e, t, n, r);
|
|
1403
|
-
return We(i, a) ? ke(i, a) || a[0] >= i[0] && a[2] <= i[2] || a[1] >= i[1] && a[3] <= i[3] ? !0 : sn(e, t, n, r, function(e, t) {
|
|
1404
|
-
return Ke(i, e, t);
|
|
1405
|
-
}) : !1;
|
|
1406
|
-
}
|
|
1407
|
-
function ln(e, t, n, r, i) {
|
|
1408
|
-
return !!(cn(e, t, n, r, i) || Z(e, t, n, r, i[0], i[1]) || Z(e, t, n, r, i[0], i[3]) || Z(e, t, n, r, i[2], i[1]) || Z(e, t, n, r, i[2], i[3]));
|
|
1409
|
-
}
|
|
1410
|
-
function un(e, t, n, r, i) {
|
|
1411
|
-
if (!ln(e, t, n[0], r, i)) return !1;
|
|
1412
|
-
if (n.length === 1) return !0;
|
|
1413
|
-
for (let t = 1, a = n.length; t < a; ++t) if (rn(e, n[t - 1], n[t], r, i) && !cn(e, n[t - 1], n[t], r, i)) return !1;
|
|
1414
|
-
return !0;
|
|
1415
|
-
}
|
|
1416
|
-
//#endregion
|
|
1417
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/geom/flat/reverse.js
|
|
1418
|
-
function dn(e, t, n, r) {
|
|
1419
|
-
for (; t < n - r;) {
|
|
1420
|
-
for (let i = 0; i < r; ++i) {
|
|
1421
|
-
let a = e[t + i];
|
|
1422
|
-
e[t + i] = e[n - r + i], e[n - r + i] = a;
|
|
1423
|
-
}
|
|
1424
|
-
t += r, n -= r;
|
|
1425
|
-
}
|
|
1426
|
-
}
|
|
1427
|
-
//#endregion
|
|
1428
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/geom/flat/orient.js
|
|
1429
|
-
function fn(e, t, n, r) {
|
|
1430
|
-
let i = 0, a = e[n - r], o = e[n - r + 1];
|
|
1431
|
-
for (; t < n; t += r) {
|
|
1432
|
-
let n = e[t], r = e[t + 1];
|
|
1433
|
-
i += (n - a) * (r + o), a = n, o = r;
|
|
1434
|
-
}
|
|
1435
|
-
return i === 0 ? void 0 : i > 0;
|
|
1436
|
-
}
|
|
1437
|
-
function pn(e, t, n, r, i) {
|
|
1438
|
-
i = i === void 0 ? !1 : i;
|
|
1439
|
-
for (let a = 0, o = n.length; a < o; ++a) {
|
|
1440
|
-
let o = n[a], s = fn(e, t, o, r);
|
|
1441
|
-
if (a === 0) {
|
|
1442
|
-
if (i && s || !i && !s) return !1;
|
|
1443
|
-
} else if (i && !s || !i && s) return !1;
|
|
1444
|
-
t = o;
|
|
1445
|
-
}
|
|
1446
|
-
return !0;
|
|
1447
|
-
}
|
|
1448
|
-
function mn(e, t, n, r, i) {
|
|
1449
|
-
i = i === void 0 ? !1 : i;
|
|
1450
|
-
for (let a = 0, o = n.length; a < o; ++a) {
|
|
1451
|
-
let o = n[a], s = fn(e, t, o, r);
|
|
1452
|
-
(a === 0 ? i && s || !i && !s : i && !s || !i && s) && dn(e, t, o, r), t = o;
|
|
1453
|
-
}
|
|
1454
|
-
return t;
|
|
1455
|
-
}
|
|
1456
|
-
//#endregion
|
|
1457
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/geom/Polygon.js
|
|
1458
|
-
var hn = class e extends Lt {
|
|
1459
|
-
constructor(e, t, n) {
|
|
1460
|
-
super(), this.ends_ = [], this.flatInteriorPointRevision_ = -1, this.flatInteriorPoint_ = null, this.maxDelta_ = -1, this.maxDeltaRevision_ = -1, this.orientedRevision_ = -1, this.orientedFlatCoordinates_ = null, t !== void 0 && n ? (this.setFlatCoordinates(t, e), this.ends_ = n) : this.setCoordinates(e, t);
|
|
1461
|
-
}
|
|
1462
|
-
appendLinearRing(e) {
|
|
1463
|
-
this.flatCoordinates ? f(this.flatCoordinates, e.getFlatCoordinates()) : this.flatCoordinates = e.getFlatCoordinates().slice(), this.ends_.push(this.flatCoordinates.length), this.changed();
|
|
1464
|
-
}
|
|
1465
|
-
clone() {
|
|
1466
|
-
let t = new e(this.flatCoordinates.slice(), this.layout, this.ends_.slice());
|
|
1467
|
-
return t.applyProperties(this), t;
|
|
1468
|
-
}
|
|
1469
|
-
closestPointXY(e, t, n, r) {
|
|
1470
|
-
return r < Oe(this.getExtent(), e, t) ? r : (this.maxDeltaRevision_ != this.getRevision() && (this.maxDelta_ = Math.sqrt(Ht(this.flatCoordinates, 0, this.ends_, this.stride, 0)), this.maxDeltaRevision_ = this.getRevision()), Wt(this.flatCoordinates, 0, this.ends_, this.stride, this.maxDelta_, !0, e, t, n, r));
|
|
1471
|
-
}
|
|
1472
|
-
containsXY(e, t) {
|
|
1473
|
-
return an(this.getOrientedFlatCoordinates(), 0, this.ends_, this.stride, e, t);
|
|
1474
|
-
}
|
|
1475
|
-
getArea() {
|
|
1476
|
-
return en(this.getOrientedFlatCoordinates(), 0, this.ends_, this.stride);
|
|
1477
|
-
}
|
|
1478
|
-
getCoordinates(e) {
|
|
1479
|
-
let t;
|
|
1480
|
-
return e === void 0 ? t = this.flatCoordinates : (t = this.getOrientedFlatCoordinates().slice(), mn(t, 0, this.ends_, this.stride, e)), Qt(t, 0, this.ends_, this.stride);
|
|
1481
|
-
}
|
|
1482
|
-
getEnds() {
|
|
1483
|
-
return this.ends_;
|
|
1484
|
-
}
|
|
1485
|
-
getFlatInteriorPoint() {
|
|
1486
|
-
if (this.flatInteriorPointRevision_ != this.getRevision()) {
|
|
1487
|
-
let e = B(this.getExtent());
|
|
1488
|
-
this.flatInteriorPoint_ = on(this.getOrientedFlatCoordinates(), 0, this.ends_, this.stride, e, 0), this.flatInteriorPointRevision_ = this.getRevision();
|
|
1489
|
-
}
|
|
1490
|
-
return this.flatInteriorPoint_;
|
|
1491
|
-
}
|
|
1492
|
-
getInteriorPoint() {
|
|
1493
|
-
return new nn(this.getFlatInteriorPoint(), "XYM");
|
|
1494
|
-
}
|
|
1495
|
-
getLinearRingCount() {
|
|
1496
|
-
return this.ends_.length;
|
|
1497
|
-
}
|
|
1498
|
-
getLinearRing(e) {
|
|
1499
|
-
return e < 0 || this.ends_.length <= e ? null : new tn(this.flatCoordinates.slice(e === 0 ? 0 : this.ends_[e - 1], this.ends_[e]), this.layout);
|
|
1500
|
-
}
|
|
1501
|
-
getLinearRings() {
|
|
1502
|
-
let e = this.layout, t = this.flatCoordinates, n = this.ends_, r = [], i = 0;
|
|
1503
|
-
for (let a = 0, o = n.length; a < o; ++a) {
|
|
1504
|
-
let o = n[a], s = new tn(t.slice(i, o), e);
|
|
1505
|
-
r.push(s), i = o;
|
|
1506
|
-
}
|
|
1507
|
-
return r;
|
|
1508
|
-
}
|
|
1509
|
-
getOrientedFlatCoordinates() {
|
|
1510
|
-
if (this.orientedRevision_ != this.getRevision()) {
|
|
1511
|
-
let e = this.flatCoordinates;
|
|
1512
|
-
pn(e, 0, this.ends_, this.stride) ? this.orientedFlatCoordinates_ = e : (this.orientedFlatCoordinates_ = e.slice(), this.orientedFlatCoordinates_.length = mn(this.orientedFlatCoordinates_, 0, this.ends_, this.stride)), this.orientedRevision_ = this.getRevision();
|
|
1513
|
-
}
|
|
1514
|
-
return this.orientedFlatCoordinates_;
|
|
1515
|
-
}
|
|
1516
|
-
getSimplifiedGeometryInternal(t) {
|
|
1517
|
-
let n = [], r = [];
|
|
1518
|
-
return n.length = Xt(this.flatCoordinates, 0, this.ends_, this.stride, Math.sqrt(t), n, 0, r), new e(n, "XY", r);
|
|
1519
|
-
}
|
|
1520
|
-
getType() {
|
|
1521
|
-
return "Polygon";
|
|
1522
|
-
}
|
|
1523
|
-
intersectsExtent(e) {
|
|
1524
|
-
return un(this.getOrientedFlatCoordinates(), 0, this.ends_, this.stride, e);
|
|
1525
|
-
}
|
|
1526
|
-
setCoordinates(e, t) {
|
|
1527
|
-
this.setLayout(t, e, 2), this.flatCoordinates ||= [];
|
|
1528
|
-
let n = qt(this.flatCoordinates, 0, e, this.stride, this.ends_);
|
|
1529
|
-
this.flatCoordinates.length = n.length === 0 ? 0 : n[n.length - 1], this.changed();
|
|
1530
|
-
}
|
|
1531
|
-
};
|
|
1532
|
-
function gn(e) {
|
|
1533
|
-
if (U(e)) throw Error("Cannot create polygon from empty extent");
|
|
1534
|
-
let t = e[0], n = e[1], r = e[2], i = e[3], a = [
|
|
1535
|
-
t,
|
|
1536
|
-
n,
|
|
1537
|
-
t,
|
|
1538
|
-
i,
|
|
1539
|
-
r,
|
|
1540
|
-
i,
|
|
1541
|
-
r,
|
|
1542
|
-
n,
|
|
1543
|
-
t,
|
|
1544
|
-
n
|
|
1545
|
-
];
|
|
1546
|
-
return new hn(a, "XY", [a.length]);
|
|
1547
|
-
}
|
|
1548
|
-
//#endregion
|
|
1549
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/View.js
|
|
1550
|
-
var _n = 0, vn = class extends oe {
|
|
1551
|
-
constructor(e) {
|
|
1552
|
-
super(), this.on, this.once, this.un, e = Object.assign({}, e), this.hints_ = [0, 0], this.animations_ = [], this.updateAnimationKey_, this.projection_ = st(e.projection, "EPSG:3857"), this.viewportSize_ = [100, 100], this.targetCenter_ = null, this.targetResolution_, this.targetRotation_, this.nextCenter_ = null, this.nextResolution_, this.nextRotation_, this.cancelAnchor_ = void 0, e.projection && et(), e.center &&= J(e.center, this.projection_), e.extent &&= Y(e.extent, this.projection_), this.applyOptions_(e);
|
|
1553
|
-
}
|
|
1554
|
-
applyOptions_(e) {
|
|
1555
|
-
let t = Object.assign({}, e);
|
|
1556
|
-
for (let e in O) delete t[e];
|
|
1557
|
-
this.setProperties(t, !0);
|
|
1558
|
-
let n = bn(e);
|
|
1559
|
-
this.maxResolution_ = n.maxResolution, this.minResolution_ = n.minResolution, this.zoomFactor_ = n.zoomFactor, this.resolutions_ = e.resolutions, this.padding_ = e.padding, this.minZoom_ = n.minZoom;
|
|
1560
|
-
let r = yn(e), i = n.constraint, a = xn(e);
|
|
1561
|
-
this.constraints_ = {
|
|
1562
|
-
center: r,
|
|
1563
|
-
resolution: i,
|
|
1564
|
-
rotation: a
|
|
1565
|
-
}, this.setRotation(e.rotation === void 0 ? 0 : e.rotation), this.setCenterInternal(e.center === void 0 ? null : e.center), e.resolution === void 0 ? e.zoom !== void 0 && this.setZoom(e.zoom) : this.setResolution(e.resolution);
|
|
1566
|
-
}
|
|
1567
|
-
get padding() {
|
|
1568
|
-
return this.padding_;
|
|
1569
|
-
}
|
|
1570
|
-
set padding(e) {
|
|
1571
|
-
let t = this.padding_;
|
|
1572
|
-
this.padding_ = e;
|
|
1573
|
-
let n = this.getCenterInternal();
|
|
1574
|
-
if (n) {
|
|
1575
|
-
let r = e || [
|
|
1576
|
-
0,
|
|
1577
|
-
0,
|
|
1578
|
-
0,
|
|
1579
|
-
0
|
|
1580
|
-
];
|
|
1581
|
-
t ||= [
|
|
1582
|
-
0,
|
|
1583
|
-
0,
|
|
1584
|
-
0,
|
|
1585
|
-
0
|
|
1586
|
-
];
|
|
1587
|
-
let i = this.getResolution(), a = i / 2 * (r[3] - t[3] + t[1] - r[1]), o = i / 2 * (r[0] - t[0] + t[2] - r[2]);
|
|
1588
|
-
this.setCenterInternal([n[0] + a, n[1] - o]);
|
|
1589
|
-
}
|
|
1590
|
-
}
|
|
1591
|
-
getUpdatedOptions_(e) {
|
|
1592
|
-
let t = this.getProperties();
|
|
1593
|
-
return t.resolution === void 0 ? t.zoom = this.getZoom() : t.resolution = this.getResolution(), t.center = this.getCenterInternal(), t.rotation = this.getRotation(), Object.assign({}, t, e);
|
|
1594
|
-
}
|
|
1595
|
-
animate(e) {
|
|
1596
|
-
this.isDef() && !this.getAnimating() && this.resolveConstraints(0);
|
|
1597
|
-
let t = Array(arguments.length);
|
|
1598
|
-
for (let e = 0; e < t.length; ++e) {
|
|
1599
|
-
let n = arguments[e];
|
|
1600
|
-
n.center && (n = Object.assign({}, n), n.center = J(n.center, this.getProjection())), n.anchor && (n = Object.assign({}, n), n.anchor = J(n.anchor, this.getProjection())), t[e] = n;
|
|
1601
|
-
}
|
|
1602
|
-
this.animateInternal.apply(this, t);
|
|
1603
|
-
}
|
|
1604
|
-
animateInternal(e) {
|
|
1605
|
-
let t = arguments.length, n;
|
|
1606
|
-
t > 1 && typeof arguments[t - 1] == "function" && (n = arguments[t - 1], --t);
|
|
1607
|
-
let r = 0;
|
|
1608
|
-
for (; r < t && !this.isDef(); ++r) {
|
|
1609
|
-
let e = arguments[r];
|
|
1610
|
-
e.center && this.setCenterInternal(e.center), e.zoom === void 0 ? e.resolution && this.setResolution(e.resolution) : this.setZoom(e.zoom), e.rotation !== void 0 && this.setRotation(e.rotation);
|
|
1611
|
-
}
|
|
1612
|
-
if (r === t) {
|
|
1613
|
-
n && Q(n, !0);
|
|
1614
|
-
return;
|
|
1615
|
-
}
|
|
1616
|
-
let i = Date.now(), a = this.targetCenter_.slice(), o = this.targetResolution_, s = this.targetRotation_, c = [];
|
|
1617
|
-
for (; r < t; ++r) {
|
|
1618
|
-
let e = arguments[r], t = {
|
|
1619
|
-
start: i,
|
|
1620
|
-
complete: !1,
|
|
1621
|
-
anchor: e.anchor,
|
|
1622
|
-
duration: e.duration === void 0 ? 1e3 : e.duration,
|
|
1623
|
-
easing: e.easing || Ot,
|
|
1624
|
-
callback: n
|
|
1625
|
-
};
|
|
1626
|
-
if (e.center && (t.sourceCenter = a, t.targetCenter = e.center.slice(), a = t.targetCenter), e.zoom === void 0 ? e.resolution && (t.sourceResolution = o, t.targetResolution = e.resolution, o = t.targetResolution) : (t.sourceResolution = o, t.targetResolution = this.getResolutionForZoom(e.zoom), o = t.targetResolution), e.rotation !== void 0) {
|
|
1627
|
-
t.sourceRotation = s;
|
|
1628
|
-
let n = le(e.rotation - s + Math.PI, 2 * Math.PI) - Math.PI;
|
|
1629
|
-
t.targetRotation = s + n, s = t.targetRotation;
|
|
1630
|
-
}
|
|
1631
|
-
Sn(t) ? t.complete = !0 : i += t.duration, c.push(t);
|
|
1632
|
-
}
|
|
1633
|
-
this.animations_.push(c), this.setHint(D.ANIMATING, 1), this.updateAnimations_();
|
|
1634
|
-
}
|
|
1635
|
-
getAnimating() {
|
|
1636
|
-
return this.hints_[D.ANIMATING] > 0;
|
|
1637
|
-
}
|
|
1638
|
-
getInteracting() {
|
|
1639
|
-
return this.hints_[D.INTERACTING] > 0;
|
|
1640
|
-
}
|
|
1641
|
-
cancelAnimations() {
|
|
1642
|
-
this.setHint(D.ANIMATING, -this.hints_[D.ANIMATING]);
|
|
1643
|
-
let e;
|
|
1644
|
-
for (let t = 0, n = this.animations_.length; t < n; ++t) {
|
|
1645
|
-
let n = this.animations_[t];
|
|
1646
|
-
if (n[0].callback && Q(n[0].callback, !1), !e) for (let t = 0, r = n.length; t < r; ++t) {
|
|
1647
|
-
let r = n[t];
|
|
1648
|
-
if (!r.complete) {
|
|
1649
|
-
e = r.anchor;
|
|
1650
|
-
break;
|
|
1651
|
-
}
|
|
1652
|
-
}
|
|
1653
|
-
}
|
|
1654
|
-
this.animations_.length = 0, this.cancelAnchor_ = e, this.nextCenter_ = null, this.nextResolution_ = NaN, this.nextRotation_ = NaN;
|
|
1655
|
-
}
|
|
1656
|
-
updateAnimations_() {
|
|
1657
|
-
if (this.updateAnimationKey_ !== void 0 && (cancelAnimationFrame(this.updateAnimationKey_), this.updateAnimationKey_ = void 0), !this.getAnimating()) return;
|
|
1658
|
-
let e = Date.now(), t = !1;
|
|
1659
|
-
for (let n = this.animations_.length - 1; n >= 0; --n) {
|
|
1660
|
-
let r = this.animations_[n], i = !0;
|
|
1661
|
-
for (let n = 0, a = r.length; n < a; ++n) {
|
|
1662
|
-
let a = r[n];
|
|
1663
|
-
if (a.complete) continue;
|
|
1664
|
-
let o = e - a.start, s = a.duration > 0 ? o / a.duration : 1;
|
|
1665
|
-
s >= 1 ? (a.complete = !0, s = 1) : i = !1;
|
|
1666
|
-
let c = a.easing(s);
|
|
1667
|
-
if (a.sourceCenter) {
|
|
1668
|
-
let e = a.sourceCenter[0], t = a.sourceCenter[1], n = a.targetCenter[0], r = a.targetCenter[1];
|
|
1669
|
-
this.nextCenter_ = a.targetCenter;
|
|
1670
|
-
let i = e + c * (n - e), o = t + c * (r - t);
|
|
1671
|
-
this.targetCenter_ = [i, o];
|
|
1672
|
-
}
|
|
1673
|
-
if (a.sourceResolution && a.targetResolution) {
|
|
1674
|
-
let e = c === 1 ? a.targetResolution : a.sourceResolution + c * (a.targetResolution - a.sourceResolution);
|
|
1675
|
-
if (a.anchor) {
|
|
1676
|
-
let t = this.getViewportSize_(this.getRotation()), n = this.constraints_.resolution(e, 0, t, !0);
|
|
1677
|
-
this.targetCenter_ = this.calculateCenterZoom(n, a.anchor);
|
|
1678
|
-
}
|
|
1679
|
-
this.nextResolution_ = a.targetResolution, this.targetResolution_ = e, this.applyTargetState_(!0);
|
|
1680
|
-
}
|
|
1681
|
-
if (a.sourceRotation !== void 0 && a.targetRotation !== void 0) {
|
|
1682
|
-
let e = c === 1 ? le(a.targetRotation + Math.PI, 2 * Math.PI) - Math.PI : a.sourceRotation + c * (a.targetRotation - a.sourceRotation);
|
|
1683
|
-
if (a.anchor) {
|
|
1684
|
-
let t = this.constraints_.rotation(e, !0);
|
|
1685
|
-
this.targetCenter_ = this.calculateCenterRotate(t, a.anchor);
|
|
1686
|
-
}
|
|
1687
|
-
this.nextRotation_ = a.targetRotation, this.targetRotation_ = e;
|
|
1688
|
-
}
|
|
1689
|
-
if (this.applyTargetState_(!0), t = !0, !a.complete) break;
|
|
1690
|
-
}
|
|
1691
|
-
if (i) {
|
|
1692
|
-
this.animations_[n] = null, this.setHint(D.ANIMATING, -1), this.nextCenter_ = null, this.nextResolution_ = NaN, this.nextRotation_ = NaN;
|
|
1693
|
-
let e = r[0].callback;
|
|
1694
|
-
e && Q(e, !0);
|
|
1695
|
-
}
|
|
1696
|
-
}
|
|
1697
|
-
this.animations_ = this.animations_.filter(Boolean), t && this.updateAnimationKey_ === void 0 && (this.updateAnimationKey_ = requestAnimationFrame(this.updateAnimations_.bind(this)));
|
|
1698
|
-
}
|
|
1699
|
-
calculateCenterRotate(e, t) {
|
|
1700
|
-
let n, r = this.getCenterInternal();
|
|
1701
|
-
return r !== void 0 && (n = [r[0] - t[0], r[1] - t[1]], Ye(n, e - this.getRotation()), Je(n, t)), n;
|
|
1702
|
-
}
|
|
1703
|
-
calculateCenterZoom(e, t) {
|
|
1704
|
-
let n, r = this.getCenterInternal(), i = this.getResolution();
|
|
1705
|
-
return r !== void 0 && i !== void 0 && (n = [t[0] - e * (t[0] - r[0]) / i, t[1] - e * (t[1] - r[1]) / i]), n;
|
|
1706
|
-
}
|
|
1707
|
-
getViewportSize_(e) {
|
|
1708
|
-
let t = this.viewportSize_;
|
|
1709
|
-
if (e) {
|
|
1710
|
-
let n = t[0], r = t[1];
|
|
1711
|
-
return [Math.abs(n * Math.cos(e)) + Math.abs(r * Math.sin(e)), Math.abs(n * Math.sin(e)) + Math.abs(r * Math.cos(e))];
|
|
1712
|
-
}
|
|
1713
|
-
return t;
|
|
1714
|
-
}
|
|
1715
|
-
setViewportSize(e) {
|
|
1716
|
-
this.viewportSize_ = Array.isArray(e) ? e.slice() : [100, 100], this.getAnimating() || this.resolveConstraints(0);
|
|
1717
|
-
}
|
|
1718
|
-
getCenter() {
|
|
1719
|
-
let e = this.getCenterInternal();
|
|
1720
|
-
return e && ft(e, this.getProjection());
|
|
1721
|
-
}
|
|
1722
|
-
getCenterInternal() {
|
|
1723
|
-
return this.get(O.CENTER);
|
|
1724
|
-
}
|
|
1725
|
-
getConstraints() {
|
|
1726
|
-
return this.constraints_;
|
|
1727
|
-
}
|
|
1728
|
-
getConstrainResolution() {
|
|
1729
|
-
return this.get("constrainResolution");
|
|
1730
|
-
}
|
|
1731
|
-
getHints(e) {
|
|
1732
|
-
return e === void 0 ? this.hints_.slice() : (e[0] = this.hints_[0], e[1] = this.hints_[1], e);
|
|
1733
|
-
}
|
|
1734
|
-
calculateExtent(e) {
|
|
1735
|
-
return pt(this.calculateExtentInternal(e), this.getProjection());
|
|
1736
|
-
}
|
|
1737
|
-
calculateExtentInternal(e) {
|
|
1738
|
-
e ||= this.getViewportSizeMinusPadding_();
|
|
1739
|
-
let t = this.getCenterInternal();
|
|
1740
|
-
w(t, "The view center is not defined");
|
|
1741
|
-
let n = this.getResolution();
|
|
1742
|
-
w(n !== void 0, "The view resolution is not defined");
|
|
1743
|
-
let r = this.getRotation();
|
|
1744
|
-
return w(r !== void 0, "The view rotation is not defined"), Be(t, n, r, e);
|
|
1745
|
-
}
|
|
1746
|
-
getMaxResolution() {
|
|
1747
|
-
return this.maxResolution_;
|
|
1748
|
-
}
|
|
1749
|
-
getMinResolution() {
|
|
1750
|
-
return this.minResolution_;
|
|
1751
|
-
}
|
|
1752
|
-
getMaxZoom() {
|
|
1753
|
-
return this.getZoomForResolution(this.minResolution_);
|
|
1754
|
-
}
|
|
1755
|
-
setMaxZoom(e) {
|
|
1756
|
-
this.applyOptions_(this.getUpdatedOptions_({ maxZoom: e }));
|
|
1757
|
-
}
|
|
1758
|
-
getMinZoom() {
|
|
1759
|
-
return this.getZoomForResolution(this.maxResolution_);
|
|
1760
|
-
}
|
|
1761
|
-
setMinZoom(e) {
|
|
1762
|
-
this.applyOptions_(this.getUpdatedOptions_({ minZoom: e }));
|
|
1763
|
-
}
|
|
1764
|
-
setConstrainResolution(e) {
|
|
1765
|
-
this.applyOptions_(this.getUpdatedOptions_({ constrainResolution: e }));
|
|
1766
|
-
}
|
|
1767
|
-
getProjection() {
|
|
1768
|
-
return this.projection_;
|
|
1769
|
-
}
|
|
1770
|
-
getResolution() {
|
|
1771
|
-
return this.get(O.RESOLUTION);
|
|
1772
|
-
}
|
|
1773
|
-
getResolutions() {
|
|
1774
|
-
return this.resolutions_;
|
|
1775
|
-
}
|
|
1776
|
-
getResolutionForExtent(e, t) {
|
|
1777
|
-
return this.getResolutionForExtentInternal(Y(e, this.getProjection()), t);
|
|
1778
|
-
}
|
|
1779
|
-
getResolutionForExtentInternal(e, t) {
|
|
1780
|
-
t ||= this.getViewportSizeMinusPadding_();
|
|
1781
|
-
let n = H(e) / t[0], r = V(e) / t[1];
|
|
1782
|
-
return Math.max(n, r);
|
|
1783
|
-
}
|
|
1784
|
-
getResolutionForValueFunction(e) {
|
|
1785
|
-
e ||= 2;
|
|
1786
|
-
let t = this.getConstrainedResolution(this.maxResolution_), n = this.minResolution_, r = Math.log(t / n) / Math.log(e);
|
|
1787
|
-
return (function(n) {
|
|
1788
|
-
return t / e ** +(n * r);
|
|
1789
|
-
});
|
|
1790
|
-
}
|
|
1791
|
-
getRotation() {
|
|
1792
|
-
return this.get(O.ROTATION);
|
|
1793
|
-
}
|
|
1794
|
-
getValueForResolutionFunction(e) {
|
|
1795
|
-
let t = Math.log(e || 2), n = this.getConstrainedResolution(this.maxResolution_), r = this.minResolution_, i = Math.log(n / r) / t;
|
|
1796
|
-
return (function(e) {
|
|
1797
|
-
return Math.log(n / e) / t / i;
|
|
1798
|
-
});
|
|
1799
|
-
}
|
|
1800
|
-
getViewportSizeMinusPadding_(e) {
|
|
1801
|
-
let t = this.getViewportSize_(e), n = this.padding_;
|
|
1802
|
-
return n && (t = [t[0] - n[1] - n[3], t[1] - n[0] - n[2]]), t;
|
|
1803
|
-
}
|
|
1804
|
-
getState() {
|
|
1805
|
-
let e = this.getProjection(), t = this.getResolution(), n = this.getRotation(), r = this.getCenterInternal(), i = this.padding_;
|
|
1806
|
-
if (i) {
|
|
1807
|
-
let e = this.getViewportSizeMinusPadding_();
|
|
1808
|
-
r = $(r, this.getViewportSize_(), [e[0] / 2 + i[3], e[1] / 2 + i[0]], t, n);
|
|
1809
|
-
}
|
|
1810
|
-
return {
|
|
1811
|
-
center: r.slice(0),
|
|
1812
|
-
projection: e === void 0 ? null : e,
|
|
1813
|
-
resolution: t,
|
|
1814
|
-
nextCenter: this.nextCenter_,
|
|
1815
|
-
nextResolution: this.nextResolution_,
|
|
1816
|
-
nextRotation: this.nextRotation_,
|
|
1817
|
-
rotation: n,
|
|
1818
|
-
zoom: this.getZoom()
|
|
1819
|
-
};
|
|
1820
|
-
}
|
|
1821
|
-
getViewStateAndExtent() {
|
|
1822
|
-
return {
|
|
1823
|
-
viewState: this.getState(),
|
|
1824
|
-
extent: this.calculateExtent()
|
|
1825
|
-
};
|
|
1826
|
-
}
|
|
1827
|
-
getZoom() {
|
|
1828
|
-
let e, t = this.getResolution();
|
|
1829
|
-
return t !== void 0 && (e = this.getZoomForResolution(t)), e;
|
|
1830
|
-
}
|
|
1831
|
-
getZoomForResolution(e) {
|
|
1832
|
-
let t = this.minZoom_ || 0, n, r;
|
|
1833
|
-
if (this.resolutions_) {
|
|
1834
|
-
let i = d(this.resolutions_, e, 1);
|
|
1835
|
-
t = i, n = this.resolutions_[i], r = i == this.resolutions_.length - 1 ? 2 : n / this.resolutions_[i + 1];
|
|
1836
|
-
} else n = this.maxResolution_, r = this.zoomFactor_;
|
|
1837
|
-
return t + Math.log(n / e) / Math.log(r);
|
|
1838
|
-
}
|
|
1839
|
-
getResolutionForZoom(e) {
|
|
1840
|
-
if (this.resolutions_) {
|
|
1841
|
-
if (this.resolutions_.length <= 1) return 0;
|
|
1842
|
-
let t = T(Math.floor(e), 0, this.resolutions_.length - 2), n = this.resolutions_[t] / this.resolutions_[t + 1];
|
|
1843
|
-
return this.resolutions_[t] / n ** +T(e - t, 0, 1);
|
|
1844
|
-
}
|
|
1845
|
-
return this.maxResolution_ / this.zoomFactor_ ** +(e - this.minZoom_);
|
|
1846
|
-
}
|
|
1847
|
-
fit(e, t) {
|
|
1848
|
-
let n;
|
|
1849
|
-
if (w(Array.isArray(e) || typeof e.getSimplifiedGeometry == "function", "Invalid extent or geometry provided as `geometry`"), Array.isArray(e)) w(!U(e), "Cannot fit empty extent provided as `geometry`"), n = gn(Y(e, this.getProjection()));
|
|
1850
|
-
else if (e.getType() === "Circle") {
|
|
1851
|
-
let t = Y(e.getExtent(), this.getProjection());
|
|
1852
|
-
n = gn(t), n.rotate(this.getRotation(), B(t));
|
|
1853
|
-
} else {
|
|
1854
|
-
let t = dt();
|
|
1855
|
-
n = t ? e.clone().transform(t, this.getProjection()) : e;
|
|
1856
|
-
}
|
|
1857
|
-
this.fitInternal(n, t);
|
|
1858
|
-
}
|
|
1859
|
-
rotatedExtentForGeometry(e) {
|
|
1860
|
-
let t = this.getRotation(), n = Math.cos(t), r = Math.sin(-t), i = e.getFlatCoordinates(), a = e.getStride(), o = Infinity, s = Infinity, c = -Infinity, l = -Infinity;
|
|
1861
|
-
for (let e = 0, t = i.length; e < t; e += a) {
|
|
1862
|
-
let t = i[e] * n - i[e + 1] * r, a = i[e] * r + i[e + 1] * n;
|
|
1863
|
-
o = Math.min(o, t), s = Math.min(s, a), c = Math.max(c, t), l = Math.max(l, a);
|
|
1864
|
-
}
|
|
1865
|
-
return [
|
|
1866
|
-
o,
|
|
1867
|
-
s,
|
|
1868
|
-
c,
|
|
1869
|
-
l
|
|
1870
|
-
];
|
|
1871
|
-
}
|
|
1872
|
-
fitInternal(e, t) {
|
|
1873
|
-
t ||= {};
|
|
1874
|
-
let n = t.size;
|
|
1875
|
-
n ||= this.getViewportSizeMinusPadding_();
|
|
1876
|
-
let r = t.padding === void 0 ? [
|
|
1877
|
-
0,
|
|
1878
|
-
0,
|
|
1879
|
-
0,
|
|
1880
|
-
0
|
|
1881
|
-
] : t.padding, i = t.nearest === void 0 ? !1 : t.nearest, a;
|
|
1882
|
-
a = t.minResolution === void 0 ? t.maxZoom === void 0 ? 0 : this.getResolutionForZoom(t.maxZoom) : t.minResolution;
|
|
1883
|
-
let o = this.rotatedExtentForGeometry(e), s = this.getResolutionForExtentInternal(o, [n[0] - r[1] - r[3], n[1] - r[0] - r[2]]);
|
|
1884
|
-
s = isNaN(s) ? a : Math.max(s, a), s = this.getConstrainedResolution(s, +!i);
|
|
1885
|
-
let c = this.getRotation(), l = Math.sin(c), u = Math.cos(c), d = B(o);
|
|
1886
|
-
d[0] += (r[1] - r[3]) / 2 * s, d[1] += (r[0] - r[2]) / 2 * s;
|
|
1887
|
-
let f = d[0] * u - d[1] * l, p = d[1] * u + d[0] * l, h = this.getConstrainedCenter([f, p], s), g = t.callback ? t.callback : m;
|
|
1888
|
-
t.duration === void 0 ? (this.targetResolution_ = s, this.targetCenter_ = h, this.applyTargetState_(!1, !0), Q(g, !0)) : this.animateInternal({
|
|
1889
|
-
resolution: s,
|
|
1890
|
-
center: h,
|
|
1891
|
-
duration: t.duration,
|
|
1892
|
-
easing: t.easing
|
|
1893
|
-
}, g);
|
|
1894
|
-
}
|
|
1895
|
-
centerOn(e, t, n) {
|
|
1896
|
-
this.centerOnInternal(J(e, this.getProjection()), t, n);
|
|
1897
|
-
}
|
|
1898
|
-
centerOnInternal(e, t, n) {
|
|
1899
|
-
this.setCenterInternal($(e, t, n, this.getResolution(), this.getRotation()));
|
|
1900
|
-
}
|
|
1901
|
-
calculateCenterShift(e, t, n, r) {
|
|
1902
|
-
let i, a = this.padding_;
|
|
1903
|
-
if (a && e) {
|
|
1904
|
-
let o = this.getViewportSizeMinusPadding_(-n), s = $(e, r, [o[0] / 2 + a[3], o[1] / 2 + a[0]], t, n);
|
|
1905
|
-
i = [e[0] - s[0], e[1] - s[1]];
|
|
1906
|
-
}
|
|
1907
|
-
return i;
|
|
1908
|
-
}
|
|
1909
|
-
isDef() {
|
|
1910
|
-
return !!this.getCenterInternal() && this.getResolution() !== void 0;
|
|
1911
|
-
}
|
|
1912
|
-
adjustCenter(e) {
|
|
1913
|
-
let t = ft(this.targetCenter_, this.getProjection());
|
|
1914
|
-
this.setCenter([t[0] + e[0], t[1] + e[1]]);
|
|
1915
|
-
}
|
|
1916
|
-
adjustCenterInternal(e) {
|
|
1917
|
-
let t = this.targetCenter_;
|
|
1918
|
-
this.setCenterInternal([t[0] + e[0], t[1] + e[1]]);
|
|
1919
|
-
}
|
|
1920
|
-
adjustResolution(e, t) {
|
|
1921
|
-
t &&= J(t, this.getProjection()), this.adjustResolutionInternal(e, t);
|
|
1922
|
-
}
|
|
1923
|
-
adjustResolutionInternal(e, t) {
|
|
1924
|
-
let n = this.getAnimating() || this.getInteracting(), r = this.getViewportSize_(this.getRotation()), i = this.constraints_.resolution(this.targetResolution_ * e, 0, r, n);
|
|
1925
|
-
t && (this.targetCenter_ = this.calculateCenterZoom(i, t)), this.targetResolution_ *= e, this.applyTargetState_();
|
|
1926
|
-
}
|
|
1927
|
-
adjustZoom(e, t) {
|
|
1928
|
-
this.adjustResolution(this.zoomFactor_ ** +-e, t);
|
|
1929
|
-
}
|
|
1930
|
-
adjustRotation(e, t) {
|
|
1931
|
-
t &&= J(t, this.getProjection()), this.adjustRotationInternal(e, t);
|
|
1932
|
-
}
|
|
1933
|
-
adjustRotationInternal(e, t) {
|
|
1934
|
-
let n = this.getAnimating() || this.getInteracting(), r = this.constraints_.rotation(this.targetRotation_ + e, n);
|
|
1935
|
-
t && (this.targetCenter_ = this.calculateCenterRotate(r, t)), this.targetRotation_ += e, this.applyTargetState_();
|
|
1936
|
-
}
|
|
1937
|
-
setCenter(e) {
|
|
1938
|
-
this.setCenterInternal(e && J(e, this.getProjection()));
|
|
1939
|
-
}
|
|
1940
|
-
setCenterInternal(e) {
|
|
1941
|
-
this.targetCenter_ = e, this.applyTargetState_();
|
|
1942
|
-
}
|
|
1943
|
-
setHint(e, t) {
|
|
1944
|
-
return this.hints_[e] += t, this.changed(), this.hints_[e];
|
|
1945
|
-
}
|
|
1946
|
-
setResolution(e) {
|
|
1947
|
-
this.targetResolution_ = e, this.applyTargetState_();
|
|
1948
|
-
}
|
|
1949
|
-
setRotation(e) {
|
|
1950
|
-
this.targetRotation_ = e, this.applyTargetState_();
|
|
1951
|
-
}
|
|
1952
|
-
setZoom(e) {
|
|
1953
|
-
this.setResolution(this.getResolutionForZoom(e));
|
|
1954
|
-
}
|
|
1955
|
-
applyTargetState_(e, t) {
|
|
1956
|
-
let n = this.getAnimating() || this.getInteracting() || t, r = this.constraints_.rotation(this.targetRotation_, n), i = this.getViewportSize_(r), a = this.constraints_.resolution(this.targetResolution_, 0, i, n), o = this.constraints_.center(this.targetCenter_, a, i, n, this.calculateCenterShift(this.targetCenter_, a, r, i));
|
|
1957
|
-
this.get(O.ROTATION) !== r && this.set(O.ROTATION, r), this.get(O.RESOLUTION) !== a && (this.set(O.RESOLUTION, a), this.set("zoom", this.getZoom(), !0)), (!o || !this.get(O.CENTER) || !W(this.get(O.CENTER), o)) && this.set(O.CENTER, o), this.getAnimating() && !e && this.cancelAnimations(), this.cancelAnchor_ = void 0;
|
|
1958
|
-
}
|
|
1959
|
-
resolveConstraints(e, t, n) {
|
|
1960
|
-
e = e === void 0 ? 200 : e;
|
|
1961
|
-
let r = t || 0, i = this.constraints_.rotation(this.targetRotation_), a = this.getViewportSize_(i), o = this.constraints_.resolution(this.targetResolution_, r, a), s = this.constraints_.center(this.targetCenter_, o, a, !1, this.calculateCenterShift(this.targetCenter_, o, i, a));
|
|
1962
|
-
if (e === 0 && !this.cancelAnchor_) {
|
|
1963
|
-
this.targetResolution_ = o, this.targetRotation_ = i, this.targetCenter_ = s, this.applyTargetState_();
|
|
1964
|
-
return;
|
|
1965
|
-
}
|
|
1966
|
-
n ||= e === 0 ? this.cancelAnchor_ : void 0, this.cancelAnchor_ = void 0, (this.getResolution() !== o || this.getRotation() !== i || !this.getCenterInternal() || !W(this.getCenterInternal(), s)) && (this.getAnimating() && this.cancelAnimations(), this.animateInternal({
|
|
1967
|
-
rotation: i,
|
|
1968
|
-
center: s,
|
|
1969
|
-
resolution: o,
|
|
1970
|
-
duration: e,
|
|
1971
|
-
easing: Dt,
|
|
1972
|
-
anchor: n
|
|
1973
|
-
}));
|
|
1974
|
-
}
|
|
1975
|
-
beginInteraction() {
|
|
1976
|
-
this.resolveConstraints(0), this.setHint(D.INTERACTING, 1);
|
|
1977
|
-
}
|
|
1978
|
-
endInteraction(e, t, n) {
|
|
1979
|
-
n &&= J(n, this.getProjection()), this.endInteractionInternal(e, t, n);
|
|
1980
|
-
}
|
|
1981
|
-
endInteractionInternal(e, t, n) {
|
|
1982
|
-
this.getInteracting() && (this.setHint(D.INTERACTING, -1), this.resolveConstraints(e, t, n));
|
|
1983
|
-
}
|
|
1984
|
-
getConstrainedCenter(e, t) {
|
|
1985
|
-
let n = this.getViewportSize_(this.getRotation());
|
|
1986
|
-
return this.constraints_.center(e, t || this.getResolution(), n);
|
|
1987
|
-
}
|
|
1988
|
-
getConstrainedZoom(e, t) {
|
|
1989
|
-
let n = this.getResolutionForZoom(e);
|
|
1990
|
-
return this.getZoomForResolution(this.getConstrainedResolution(n, t));
|
|
1991
|
-
}
|
|
1992
|
-
getConstrainedResolution(e, t) {
|
|
1993
|
-
t ||= 0;
|
|
1994
|
-
let n = this.getViewportSize_(this.getRotation());
|
|
1995
|
-
return this.constraints_.resolution(e, t, n);
|
|
1996
|
-
}
|
|
1997
|
-
};
|
|
1998
|
-
function Q(e, t) {
|
|
1999
|
-
setTimeout(function() {
|
|
2000
|
-
e(t);
|
|
2001
|
-
}, 0);
|
|
2002
|
-
}
|
|
2003
|
-
function yn(e) {
|
|
2004
|
-
if (e.extent !== void 0) {
|
|
2005
|
-
let t = e.smoothExtentConstraint === void 0 ? !0 : e.smoothExtentConstraint;
|
|
2006
|
-
return ht(e.extent, e.constrainOnlyCenter, t);
|
|
2007
|
-
}
|
|
2008
|
-
let t = st(e.projection, "EPSG:3857");
|
|
2009
|
-
if (e.multiWorld !== !0 && t.isGlobal()) {
|
|
2010
|
-
let e = t.getExtent().slice();
|
|
2011
|
-
return e[0] = -Infinity, e[2] = Infinity, ht(e, !1, !1);
|
|
2012
|
-
}
|
|
2013
|
-
return gt;
|
|
2014
|
-
}
|
|
2015
|
-
function bn(e) {
|
|
2016
|
-
let t, n, r, i = e.minZoom === void 0 ? _n : e.minZoom, a = e.maxZoom === void 0 ? 28 : e.maxZoom, o = e.zoomFactor === void 0 ? 2 : e.zoomFactor, s = e.multiWorld === void 0 ? !1 : e.multiWorld, c = e.smoothResolutionConstraint === void 0 ? !0 : e.smoothResolutionConstraint, l = e.showFullExtent === void 0 ? !1 : e.showFullExtent, u = st(e.projection, "EPSG:3857"), d = u.getExtent(), f = e.constrainOnlyCenter, p = e.extent;
|
|
2017
|
-
if (!s && !p && u.isGlobal() && (f = !1, p = d), e.resolutions !== void 0) {
|
|
2018
|
-
let o = e.resolutions;
|
|
2019
|
-
n = o[i], r = o[a] === void 0 ? o[o.length - 1] : o[a], t = e.constrainResolution ? yt(o, c, !f && p, l) : xt(n, r, c, !f && p, l);
|
|
2020
|
-
} else {
|
|
2021
|
-
let s = (d ? Math.max(H(d), V(d)) : 360 * pe.degrees / u.getMetersPerUnit()) / 256 / 2 ** _n, m = s / 2 ** (28 - _n);
|
|
2022
|
-
n = e.maxResolution, n === void 0 ? n = s / o ** +i : i = 0, r = e.minResolution, r === void 0 && (r = e.maxZoom === void 0 ? m : e.maxResolution === void 0 ? s / o ** +a : n / o ** +a), a = i + Math.floor(Math.log(n / r) / Math.log(o)), r = n / o ** +(a - i), t = e.constrainResolution ? bt(o, n, r, c, !f && p, l) : xt(n, r, c, !f && p, l);
|
|
2023
|
-
}
|
|
2024
|
-
return {
|
|
2025
|
-
constraint: t,
|
|
2026
|
-
maxResolution: n,
|
|
2027
|
-
minResolution: r,
|
|
2028
|
-
minZoom: i,
|
|
2029
|
-
zoomFactor: o
|
|
2030
|
-
};
|
|
2031
|
-
}
|
|
2032
|
-
function xn(e) {
|
|
2033
|
-
if (e.enableRotation === void 0 || e.enableRotation) {
|
|
2034
|
-
let t = e.constrainRotation;
|
|
2035
|
-
return t === void 0 || t === !0 ? Tt() : t === !1 ? Ct : typeof t == "number" ? wt(t) : Ct;
|
|
2036
|
-
}
|
|
2037
|
-
return St;
|
|
2038
|
-
}
|
|
2039
|
-
function Sn(e) {
|
|
2040
|
-
return !(e.sourceCenter && e.targetCenter && !W(e.sourceCenter, e.targetCenter) || e.sourceResolution !== e.targetResolution || e.sourceRotation !== e.targetRotation);
|
|
2041
|
-
}
|
|
2042
|
-
function $(e, t, n, r, i) {
|
|
2043
|
-
let a = Math.cos(-i), o = Math.sin(-i), s = e[0] * a - e[1] * o, c = e[1] * a + e[0] * o;
|
|
2044
|
-
return s += (t[0] / 2 - n[0]) * r, c += (n[1] - t[1] / 2) * r, o = -o, [s * a - c * o, c * a + s * o];
|
|
2045
|
-
}
|
|
2046
|
-
//#endregion
|
|
2047
|
-
//#region node_modules/@allmaps/openlayers/node_modules/ol/layer/Layer.js
|
|
2048
|
-
var Cn = class extends de {
|
|
2049
|
-
constructor(e) {
|
|
2050
|
-
let t = Object.assign({}, e);
|
|
2051
|
-
delete t.source, super(t), this.on, this.once, this.un, this.mapPrecomposeKey_ = null, this.mapRenderKey_ = null, this.sourceChangeKey_ = null, this.renderer_ = null, this.sourceReady_ = !1, this.rendered = !1, e.render && (this.render = e.render), e.map && this.setMap(e.map), this.addChangeListener(C.SOURCE, this.handleSourcePropertyChange_);
|
|
2052
|
-
let n = e.source ? e.source : null;
|
|
2053
|
-
this.setSource(n);
|
|
2054
|
-
}
|
|
2055
|
-
getLayersArray(e) {
|
|
2056
|
-
return e ||= [], e.push(this), e;
|
|
2057
|
-
}
|
|
2058
|
-
getLayerStatesArray(e) {
|
|
2059
|
-
return e ||= [], e.push(this.getLayerState()), e;
|
|
2060
|
-
}
|
|
2061
|
-
getSource() {
|
|
2062
|
-
return this.get(C.SOURCE) || null;
|
|
2063
|
-
}
|
|
2064
|
-
getRenderSource() {
|
|
2065
|
-
return this.getSource();
|
|
2066
|
-
}
|
|
2067
|
-
getSourceState() {
|
|
2068
|
-
let e = this.getSource();
|
|
2069
|
-
return e ? e.getState() : "undefined";
|
|
2070
|
-
}
|
|
2071
|
-
handleSourceChange_() {
|
|
2072
|
-
this.changed(), !(this.sourceReady_ || this.getSource().getState() !== "ready") && (this.sourceReady_ = !0, this.dispatchEvent("sourceready"));
|
|
2073
|
-
}
|
|
2074
|
-
handleSourcePropertyChange_() {
|
|
2075
|
-
this.sourceChangeKey_ &&= (b(this.sourceChangeKey_), null), this.sourceReady_ = !1;
|
|
2076
|
-
let e = this.getSource();
|
|
2077
|
-
e && (this.sourceChangeKey_ = y(e, ee.CHANGE, this.handleSourceChange_, this), e.getState() === "ready" && (this.sourceReady_ = !0, setTimeout(() => {
|
|
2078
|
-
this.dispatchEvent("sourceready");
|
|
2079
|
-
}, 0))), this.changed();
|
|
2080
|
-
}
|
|
2081
|
-
getFeatures(e) {
|
|
2082
|
-
return this.renderer_ ? this.renderer_.getFeatures(e) : Promise.resolve([]);
|
|
2083
|
-
}
|
|
2084
|
-
getData(e) {
|
|
2085
|
-
return !this.renderer_ || !this.rendered ? null : this.renderer_.getData(e);
|
|
2086
|
-
}
|
|
2087
|
-
isVisible(e) {
|
|
2088
|
-
let t, n = this.getMapInternal();
|
|
2089
|
-
!e && n && (e = n.getView()), t = e instanceof vn ? {
|
|
2090
|
-
viewState: e.getState(),
|
|
2091
|
-
extent: e.calculateExtent()
|
|
2092
|
-
} : e, !t.layerStatesArray && n && (t.layerStatesArray = n.getLayerGroup().getLayerStatesArray());
|
|
2093
|
-
let r;
|
|
2094
|
-
r = t.layerStatesArray ? t.layerStatesArray.find((e) => e.layer === this) : this.getLayerState();
|
|
2095
|
-
let i = this.getExtent();
|
|
2096
|
-
return wn(r, t.viewState) && (!i || We(i, t.extent));
|
|
2097
|
-
}
|
|
2098
|
-
getAttributions(e) {
|
|
2099
|
-
if (!this.isVisible(e)) return [];
|
|
2100
|
-
let t, n = this.getSource();
|
|
2101
|
-
if (n && (t = n.getAttributions()), !t) return [];
|
|
2102
|
-
let r = e instanceof vn ? e.getViewStateAndExtent() : e, i = t(r);
|
|
2103
|
-
return Array.isArray(i) || (i = [i]), i;
|
|
2104
|
-
}
|
|
2105
|
-
render(e, t) {
|
|
2106
|
-
let n = this.getRenderer();
|
|
2107
|
-
return n.prepareFrame(e) ? (this.rendered = !0, n.renderFrame(e, t)) : null;
|
|
2108
|
-
}
|
|
2109
|
-
unrender() {
|
|
2110
|
-
this.rendered = !1;
|
|
2111
|
-
}
|
|
2112
|
-
setMapInternal(e) {
|
|
2113
|
-
e || this.unrender(), this.set(C.MAP, e);
|
|
2114
|
-
}
|
|
2115
|
-
getMapInternal() {
|
|
2116
|
-
return this.get(C.MAP);
|
|
2117
|
-
}
|
|
2118
|
-
setMap(e) {
|
|
2119
|
-
this.mapPrecomposeKey_ &&= (b(this.mapPrecomposeKey_), null), e || this.changed(), this.mapRenderKey_ &&= (b(this.mapRenderKey_), null), e && (this.mapPrecomposeKey_ = y(e, fe.PRECOMPOSE, function(e) {
|
|
2120
|
-
let t = e.frameState.layerStatesArray, n = this.getLayerState(!1);
|
|
2121
|
-
w(!t.some(function(e) {
|
|
2122
|
-
return e.layer === n.layer;
|
|
2123
|
-
}), "A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."), t.push(n);
|
|
2124
|
-
}, this), this.mapRenderKey_ = y(this, ee.CHANGE, e.render, e), this.changed());
|
|
2125
|
-
}
|
|
2126
|
-
setSource(e) {
|
|
2127
|
-
this.set(C.SOURCE, e);
|
|
2128
|
-
}
|
|
2129
|
-
getRenderer() {
|
|
2130
|
-
return this.renderer_ ||= this.createRenderer(), this.renderer_;
|
|
2131
|
-
}
|
|
2132
|
-
hasRenderer() {
|
|
2133
|
-
return !!this.renderer_;
|
|
2134
|
-
}
|
|
2135
|
-
createRenderer() {
|
|
2136
|
-
return null;
|
|
2137
|
-
}
|
|
2138
|
-
disposeInternal() {
|
|
2139
|
-
this.renderer_ && (this.renderer_.dispose(), delete this.renderer_), this.setSource(null), super.disposeInternal();
|
|
2140
|
-
}
|
|
2141
|
-
};
|
|
2142
|
-
function wn(e, t) {
|
|
2143
|
-
if (!e.visible) return !1;
|
|
2144
|
-
let n = t.resolution;
|
|
2145
|
-
if (n < e.minResolution || n >= e.maxResolution) return !1;
|
|
2146
|
-
let r = t.zoom;
|
|
2147
|
-
return r > e.minZoom && r <= e.maxZoom;
|
|
2148
|
-
}
|
|
2149
|
-
//#endregion
|
|
2150
|
-
//#region node_modules/@allmaps/openlayers/dist/OLWarpedMapEvent.js
|
|
2151
|
-
var Tn = class extends s {
|
|
2152
|
-
data;
|
|
2153
|
-
constructor(e, t) {
|
|
2154
|
-
super(e), this.data = t;
|
|
2155
|
-
}
|
|
2156
|
-
}, En = {}, Dn = class extends Cn {
|
|
2157
|
-
defaultSpecificWarpedMapLayerOptions;
|
|
2158
|
-
options;
|
|
2159
|
-
container;
|
|
2160
|
-
canvas;
|
|
2161
|
-
gl;
|
|
2162
|
-
renderer;
|
|
2163
|
-
canvasSize = [0, 0];
|
|
2164
|
-
resizeObserver;
|
|
2165
|
-
constructor(e) {
|
|
2166
|
-
super({}), this.defaultSpecificWarpedMapLayerOptions = En, this.options = a(this.defaultSpecificWarpedMapLayerOptions, e);
|
|
2167
|
-
let t = document.createElement("div");
|
|
2168
|
-
this.container = t, t.style.position = "absolute", t.style.width = "100%", t.style.height = "100%", t.classList.add("ol-layer"), t.classList.add("allmaps-warped-map-layer");
|
|
2169
|
-
let n = document.createElement("canvas");
|
|
2170
|
-
n.style.position = "absolute", n.style.left = "0", n.style.width = "100%", n.style.height = "100%", t.appendChild(n);
|
|
2171
|
-
let i = n.getContext("webgl2", { premultipliedAlpha: !0 });
|
|
2172
|
-
if (!i) throw Error("WebGL 2 not available");
|
|
2173
|
-
this.resizeObserver = new ResizeObserver(this.resized.bind(this)), this.resizeObserver.observe(n, { box: "content-box" }), this.canvas = n, this.gl = i, this.renderer = new r(this.gl, e), this.addEventListeners(), this.canvas.addEventListener("webglcontextlost", this.contextLost.bind(this)), this.canvas.addEventListener("webglcontextrestored", this.contextRestored.bind(this));
|
|
2174
|
-
}
|
|
2175
|
-
getLonLatExtent() {
|
|
2176
|
-
return this.renderer.warpedMapList.getMapsBbox({ projection: { definition: "EPSG:4326" } });
|
|
2177
|
-
}
|
|
2178
|
-
dispose() {
|
|
2179
|
-
this.renderer.destroy();
|
|
2180
|
-
let e = this.gl?.getExtension("WEBGL_lose_context");
|
|
2181
|
-
e && e.loseContext();
|
|
2182
|
-
let t = this.gl?.canvas;
|
|
2183
|
-
t && (t.width = 1, t.height = 1), this.resizeObserver.disconnect(), this.removeEventListeners(), this.canvas?.removeEventListener("webglcontextlost", this.contextLost.bind(this)), this.canvas?.removeEventListener("webglcontextrestored", this.contextRestored.bind(this));
|
|
2184
|
-
}
|
|
2185
|
-
render(e) {
|
|
2186
|
-
this.canvas && this.resizeCanvas(this.canvas, this.canvasSize);
|
|
2187
|
-
let t = new i(e.size, e.viewState.center, e.viewState.resolution, {
|
|
2188
|
-
rotation: e.viewState.rotation,
|
|
2189
|
-
devicePixelRatio: window.devicePixelRatio,
|
|
2190
|
-
projection: { definition: e.viewState.projection.getCode() }
|
|
2191
|
-
});
|
|
2192
|
-
return this.renderer.render(t), this.container;
|
|
2193
|
-
}
|
|
2194
|
-
resized(e) {
|
|
2195
|
-
for (let t of e) {
|
|
2196
|
-
let e = t.contentRect.width, n = t.contentRect.height, r = window.devicePixelRatio, i = Math.round(e * r), a = Math.round(n * r);
|
|
2197
|
-
this.canvasSize = [i, a];
|
|
2198
|
-
}
|
|
2199
|
-
this.nativeUpdate();
|
|
2200
|
-
}
|
|
2201
|
-
resizeCanvas(e, [t, n]) {
|
|
2202
|
-
let r = e.width !== t || e.height !== n;
|
|
2203
|
-
return r && (e.width = t, e.height = n), r;
|
|
2204
|
-
}
|
|
2205
|
-
nativeUpdate() {
|
|
2206
|
-
this.changed();
|
|
2207
|
-
}
|
|
2208
|
-
nativePassWarpedMapEvent(e) {
|
|
2209
|
-
if (e instanceof n) {
|
|
2210
|
-
let t = new Tn(e.type, e.data);
|
|
2211
|
-
this.dispatchEvent(t);
|
|
2212
|
-
}
|
|
2213
|
-
}
|
|
2214
|
-
async addGeoreferenceAnnotation(e, t) {
|
|
2215
|
-
o.assertRenderer(this.renderer);
|
|
2216
|
-
let n = await this.renderer.addGeoreferenceAnnotation(e, t);
|
|
2217
|
-
return this.nativeUpdate(), n;
|
|
2218
|
-
}
|
|
2219
|
-
async removeGeoreferenceAnnotation(e) {
|
|
2220
|
-
o.assertRenderer(this.renderer);
|
|
2221
|
-
let t = await this.renderer.warpedMapList.removeGeoreferenceAnnotation(e);
|
|
2222
|
-
return this.nativeUpdate(), t;
|
|
2223
|
-
}
|
|
2224
|
-
async addGeoreferenceAnnotationByUrl(e, t) {
|
|
2225
|
-
let n = await fetch(e).then((e) => e.json());
|
|
2226
|
-
return this.addGeoreferenceAnnotation(n, t);
|
|
2227
|
-
}
|
|
2228
|
-
async removeGeoreferenceAnnotationByUrl(e) {
|
|
2229
|
-
let t = await fetch(e).then((e) => e.json());
|
|
2230
|
-
return this.removeGeoreferenceAnnotation(t);
|
|
2231
|
-
}
|
|
2232
|
-
async addGeoreferencedMap(e, t) {
|
|
2233
|
-
o.assertRenderer(this.renderer);
|
|
2234
|
-
let n = this.renderer.addGeoreferencedMap(e, t);
|
|
2235
|
-
return this.nativeUpdate(), n;
|
|
2236
|
-
}
|
|
2237
|
-
async removeGeoreferencedMap(e) {
|
|
2238
|
-
o.assertRenderer(this.renderer);
|
|
2239
|
-
let t = this.renderer.warpedMapList.removeGeoreferencedMap(e);
|
|
2240
|
-
return this.nativeUpdate(), t;
|
|
2241
|
-
}
|
|
2242
|
-
async removeGeoreferencedMapById(e) {
|
|
2243
|
-
o.assertRenderer(this.renderer);
|
|
2244
|
-
let t = this.renderer.warpedMapList.removeGeoreferencedMapById(e);
|
|
2245
|
-
return this.nativeUpdate(), t;
|
|
2246
|
-
}
|
|
2247
|
-
addImageInfos(e) {
|
|
2248
|
-
o.assertRenderer(this.renderer);
|
|
2249
|
-
let t = this.renderer.warpedMapList.addImageInfos(e);
|
|
2250
|
-
return this.nativeUpdate(), t;
|
|
2251
|
-
}
|
|
2252
|
-
async addSprites(e, t, n) {
|
|
2253
|
-
o.assertRenderer(this.renderer), await this.renderer.addSprites(e, t, n), this.nativeUpdate();
|
|
2254
|
-
}
|
|
2255
|
-
getWarpedMapList() {
|
|
2256
|
-
return o.assertRenderer(this.renderer), this.renderer.warpedMapList;
|
|
2257
|
-
}
|
|
2258
|
-
getMapIds() {
|
|
2259
|
-
return o.assertRenderer(this.renderer), this.renderer.warpedMapList.getMapIds();
|
|
2260
|
-
}
|
|
2261
|
-
getWarpedMaps(e) {
|
|
2262
|
-
return o.assertRenderer(this.renderer), this.renderer.warpedMapList.getWarpedMaps({ mapIds: e });
|
|
2263
|
-
}
|
|
2264
|
-
getWarpedMap(e) {
|
|
2265
|
-
return o.assertRenderer(this.renderer), this.renderer.warpedMapList.getWarpedMap(e);
|
|
2266
|
-
}
|
|
2267
|
-
getMapsCenter(e, n) {
|
|
2268
|
-
return o.assertRenderer(this.renderer), this.renderer.warpedMapList.getMapsCenter(t({ mapIds: e }, n));
|
|
2269
|
-
}
|
|
2270
|
-
getMapsBbox(e, n) {
|
|
2271
|
-
return o.assertRenderer(this.renderer), this.renderer.warpedMapList.getMapsBbox(t({ mapIds: e }, n));
|
|
2272
|
-
}
|
|
2273
|
-
getMapsConvexHull(e, n) {
|
|
2274
|
-
return o.assertRenderer(this.renderer), this.renderer.warpedMapList.getMapsConvexHull(t({ mapIds: e }, n));
|
|
2275
|
-
}
|
|
2276
|
-
getMapZIndex(e) {
|
|
2277
|
-
return o.assertRenderer(this.renderer), this.renderer.warpedMapList.getMapZIndex(e);
|
|
2278
|
-
}
|
|
2279
|
-
getOpacity() {
|
|
2280
|
-
return this.getLayerOptions().opacity ?? this.getDefaultOptions().opacity;
|
|
2281
|
-
}
|
|
2282
|
-
getDefaultOptions() {
|
|
2283
|
-
return o.assertRenderer(this.renderer), a(this.defaultSpecificWarpedMapLayerOptions, this.renderer.getDefaultOptions());
|
|
2284
|
-
}
|
|
2285
|
-
getMapDefaultOptions(e) {
|
|
2286
|
-
return o.assertRenderer(this.renderer), this.renderer.getMapDefaultOptions(e);
|
|
2287
|
-
}
|
|
2288
|
-
getLayerOptions() {
|
|
2289
|
-
return o.assertRenderer(this.renderer), t(this.options, this.renderer.getOptions());
|
|
2290
|
-
}
|
|
2291
|
-
getMapMapOptions(e) {
|
|
2292
|
-
return o.assertRenderer(this.renderer), this.renderer.getMapMapOptions(e);
|
|
2293
|
-
}
|
|
2294
|
-
getMapOptions(e) {
|
|
2295
|
-
return o.assertRenderer(this.renderer), this.renderer.getMapOptions(e);
|
|
2296
|
-
}
|
|
2297
|
-
setOpacity(e) {
|
|
2298
|
-
this.setLayerOptions({ opacity: e });
|
|
2299
|
-
}
|
|
2300
|
-
setLayerOptions(e, t) {
|
|
2301
|
-
o.assertRenderer(this.renderer), this.options = a(this.options, e), this.renderer.setOptions(e, t);
|
|
2302
|
-
}
|
|
2303
|
-
setMapGcps(e, t, n) {
|
|
2304
|
-
return this.setMapOptions(e, { gcps: t }, void 0, n);
|
|
2305
|
-
}
|
|
2306
|
-
setMapResourceMask(e, t, n) {
|
|
2307
|
-
return this.setMapOptions(e, { resourceMask: t }, void 0, n);
|
|
2308
|
-
}
|
|
2309
|
-
setMapTransformationType(e, t, n) {
|
|
2310
|
-
return this.setMapOptions(e, { transformationType: t }, void 0, n);
|
|
2311
|
-
}
|
|
2312
|
-
setMapOptions(e, t, n, r) {
|
|
2313
|
-
return this.setMapsOptions([e], t, n, r);
|
|
2314
|
-
}
|
|
2315
|
-
setMapsOptions(e, t, n, r) {
|
|
2316
|
-
o.assertRenderer(this.renderer), n && (this.options = a(this.options, n)), this.renderer.setMapsOptions(e, t, n, r);
|
|
2317
|
-
}
|
|
2318
|
-
setMapsOptionsByMapId(e, t, n) {
|
|
2319
|
-
o.assertRenderer(this.renderer), t && (this.options = a(this.options, t)), this.renderer.setMapsOptionsByMapId(e, t, n);
|
|
2320
|
-
}
|
|
2321
|
-
resetLayerOptions(e, t) {
|
|
2322
|
-
o.assertRenderer(this.renderer), this.renderer.resetOptions(e, t);
|
|
2323
|
-
}
|
|
2324
|
-
resetMapsOptions(e, t, n, r) {
|
|
2325
|
-
o.assertRenderer(this.renderer), this.renderer.resetMapsOptions(e, t, n, r);
|
|
2326
|
-
}
|
|
2327
|
-
resetMapsOptionsByMapId(e, t, n) {
|
|
2328
|
-
o.assertRenderer(this.renderer), this.renderer.resetMapsOptionsByMapId(e, t, n);
|
|
2329
|
-
}
|
|
2330
|
-
bringMapsToFront(e) {
|
|
2331
|
-
o.assertRenderer(this.renderer), this.renderer.warpedMapList.bringMapsToFront(e), this.nativeUpdate();
|
|
2332
|
-
}
|
|
2333
|
-
sendMapsToBack(e) {
|
|
2334
|
-
o.assertRenderer(this.renderer), this.renderer.warpedMapList.sendMapsToBack(e), this.nativeUpdate();
|
|
2335
|
-
}
|
|
2336
|
-
bringMapsForward(e) {
|
|
2337
|
-
o.assertRenderer(this.renderer), this.renderer.warpedMapList.bringMapsForward(e), this.nativeUpdate();
|
|
2338
|
-
}
|
|
2339
|
-
sendMapsBackward(e) {
|
|
2340
|
-
o.assertRenderer(this.renderer), this.renderer.warpedMapList.sendMapsBackward(e), this.nativeUpdate();
|
|
2341
|
-
}
|
|
2342
|
-
clear() {
|
|
2343
|
-
o.assertRenderer(this.renderer), this.renderer.clear(), this.nativeUpdate();
|
|
2344
|
-
}
|
|
2345
|
-
contextLost(e) {
|
|
2346
|
-
e.preventDefault(), this.renderer?.contextLost();
|
|
2347
|
-
}
|
|
2348
|
-
contextRestored(e) {
|
|
2349
|
-
e.preventDefault(), this.renderer?.contextRestored();
|
|
2350
|
-
}
|
|
2351
|
-
addEventListeners() {
|
|
2352
|
-
this.renderer && (this.renderer.warpedMapList.addEventListener(e.IMAGEINFOSADDED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.warpedMapList.addEventListener(e.GEOREFERENCEANNOTATIONADDED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.warpedMapList.addEventListener(e.GEOREFERENCEANNOTATIONREMOVED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.warpedMapList.addEventListener(e.WARPEDMAPADDED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.warpedMapList.addEventListener(e.WARPEDMAPREMOVED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.addEventListener(e.WARPEDMAPENTERED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.addEventListener(e.WARPEDMAPLEFT, this.nativePassWarpedMapEvent.bind(this)), this.renderer.addEventListener(e.IMAGELOADED, this.nativeUpdate.bind(this)), this.renderer.tileCache.addEventListener(e.MAPTILELOADED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.spritesTileCache.addEventListener(e.MAPTILESLOADEDFROMSPRITES, this.nativePassWarpedMapEvent.bind(this)), this.renderer.tileCache.addEventListener(e.MAPTILEDELETED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.tileCache.addEventListener(e.FIRSTMAPTILELOADED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.tileCache.addEventListener(e.ALLREQUESTEDTILESLOADED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.warpedMapList.addEventListener(e.CLEARED, this.nativeUpdate.bind(this)), this.renderer.warpedMapList.addEventListener(e.PREPARECHANGE, this.nativePassWarpedMapEvent.bind(this)), this.renderer.warpedMapList.addEventListener(e.IMMEDIATECHANGE, this.nativePassWarpedMapEvent.bind(this)), this.renderer.warpedMapList.addEventListener(e.ANIMATEDCHANGE, this.nativePassWarpedMapEvent.bind(this)), this.renderer.addEventListener(e.CHANGED, this.nativeUpdate.bind(this)));
|
|
2353
|
-
}
|
|
2354
|
-
removeEventListeners() {
|
|
2355
|
-
this.renderer && (this.renderer.warpedMapList.removeEventListener(e.IMAGEINFOSADDED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.warpedMapList.removeEventListener(e.GEOREFERENCEANNOTATIONADDED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.warpedMapList.removeEventListener(e.GEOREFERENCEANNOTATIONREMOVED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.warpedMapList.removeEventListener(e.WARPEDMAPADDED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.warpedMapList.removeEventListener(e.WARPEDMAPREMOVED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.removeEventListener(e.WARPEDMAPENTERED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.removeEventListener(e.WARPEDMAPLEFT, this.nativePassWarpedMapEvent.bind(this)), this.renderer.removeEventListener(e.IMAGELOADED, this.nativeUpdate.bind(this)), this.renderer.tileCache.removeEventListener(e.MAPTILELOADED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.spritesTileCache.removeEventListener(e.MAPTILESLOADEDFROMSPRITES, this.nativePassWarpedMapEvent.bind(this)), this.renderer.tileCache.removeEventListener(e.MAPTILEDELETED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.tileCache.removeEventListener(e.FIRSTMAPTILELOADED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.tileCache.removeEventListener(e.ALLREQUESTEDTILESLOADED, this.nativePassWarpedMapEvent.bind(this)), this.renderer.warpedMapList.removeEventListener(e.CLEARED, this.nativeUpdate.bind(this)), this.renderer.warpedMapList.removeEventListener(e.PREPARECHANGE, this.nativePassWarpedMapEvent.bind(this)), this.renderer.warpedMapList.removeEventListener(e.IMMEDIATECHANGE, this.nativePassWarpedMapEvent.bind(this)), this.renderer.warpedMapList.removeEventListener(e.ANIMATEDCHANGE, this.nativePassWarpedMapEvent.bind(this)), this.renderer.removeEventListener(e.CHANGED, this.nativeUpdate.bind(this)));
|
|
2356
|
-
}
|
|
2357
|
-
};
|
|
2358
|
-
//#endregion
|
|
2359
|
-
export { Dn as WarpedMapLayer };
|