@edugis-org/webmapx 0.1.0
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/README.md +149 -0
- package/dist-lib/WMTS-DCN4zX0-.js +1169 -0
- package/dist-lib/alert-GeHlqlN8.js +310 -0
- package/dist-lib/assets/epsg-lookup.worker-J7TVnHDq.js +1 -0
- package/dist-lib/assets/shapefile.worker-kQfZj6G2.js +4 -0
- package/dist-lib/attribution-format-B4f05_u0.js +62 -0
- package/dist-lib/button-DFdGkRPQ.js +741 -0
- package/dist-lib/cesium-adapter-BHXNytkU.js +1488 -0
- package/dist-lib/checkbox-QoR4S8tV.js +284 -0
- package/dist-lib/chunk-HEgqtunE.js +20 -0
- package/dist-lib/chunk.36O46B5H-B6ZL7Sm1.js +77 -0
- package/dist-lib/chunk.3RPBFEDE-BFO1fHVm.js +138 -0
- package/dist-lib/chunk.5JY5FUCG-DTXsslmx.js +1090 -0
- package/dist-lib/chunk.6CTB5ZDJ-DjZrBd6Y.js +99 -0
- package/dist-lib/chunk.AJ3ENQ5C-Ci7Gm2b6.js +175 -0
- package/dist-lib/chunk.LD4M4QGE-CiCfhE8r.js +8 -0
- package/dist-lib/chunk.NYIIDP5N-BikXIStD.js +99 -0
- package/dist-lib/chunk.RWUUFNUL-DFztA4uV.js +43 -0
- package/dist-lib/chunk.SI4ACBFK-CLb9VfMG.js +61 -0
- package/dist-lib/chunk.YHLNUJ7P-D-kanrCf.js +503 -0
- package/dist-lib/core-CMAlSR68.js +22 -0
- package/dist-lib/decorate-CWgUV1hU.js +1139 -0
- package/dist-lib/decorators-B35AgiCU.js +351 -0
- package/dist-lib/deferred-query-service-BJDcngw6.js +386 -0
- package/dist-lib/dist-Dm6b7XCs.js +12318 -0
- package/dist-lib/dist-Ha9LQCut.js +244 -0
- package/dist-lib/dist-c1PlDAd1.js +2359 -0
- package/dist-lib/dist-kKlmcBXq.js +50 -0
- package/dist-lib/divider-CPm675yY.js +41 -0
- package/dist-lib/dropped-config-C_GyVa8o.js +17 -0
- package/dist-lib/dropped-layer-builder-DAaYgUPk.js +396 -0
- package/dist-lib/epsg-definitions-BZLZWa8Q.js +668 -0
- package/dist-lib/esm-CTuscnN5.js +46 -0
- package/dist-lib/file-sniff-Dhxj3KTF.js +251 -0
- package/dist-lib/geo-calculations-DbFJAUoI.js +30 -0
- package/dist-lib/icon-CEOgWlro.js +9 -0
- package/dist-lib/icon-button-Da_nBTy3.js +408 -0
- package/dist-lib/input-CeGntPlT.js +590 -0
- package/dist-lib/layer-discovery-afWzu5hY.js +2825 -0
- package/dist-lib/leaflet-adapter-D9djjrKv.js +1227 -0
- package/dist-lib/lib-CdHVicAE.js +4074 -0
- package/dist-lib/map-layer-registry-2cmkiRDK.js +62 -0
- package/dist-lib/maplibre-adapter-TFc3e0G9.js +1190 -0
- package/dist-lib/maplibre-expression-evaluator-DCWUcpwf.js +7233 -0
- package/dist-lib/marker-utils-DztWXeop.js +12 -0
- package/dist-lib/ol-tilegrid-9VtyxaLG.js +64 -0
- package/dist-lib/openlayers-adapter-DVW1KCRv.js +13307 -0
- package/dist-lib/option-CBxl1mZP.js +1106 -0
- package/dist-lib/papaparse.min-B7v3c0D7.js +501 -0
- package/dist-lib/rbush-C8k41T4z.js +254 -0
- package/dist-lib/shapefile-SawVY6xg.js +207 -0
- package/dist-lib/spinner-DysxdNG9.js +6 -0
- package/dist-lib/src-CL94RDe3.js +111 -0
- package/dist-lib/throttle-BeneRNYK.js +16 -0
- package/dist-lib/toast-Cm28o9U6.js +15 -0
- package/dist-lib/togeojson.es-DAgiTBvg.js +579 -0
- package/dist-lib/tooltip-Cucn1SiD.js +197 -0
- package/dist-lib/webmapx-3d-tool-D4CTD2gB.js +176 -0
- package/dist-lib/webmapx-base-tool-Dm9NAWLD.js +75 -0
- package/dist-lib/webmapx-config-edit-tool-DCTyxqTk.js +389 -0
- package/dist-lib/webmapx-coordinates-tool-jeWohup9.js +648 -0
- package/dist-lib/webmapx-core-bundle-BDImi1RE.js +8203 -0
- package/dist-lib/webmapx-draw-tool-DooAV8cF.js +4336 -0
- package/dist-lib/webmapx-geolocation-tool-Rw3-Iad1.js +788 -0
- package/dist-lib/webmapx-import-layer-tool-DRYviHd5.js +250 -0
- package/dist-lib/webmapx-info-tool-BJA157cy.js +412 -0
- package/dist-lib/webmapx-language-osmvector-M5y_lwOg.js +489 -0
- package/dist-lib/webmapx-measure-tool-BXhMJFC6.js +590 -0
- package/dist-lib/webmapx-modal-tool-eF6Naluv.js +84 -0
- package/dist-lib/webmapx-plugin-tool-D2Hghf9n.js +45 -0
- package/dist-lib/webmapx-print-tool-ob1bOsR5.js +348 -0
- package/dist-lib/webmapx-search-tool-Cv8BrYvY.js +437 -0
- package/dist-lib/webmapx-settings-DDEJ8aoV.js +479 -0
- package/dist-lib/webmapx-truearea-tool-CMB4Orm-.js +615 -0
- package/dist-lib/webmapx-view-mode-tool-CUpLNjOj.js +106 -0
- package/dist-lib/webmapx.css +2 -0
- package/dist-lib/webmapx.js +1321 -0
- package/dist-lib/wms-feature-info-C0RVMEQC.js +145 -0
- package/dist-lib/wms-url-builder-DIJLQ1v2.js +54 -0
- package/dist-lib/zip.js-DVhmtjxZ.js +3615 -0
- package/package.json +107 -0
- package/public/data/country-epsg-codes.json +297 -0
- package/public/data/world-countries-simplified.topojson +1 -0
- package/src/locales/en/core.json +20 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { a as e, c as t, d as n, i as r, l as i, n as a, r as o, s, t as c, u as l } from "./dist-Dm6b7XCs.js";
|
|
2
|
+
import * as u from "leaflet";
|
|
3
|
+
//#region node_modules/@allmaps/leaflet/dist/WarpedMapLayer.js
|
|
4
|
+
var d = {
|
|
5
|
+
interactive: !1,
|
|
6
|
+
className: "",
|
|
7
|
+
pane: "tilePane",
|
|
8
|
+
zIndex: 1
|
|
9
|
+
}, f = class extends u.Layer {
|
|
10
|
+
defaultSpecificWarpedMapLayerOptions;
|
|
11
|
+
options;
|
|
12
|
+
container;
|
|
13
|
+
canvas;
|
|
14
|
+
gl;
|
|
15
|
+
renderer;
|
|
16
|
+
_annotationOrAnnotationUrl;
|
|
17
|
+
resizeObserver;
|
|
18
|
+
constructor(e, t) {
|
|
19
|
+
super(), this.defaultSpecificWarpedMapLayerOptions = d, this.options = s(this.defaultSpecificWarpedMapLayerOptions, t), this.initialize(e, t);
|
|
20
|
+
}
|
|
21
|
+
initialize(e, t) {
|
|
22
|
+
this._annotationOrAnnotationUrl = e, u.setOptions(this, t), this._initGl();
|
|
23
|
+
}
|
|
24
|
+
onAdd(e) {
|
|
25
|
+
if (!this._map || !this.container) return this;
|
|
26
|
+
let t = this.options.pane;
|
|
27
|
+
return this._map.getPane(t)?.appendChild(this.container), e.on("zoomend viewreset move", this._update, this), e.on("zoomanim", this._animateZoom, this), e.on("unload", this._unload, this), this.resizeObserver = new ResizeObserver(this._resized.bind(this)), this.resizeObserver.observe(this._map.getContainer(), { box: "content-box" }), this._annotationOrAnnotationUrl && (typeof this._annotationOrAnnotationUrl == "string" && i(this._annotationOrAnnotationUrl) ? this.addGeoreferenceAnnotationByUrl(this._annotationOrAnnotationUrl).then(() => this._update()) : this.addGeoreferenceAnnotation(this._annotationOrAnnotationUrl).then(() => this._update())), this;
|
|
28
|
+
}
|
|
29
|
+
onRemove(e) {
|
|
30
|
+
return this.container && this.container.remove(), e.off("zoomend viewreset move", this._update, this), e.off("zoomanim", this._animateZoom, this), this;
|
|
31
|
+
}
|
|
32
|
+
getBounds() {
|
|
33
|
+
c.assertRenderer(this.renderer);
|
|
34
|
+
let e = this.renderer.warpedMapList.getMapsBbox({ projection: { definition: "EPSG:4326" } });
|
|
35
|
+
if (e) return [[e[1], e[0]], [e[3], e[2]]];
|
|
36
|
+
}
|
|
37
|
+
bringToFront() {
|
|
38
|
+
return this._map && this.container && u.DomUtil.toFront(this.container), this;
|
|
39
|
+
}
|
|
40
|
+
bringToBack() {
|
|
41
|
+
return this._map && this.container && u.DomUtil.toBack(this.container), this;
|
|
42
|
+
}
|
|
43
|
+
getZIndex() {
|
|
44
|
+
return this.options.zIndex;
|
|
45
|
+
}
|
|
46
|
+
setZIndex(e) {
|
|
47
|
+
return this.options.zIndex = e, this._updateZIndex(), this;
|
|
48
|
+
}
|
|
49
|
+
_initGl() {
|
|
50
|
+
if (this.container = u.DomUtil.create("div"), this.container.classList.add("leaflet-layer"), this.container.classList.add("allmaps-warped-map-layer"), this.options.zIndex && this._updateZIndex(), this.canvas = u.DomUtil.create("canvas", void 0, this.container), this.canvas.classList.add("leaflet-zoom-animated"), this.canvas.classList.add("leaflet-image-layer"), this.options.interactive && this.canvas.classList.add("leaflet-interactive"), this.options.className && this.canvas.classList.add(this.options.className), this.gl = this.canvas.getContext("webgl2", { premultipliedAlpha: !0 }), !this.gl) throw Error("WebGL 2 not available");
|
|
51
|
+
this.renderer = new a(this.gl), this.addEventListeners(), this.canvas.addEventListener("webglcontextlost", this.contextLost.bind(this)), this.canvas.addEventListener("webglcontextrestored", this.contextRestored.bind(this));
|
|
52
|
+
}
|
|
53
|
+
_resized(e) {
|
|
54
|
+
if (this.canvas) {
|
|
55
|
+
for (let t of e) {
|
|
56
|
+
let e = t.contentRect.width, n = t.contentRect.height, r = window.devicePixelRatio, i = Math.round(e * r), a = Math.round(n * r);
|
|
57
|
+
this.canvas.width = i, this.canvas.height = a, this.canvas.style.width = e + "px", this.canvas.style.height = n + "px";
|
|
58
|
+
}
|
|
59
|
+
this._update();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
_animateZoom(e) {
|
|
63
|
+
if (!this.canvas) return;
|
|
64
|
+
let t = this._map.getZoomScale(e.zoom), n = this._map._latLngBoundsToNewLayerBounds(this._map.getBounds(), e.zoom, e.center).min;
|
|
65
|
+
u.DomUtil.setTransform(this.canvas, n, t);
|
|
66
|
+
}
|
|
67
|
+
_updateZIndex() {
|
|
68
|
+
this.container && this.options.zIndex !== void 0 && (this.container.style.zIndex = String(this.options.zIndex));
|
|
69
|
+
}
|
|
70
|
+
_update() {
|
|
71
|
+
if (!this._map || !this.renderer || !this.canvas || !this._map.options.crs) return;
|
|
72
|
+
let e = this._map.containerPointToLayerPoint([0, 0]);
|
|
73
|
+
u.DomUtil.setPosition(this.canvas, e);
|
|
74
|
+
let t = this._map.getSize(), r = [t.x, t.y], i = this._map.getCenter(), a = this._map.options.crs.project(i), s = [a.x, a.y], c = this._map.getBounds(), d = this._map.options.crs.project(c.getNorthEast()), f = this._map.options.crs.project(c.getNorthWest()), p = this._map.options.crs.project(c.getSouthWest()), m = this._map.options.crs.project(c.getSouthEast()), h = n(l([
|
|
75
|
+
[d.x, d.y],
|
|
76
|
+
[f.x, f.y],
|
|
77
|
+
[p.x, p.y],
|
|
78
|
+
[m.x, m.y]
|
|
79
|
+
]), r), g = window.devicePixelRatio, _ = new o(r, s, h, { devicePixelRatio: g });
|
|
80
|
+
return this.renderer.render(_), this.container;
|
|
81
|
+
}
|
|
82
|
+
_unload() {
|
|
83
|
+
if (c.assertRenderer(this.renderer), !this.gl) return;
|
|
84
|
+
this.renderer.destroy();
|
|
85
|
+
let e = this.gl.getExtension("WEBGL_lose_context");
|
|
86
|
+
e && e.loseContext();
|
|
87
|
+
let t = this.gl.canvas;
|
|
88
|
+
t.width = 1, t.height = 1, this.resizeObserver?.disconnect(), this.canvas?.addEventListener("webglcontextlost", this.contextLost.bind(this)), this.canvas?.addEventListener("webglcontextrestored", this.contextRestored.bind(this));
|
|
89
|
+
}
|
|
90
|
+
nativeUpdate() {
|
|
91
|
+
this._update();
|
|
92
|
+
}
|
|
93
|
+
nativePassWarpedMapEvent(e) {
|
|
94
|
+
e instanceof r && this._map && this._map.fire(e.type, e.data);
|
|
95
|
+
}
|
|
96
|
+
async addGeoreferenceAnnotation(e, t) {
|
|
97
|
+
c.assertRenderer(this.renderer);
|
|
98
|
+
let n = await this.renderer.addGeoreferenceAnnotation(e, t);
|
|
99
|
+
return this.nativeUpdate(), n;
|
|
100
|
+
}
|
|
101
|
+
async removeGeoreferenceAnnotation(e) {
|
|
102
|
+
c.assertRenderer(this.renderer);
|
|
103
|
+
let t = await this.renderer.warpedMapList.removeGeoreferenceAnnotation(e);
|
|
104
|
+
return this.nativeUpdate(), t;
|
|
105
|
+
}
|
|
106
|
+
async addGeoreferenceAnnotationByUrl(e, t) {
|
|
107
|
+
let n = await fetch(e).then((e) => e.json());
|
|
108
|
+
return this.addGeoreferenceAnnotation(n, t);
|
|
109
|
+
}
|
|
110
|
+
async removeGeoreferenceAnnotationByUrl(e) {
|
|
111
|
+
let t = await fetch(e).then((e) => e.json());
|
|
112
|
+
return this.removeGeoreferenceAnnotation(t);
|
|
113
|
+
}
|
|
114
|
+
async addGeoreferencedMap(e, t) {
|
|
115
|
+
c.assertRenderer(this.renderer);
|
|
116
|
+
let n = this.renderer.addGeoreferencedMap(e, t);
|
|
117
|
+
return this.nativeUpdate(), n;
|
|
118
|
+
}
|
|
119
|
+
async removeGeoreferencedMap(e) {
|
|
120
|
+
c.assertRenderer(this.renderer);
|
|
121
|
+
let t = this.renderer.warpedMapList.removeGeoreferencedMap(e);
|
|
122
|
+
return this.nativeUpdate(), t;
|
|
123
|
+
}
|
|
124
|
+
async removeGeoreferencedMapById(e) {
|
|
125
|
+
c.assertRenderer(this.renderer);
|
|
126
|
+
let t = this.renderer.warpedMapList.removeGeoreferencedMapById(e);
|
|
127
|
+
return this.nativeUpdate(), t;
|
|
128
|
+
}
|
|
129
|
+
addImageInfos(e) {
|
|
130
|
+
c.assertRenderer(this.renderer);
|
|
131
|
+
let t = this.renderer.warpedMapList.addImageInfos(e);
|
|
132
|
+
return this.nativeUpdate(), t;
|
|
133
|
+
}
|
|
134
|
+
async addSprites(e, t, n) {
|
|
135
|
+
c.assertRenderer(this.renderer), await this.renderer.addSprites(e, t, n), this.nativeUpdate();
|
|
136
|
+
}
|
|
137
|
+
getWarpedMapList() {
|
|
138
|
+
return c.assertRenderer(this.renderer), this.renderer.warpedMapList;
|
|
139
|
+
}
|
|
140
|
+
getMapIds() {
|
|
141
|
+
return c.assertRenderer(this.renderer), this.renderer.warpedMapList.getMapIds();
|
|
142
|
+
}
|
|
143
|
+
getWarpedMaps(e) {
|
|
144
|
+
return c.assertRenderer(this.renderer), this.renderer.warpedMapList.getWarpedMaps({ mapIds: e });
|
|
145
|
+
}
|
|
146
|
+
getWarpedMap(e) {
|
|
147
|
+
return c.assertRenderer(this.renderer), this.renderer.warpedMapList.getWarpedMap(e);
|
|
148
|
+
}
|
|
149
|
+
getMapsCenter(e, n) {
|
|
150
|
+
return c.assertRenderer(this.renderer), this.renderer.warpedMapList.getMapsCenter(t({ mapIds: e }, n));
|
|
151
|
+
}
|
|
152
|
+
getMapsBbox(e, n) {
|
|
153
|
+
return c.assertRenderer(this.renderer), this.renderer.warpedMapList.getMapsBbox(t({ mapIds: e }, n));
|
|
154
|
+
}
|
|
155
|
+
getMapsConvexHull(e, n) {
|
|
156
|
+
return c.assertRenderer(this.renderer), this.renderer.warpedMapList.getMapsConvexHull(t({ mapIds: e }, n));
|
|
157
|
+
}
|
|
158
|
+
getMapZIndex(e) {
|
|
159
|
+
return c.assertRenderer(this.renderer), this.renderer.warpedMapList.getMapZIndex(e);
|
|
160
|
+
}
|
|
161
|
+
getOpacity() {
|
|
162
|
+
return this.getLayerOptions().opacity ?? this.getDefaultOptions().opacity;
|
|
163
|
+
}
|
|
164
|
+
getDefaultOptions() {
|
|
165
|
+
return c.assertRenderer(this.renderer), s(this.defaultSpecificWarpedMapLayerOptions, this.renderer.getDefaultOptions());
|
|
166
|
+
}
|
|
167
|
+
getMapDefaultOptions(e) {
|
|
168
|
+
return c.assertRenderer(this.renderer), this.renderer.getMapDefaultOptions(e);
|
|
169
|
+
}
|
|
170
|
+
getLayerOptions() {
|
|
171
|
+
return c.assertRenderer(this.renderer), t(this.options, this.renderer.getOptions());
|
|
172
|
+
}
|
|
173
|
+
getMapMapOptions(e) {
|
|
174
|
+
return c.assertRenderer(this.renderer), this.renderer.getMapMapOptions(e);
|
|
175
|
+
}
|
|
176
|
+
getMapOptions(e) {
|
|
177
|
+
return c.assertRenderer(this.renderer), this.renderer.getMapOptions(e);
|
|
178
|
+
}
|
|
179
|
+
setOpacity(e) {
|
|
180
|
+
this.setLayerOptions({ opacity: e });
|
|
181
|
+
}
|
|
182
|
+
setLayerOptions(e, t) {
|
|
183
|
+
c.assertRenderer(this.renderer), this.options = s(this.options, e), this.renderer.setOptions(e, t);
|
|
184
|
+
}
|
|
185
|
+
setMapGcps(e, t, n) {
|
|
186
|
+
return this.setMapOptions(e, { gcps: t }, void 0, n);
|
|
187
|
+
}
|
|
188
|
+
setMapResourceMask(e, t, n) {
|
|
189
|
+
return this.setMapOptions(e, { resourceMask: t }, void 0, n);
|
|
190
|
+
}
|
|
191
|
+
setMapTransformationType(e, t, n) {
|
|
192
|
+
return this.setMapOptions(e, { transformationType: t }, void 0, n);
|
|
193
|
+
}
|
|
194
|
+
setMapOptions(e, t, n, r) {
|
|
195
|
+
return this.setMapsOptions([e], t, n, r);
|
|
196
|
+
}
|
|
197
|
+
setMapsOptions(e, t, n, r) {
|
|
198
|
+
c.assertRenderer(this.renderer), n && (this.options = s(this.options, n)), this.renderer.setMapsOptions(e, t, n, r);
|
|
199
|
+
}
|
|
200
|
+
setMapsOptionsByMapId(e, t, n) {
|
|
201
|
+
c.assertRenderer(this.renderer), t && (this.options = s(this.options, t)), this.renderer.setMapsOptionsByMapId(e, t, n);
|
|
202
|
+
}
|
|
203
|
+
resetLayerOptions(e, t) {
|
|
204
|
+
c.assertRenderer(this.renderer), this.renderer.resetOptions(e, t);
|
|
205
|
+
}
|
|
206
|
+
resetMapsOptions(e, t, n, r) {
|
|
207
|
+
c.assertRenderer(this.renderer), this.renderer.resetMapsOptions(e, t, n, r);
|
|
208
|
+
}
|
|
209
|
+
resetMapsOptionsByMapId(e, t, n) {
|
|
210
|
+
c.assertRenderer(this.renderer), this.renderer.resetMapsOptionsByMapId(e, t, n);
|
|
211
|
+
}
|
|
212
|
+
bringMapsToFront(e) {
|
|
213
|
+
c.assertRenderer(this.renderer), this.renderer.warpedMapList.bringMapsToFront(e), this.nativeUpdate();
|
|
214
|
+
}
|
|
215
|
+
sendMapsToBack(e) {
|
|
216
|
+
c.assertRenderer(this.renderer), this.renderer.warpedMapList.sendMapsToBack(e), this.nativeUpdate();
|
|
217
|
+
}
|
|
218
|
+
bringMapsForward(e) {
|
|
219
|
+
c.assertRenderer(this.renderer), this.renderer.warpedMapList.bringMapsForward(e), this.nativeUpdate();
|
|
220
|
+
}
|
|
221
|
+
sendMapsBackward(e) {
|
|
222
|
+
c.assertRenderer(this.renderer), this.renderer.warpedMapList.sendMapsBackward(e), this.nativeUpdate();
|
|
223
|
+
}
|
|
224
|
+
clear() {
|
|
225
|
+
c.assertRenderer(this.renderer), this.renderer.clear(), this.nativeUpdate();
|
|
226
|
+
}
|
|
227
|
+
contextLost(e) {
|
|
228
|
+
e.preventDefault(), this.renderer?.contextLost();
|
|
229
|
+
}
|
|
230
|
+
contextRestored(e) {
|
|
231
|
+
e.preventDefault(), this.renderer?.contextRestored();
|
|
232
|
+
}
|
|
233
|
+
addEventListeners() {
|
|
234
|
+
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)));
|
|
235
|
+
}
|
|
236
|
+
removeEventListeners() {
|
|
237
|
+
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)));
|
|
238
|
+
}
|
|
239
|
+
}, p = function(e, t) {
|
|
240
|
+
return new f(e, t);
|
|
241
|
+
};
|
|
242
|
+
L.WarpedMapLayer = f, L.warpedMapLayer = p;
|
|
243
|
+
//#endregion
|
|
244
|
+
export { f as WarpedMapLayer };
|