@eox/drawtools 1.0.0 → 1.1.1
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/eox-drawtools.js +485 -438
- package/dist/eox-drawtools.umd.cjs +69 -43
- package/package.json +1 -1
- package/src/components/controller.js +35 -3
- package/src/components/list.js +9 -2
- package/src/enums/test.js +1 -0
- package/src/helpers/generate-upload-events.js +11 -5
- package/src/main.js +15 -7
- package/src/methods/draw/create-select-handler.js +2 -2
- package/src/methods/draw/discard-drawing.js +1 -1
- package/src/methods/draw/init-layer.js +32 -5
- package/src/methods/draw/init-selection.js +3 -3
- package/src/methods/draw/on-draw-end.js +1 -1
- package/src/methods/draw/start-drawing.js +2 -2
- package/src/methods/list/delete-feature.js +2 -1
- package/src/style.eox.js +3 -0
- package/types/drawtools/src/components/controller.d.ts.map +1 -1
- package/types/drawtools/src/components/list.d.ts.map +1 -1
- package/types/drawtools/src/enums/test.d.ts +1 -0
- package/types/drawtools/src/helpers/generate-upload-events.d.ts +4 -2
- package/types/drawtools/src/helpers/generate-upload-events.d.ts.map +1 -1
- package/types/drawtools/src/main.d.ts +5 -2
- package/types/drawtools/src/main.d.ts.map +1 -1
- package/types/drawtools/src/methods/draw/init-layer.d.ts +1 -1
- package/types/drawtools/src/methods/draw/init-layer.d.ts.map +1 -1
- package/types/drawtools/src/methods/list/delete-feature.d.ts +1 -1
- package/types/drawtools/src/methods/list/delete-feature.d.ts.map +1 -1
- package/types/drawtools/src/style.eox.d.ts.map +1 -1
- package/types/map/src/custom/sources/Cluster.d.ts +20 -0
- package/types/map/src/custom/sources/Cluster.d.ts.map +1 -0
- package/types/map/src/helpers/add-new-feature.d.ts.map +1 -1
- package/types/map/src/helpers/cluster-explode.d.ts +38 -0
- package/types/map/src/helpers/cluster-explode.d.ts.map +1 -0
- package/types/map/src/helpers/generate.d.ts.map +1 -1
- package/types/map/src/helpers/index.d.ts +1 -0
- package/types/map/src/helpers/parse-feature.d.ts.map +1 -1
- package/types/map/src/helpers/parse-text.d.ts +1 -2
- package/types/map/src/helpers/parse-text.d.ts.map +1 -1
- package/types/map/src/helpers/select.d.ts.map +1 -1
- package/types/map/src/helpers/tile-grid.d.ts +3 -7
- package/types/map/src/helpers/tile-grid.d.ts.map +1 -1
- package/types/map/src/layers.d.ts +3 -2
- package/types/map/src/layers.d.ts.map +1 -1
- package/types/map/src/methods/map/setters.d.ts.map +1 -1
- package/types/map/src/types.d.ts +14 -1
- package/types/map/src/types.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -173,6 +173,15 @@ export class EOxDrawToolsController extends LitElement {
|
|
|
173
173
|
d="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z"
|
|
174
174
|
/>
|
|
175
175
|
</svg>`;
|
|
176
|
+
const editIcon = html`<svg
|
|
177
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
178
|
+
viewBox="0 0 24 24"
|
|
179
|
+
>
|
|
180
|
+
<title>pencil-outline</title>
|
|
181
|
+
<path
|
|
182
|
+
d="M14.06,9L15,9.94L5.92,19H5V18.08L14.06,9M17.66,3C17.41,3 17.15,3.1 16.96,3.29L15.13,5.12L18.88,8.87L20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18.17,3.09 17.92,3 17.66,3M14.06,6.19L3,17.25V21H6.75L17.81,9.94L14.06,6.19Z"
|
|
183
|
+
/>
|
|
184
|
+
</svg>`;
|
|
176
185
|
const importIcon = html`<svg
|
|
177
186
|
xmlns="http://www.w3.org/2000/svg"
|
|
178
187
|
viewBox="0 0 24 24"
|
|
@@ -233,6 +242,29 @@ export class EOxDrawToolsController extends LitElement {
|
|
|
233
242
|
</button>
|
|
234
243
|
</div>
|
|
235
244
|
|
|
245
|
+
<!-- Editor Button -->
|
|
246
|
+
${when(
|
|
247
|
+
this.showEditor,
|
|
248
|
+
() => html`
|
|
249
|
+
<button
|
|
250
|
+
data-cy="editorBtn"
|
|
251
|
+
class="transparent circle primary-text no-margin small"
|
|
252
|
+
title="${this.unstyled ? "Edit features" : ""}"
|
|
253
|
+
@click=${() =>
|
|
254
|
+
this.renderRoot
|
|
255
|
+
.querySelector("#editor")
|
|
256
|
+
.classList.toggle("hidden")}
|
|
257
|
+
>
|
|
258
|
+
${this.unstyled
|
|
259
|
+
? "import"
|
|
260
|
+
: html`
|
|
261
|
+
<i class="small">${editIcon}</i>
|
|
262
|
+
<div class="tooltip bottom">Edit features</div>
|
|
263
|
+
`}
|
|
264
|
+
</button>
|
|
265
|
+
`,
|
|
266
|
+
)}
|
|
267
|
+
|
|
236
268
|
<!-- Import Button -->
|
|
237
269
|
${when(
|
|
238
270
|
this.importFeatures,
|
|
@@ -259,7 +291,7 @@ export class EOxDrawToolsController extends LitElement {
|
|
|
259
291
|
? "import"
|
|
260
292
|
: html`
|
|
261
293
|
<i class="small">${importIcon}</i>
|
|
262
|
-
<div class="tooltip
|
|
294
|
+
<div class="tooltip bottom">Import features</div>
|
|
263
295
|
`}
|
|
264
296
|
</button>
|
|
265
297
|
`,
|
|
@@ -270,10 +302,10 @@ export class EOxDrawToolsController extends LitElement {
|
|
|
270
302
|
${when(
|
|
271
303
|
this.showEditor,
|
|
272
304
|
() => html`
|
|
273
|
-
<div class="field textarea border extra">
|
|
305
|
+
<div id="editor" class="field textarea border extra hidden">
|
|
274
306
|
<!-- Geo JSON Editor -->
|
|
275
307
|
<textarea
|
|
276
|
-
style="font-family: monospace"
|
|
308
|
+
style="font-family: monospace; font-size: small; line-height: 1.4; padding: 0.4rem;"
|
|
277
309
|
@drop=${this.drawFunc.import}
|
|
278
310
|
@input=${this.drawFunc.editor}
|
|
279
311
|
.value=${this.geoJSON}
|
package/src/components/list.js
CHANGED
|
@@ -115,7 +115,7 @@ export class EOxDrawToolsList extends LitElement {
|
|
|
115
115
|
* @param {Event & { target: HTMLButtonElement }} evt - Event object containing button target.
|
|
116
116
|
*/
|
|
117
117
|
_handleDelete(evt) {
|
|
118
|
-
deleteFeatureMethod(evt, this);
|
|
118
|
+
deleteFeatureMethod(evt, this, this.eoxDrawTools);
|
|
119
119
|
this.dispatchEvent(new CustomEvent("changed", { bubbles: true }));
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -183,7 +183,14 @@ export class EOxDrawToolsList extends LitElement {
|
|
|
183
183
|
: isFeatureClicked
|
|
184
184
|
? "fill"
|
|
185
185
|
: nothing;
|
|
186
|
-
|
|
186
|
+
|
|
187
|
+
const pathParts = this.featureNameKey?.split(".");
|
|
188
|
+
const propertyName =
|
|
189
|
+
feature.get(this.featureNameKey) ||
|
|
190
|
+
pathParts?.reduce((obj, part) => obj?.[part], {
|
|
191
|
+
...feature.getProperties(),
|
|
192
|
+
});
|
|
193
|
+
|
|
187
194
|
const title = propertyName
|
|
188
195
|
? propertyName
|
|
189
196
|
: `${this.featureName} ${featureNumber}`;
|
package/src/enums/test.js
CHANGED
|
@@ -2,6 +2,7 @@ export const TEST_SELECTORS = {
|
|
|
2
2
|
drawTools: "eox-drawtools",
|
|
3
3
|
controller: "eox-drawtools-controller",
|
|
4
4
|
drawBtn: "[data-cy='drawBtn']",
|
|
5
|
+
editorBtn: "[data-cy='editorBtn']",
|
|
5
6
|
copyBtn: "[data-cy='copyBtn']",
|
|
6
7
|
discardBtn: "[data-cy='discardBtn']",
|
|
7
8
|
list: "eox-drawtools-list",
|
|
@@ -49,18 +49,24 @@ function preventDefaults(e) {
|
|
|
49
49
|
* Handles file input from drag-and-drop or file selection events,
|
|
50
50
|
* forwarding each file to a specified processing function.
|
|
51
51
|
*
|
|
52
|
-
* @param {DragEvent} e - The event object from the file input interaction.
|
|
52
|
+
* @param {DragEvent | InputEvent & { target: HTMLInputElement }} e - The event object from the file input interaction.
|
|
53
53
|
* @param {import("../main.js").EOxDrawTools} EOxDrawTool - The drawing tool instance.
|
|
54
54
|
*/
|
|
55
55
|
export function handleFiles(e, EOxDrawTool) {
|
|
56
56
|
preventDefaults(e);
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
let files;
|
|
59
|
+
if ("dataTransfer" in e && e.dataTransfer) files = e.dataTransfer.files;
|
|
60
|
+
else if (e.target && "files" in e.target)
|
|
61
|
+
files = /**@type {HTMLInputElement}*/ (e.target).files;
|
|
62
|
+
else files = [];
|
|
62
63
|
|
|
63
64
|
Array.from(files).forEach((file) => importFile(file, EOxDrawTool));
|
|
65
|
+
|
|
66
|
+
// Only try to clear the value if the target is an HTMLInputElement
|
|
67
|
+
if (e.target && "value" in e.target) {
|
|
68
|
+
e.target.value = "";
|
|
69
|
+
}
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
/**
|
package/src/main.js
CHANGED
|
@@ -253,16 +253,12 @@ export class EOxDrawTools extends LitElement {
|
|
|
253
253
|
this.drawLayer,
|
|
254
254
|
this.eoxMap,
|
|
255
255
|
replaceFeatures,
|
|
256
|
-
{
|
|
257
|
-
dataProjection: this.eoxMap.projection,
|
|
258
|
-
featureProjection: this.projection,
|
|
259
|
-
},
|
|
260
256
|
animate,
|
|
261
257
|
);
|
|
262
258
|
}
|
|
263
259
|
|
|
264
260
|
/**
|
|
265
|
-
* @param {DragEvent} evt - The event object from the file input interaction.
|
|
261
|
+
* @param {DragEvent | InputEvent & { target: HTMLInputElement }} evt - The event object from the file input interaction.
|
|
266
262
|
*/
|
|
267
263
|
handleFilesChange(evt) {
|
|
268
264
|
handleFiles(evt, this);
|
|
@@ -317,7 +313,11 @@ export class EOxDrawTools extends LitElement {
|
|
|
317
313
|
* It then calls requestUpdate to trigger a re-render.
|
|
318
314
|
*/
|
|
319
315
|
firstUpdated() {
|
|
320
|
-
const { EoxMap, OlMap } = initLayerMethod(
|
|
316
|
+
const { EoxMap, OlMap, reset } = initLayerMethod(
|
|
317
|
+
this,
|
|
318
|
+
this.multipleFeatures,
|
|
319
|
+
);
|
|
320
|
+
this.resetLayer = reset;
|
|
321
321
|
this.eoxMap = EoxMap;
|
|
322
322
|
this.#olMap = OlMap;
|
|
323
323
|
this.selectionEvents = createSelectHandler(this);
|
|
@@ -346,9 +346,17 @@ export class EOxDrawTools extends LitElement {
|
|
|
346
346
|
this.requestUpdate("eoxMap", oldValue);
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
+
connectedCallback() {
|
|
350
|
+
super.connectedCallback();
|
|
351
|
+
if (this.drawLayer && this.eoxMap) {
|
|
352
|
+
const { reset } = initLayerMethod(this, this.multipleFeatures);
|
|
353
|
+
this.resetLayer = reset;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
349
357
|
disconnectedCallback() {
|
|
350
|
-
this.eoxMap?.map.removeLayer(this.drawLayer);
|
|
351
358
|
super.disconnectedCallback();
|
|
359
|
+
this.resetLayer?.(this);
|
|
352
360
|
}
|
|
353
361
|
// Render method for UI display
|
|
354
362
|
render() {
|
|
@@ -26,7 +26,7 @@ const createSelectHandler = (EoxDrawTool) => {
|
|
|
26
26
|
if (EoxDrawTool.layerId) {
|
|
27
27
|
const hoverInteraction =
|
|
28
28
|
EoxDrawTool.eoxMap.selectInteractions["SelectLayerHoverInteraction"];
|
|
29
|
-
hoverInteraction
|
|
29
|
+
hoverInteraction?.setActive(true);
|
|
30
30
|
EoxDrawTool.eoxMap.addEventListener("select", selectHandler);
|
|
31
31
|
}
|
|
32
32
|
};
|
|
@@ -39,7 +39,7 @@ const createSelectHandler = (EoxDrawTool) => {
|
|
|
39
39
|
EoxDrawTool.eoxMap.selectInteractions?.["SelectLayerHoverInteraction"];
|
|
40
40
|
if (hoverInteraction) {
|
|
41
41
|
hoverInteraction.selectedFids = [];
|
|
42
|
-
hoverInteraction
|
|
42
|
+
hoverInteraction?.setActive(false);
|
|
43
43
|
}
|
|
44
44
|
EoxDrawTool.eoxMap.removeEventListener("select", selectHandler);
|
|
45
45
|
};
|
|
@@ -9,7 +9,7 @@ const discardDrawingMethod = (EoxDrawTool) => {
|
|
|
9
9
|
const discardDrawingActions = () => {
|
|
10
10
|
// Reset drawnFeatures, deactivate drawing, and clear drawLayer's source
|
|
11
11
|
EoxDrawTool.drawnFeatures = [];
|
|
12
|
-
EoxDrawTool.draw
|
|
12
|
+
EoxDrawTool.draw?.setActive(false);
|
|
13
13
|
EoxDrawTool.selectionEvents.removeSelectionEvent();
|
|
14
14
|
EoxDrawTool.drawLayer.getSource().clear();
|
|
15
15
|
//@ts-expect-error TODO
|
|
@@ -7,7 +7,6 @@ import { getElement } from "@eox/elements-utils";
|
|
|
7
7
|
*
|
|
8
8
|
* @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
9
9
|
* @param {Boolean} multipleFeatures - Allow adding more than one feature at a time
|
|
10
|
-
* @returns {{EoxMap: import("@eox/map").EOxMap, OlMap: import("ol").Map}} - The map instances.
|
|
11
10
|
*/
|
|
12
11
|
const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
|
|
13
12
|
const mapQuery = getElement(EoxDrawTool.for);
|
|
@@ -95,12 +94,40 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
|
|
|
95
94
|
|
|
96
95
|
// Initialize selection interactions
|
|
97
96
|
initSelection(EoxDrawTool, EoxMap, EoxDrawTool.layerId);
|
|
97
|
+
const onModifyEnd = () => EoxDrawTool.onModifyEnd();
|
|
98
|
+
const onAddFeatures = () => onDrawEndMethod(EoxDrawTool);
|
|
98
99
|
|
|
99
|
-
EoxDrawTool.modify?.on("modifyend",
|
|
100
|
+
EoxDrawTool.modify?.on("modifyend", onModifyEnd);
|
|
100
101
|
|
|
101
|
-
EoxMap.addEventListener("addfeatures",
|
|
102
|
+
EoxMap.addEventListener("addfeatures", onAddFeatures);
|
|
102
103
|
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
if (EoxDrawTool.drawnFeatures) {
|
|
105
|
+
EoxDrawTool.drawLayer.getSource().addFeatures(EoxDrawTool.drawnFeatures);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Resets the draw layer, cleaning up interactions and listeners.
|
|
110
|
+
*
|
|
111
|
+
* @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
112
|
+
*/
|
|
113
|
+
const reset = (EoxDrawTool) => {
|
|
114
|
+
if (!EoxDrawTool.eoxMap || !EoxDrawTool.drawLayer) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Remove the layer from the map
|
|
119
|
+
EoxDrawTool.drawLayer.getSource().clear();
|
|
120
|
+
EoxDrawTool.eoxMap.map.removeLayer(EoxDrawTool.drawLayer);
|
|
121
|
+
EoxDrawTool.modify?.un("modifyend", onModifyEnd);
|
|
122
|
+
EoxDrawTool.eoxMap.removeEventListener("addfeatures", onAddFeatures);
|
|
105
123
|
|
|
124
|
+
// Clean up references
|
|
125
|
+
if (!EoxDrawTool.layerId) {
|
|
126
|
+
EoxDrawTool.draw = null;
|
|
127
|
+
}
|
|
128
|
+
EoxDrawTool.modify = null;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
return { EoxMap, OlMap, reset };
|
|
132
|
+
};
|
|
106
133
|
export default initLayerMethod;
|
|
@@ -63,9 +63,9 @@ const initSelection = (EoxDrawTool, EoxMap, layerId) => {
|
|
|
63
63
|
const oldDrawInteraction = EoxDrawTool.draw;
|
|
64
64
|
EoxDrawTool.draw = EoxMap.selectInteractions["SelectLayerClickInteraction"];
|
|
65
65
|
|
|
66
|
-
oldDrawInteraction
|
|
67
|
-
EoxMap.selectInteractions["SelectLayerClickInteraction"]
|
|
68
|
-
EoxMap.selectInteractions["SelectLayerHoverInteraction"]
|
|
66
|
+
oldDrawInteraction?.setActive(false);
|
|
67
|
+
EoxMap.selectInteractions["SelectLayerClickInteraction"]?.setActive(false);
|
|
68
|
+
EoxMap.selectInteractions["SelectLayerHoverInteraction"]?.setActive(false);
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
export default initSelection;
|
|
@@ -9,7 +9,7 @@ const onDrawEndMethod = (EoxDrawTool) => {
|
|
|
9
9
|
const handleDrawEnd = () => {
|
|
10
10
|
EoxDrawTool.emitDrawnFeatures(); // Emit drawn features
|
|
11
11
|
if (!EoxDrawTool.multipleFeatures) {
|
|
12
|
-
EoxDrawTool.draw
|
|
12
|
+
EoxDrawTool.draw?.setActive(false); // Deactivate drawing
|
|
13
13
|
EoxDrawTool.selectionEvents.removeSelectionEvent();
|
|
14
14
|
EoxDrawTool.currentlyDrawing = false; // Update drawing status flag
|
|
15
15
|
} else {
|
|
@@ -8,7 +8,7 @@ const startDrawingMethod = (EoxDrawTool) => {
|
|
|
8
8
|
// Function to initialize the drawing process
|
|
9
9
|
const initializeDrawing = () => {
|
|
10
10
|
EoxDrawTool.drawLayer.set("isDrawingEnabled", true);
|
|
11
|
-
EoxDrawTool.draw
|
|
11
|
+
EoxDrawTool.draw?.setActive(true);
|
|
12
12
|
// Add selection
|
|
13
13
|
EoxDrawTool.selectionEvents.addSelectionEvent();
|
|
14
14
|
};
|
|
@@ -27,7 +27,7 @@ const startDrawingMethod = (EoxDrawTool) => {
|
|
|
27
27
|
// Abort drawing on Esc key
|
|
28
28
|
document.addEventListener("keydown", ({ key }) => {
|
|
29
29
|
if (key === "Escape" && EoxDrawTool.currentlyDrawing) {
|
|
30
|
-
EoxDrawTool.draw
|
|
30
|
+
EoxDrawTool.draw?.setActive(false);
|
|
31
31
|
EoxDrawTool.currentlyDrawing = false;
|
|
32
32
|
EoxDrawTool.requestUpdate();
|
|
33
33
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @param {Event & { target: HTMLButtonElement }} evt - Event object containing button target.
|
|
5
5
|
* @param {import("../../components/list").EOxDrawToolsList} EoxDrawToolList - The list of drawn features.
|
|
6
6
|
*/
|
|
7
|
-
const deleteFeatureMethod = (evt, EoxDrawToolList) => {
|
|
7
|
+
const deleteFeatureMethod = (evt, EoxDrawToolList, EoxDrawTool) => {
|
|
8
8
|
evt.stopPropagation();
|
|
9
9
|
|
|
10
10
|
// Extract the index of the feature to delete from the button's attribute
|
|
@@ -16,6 +16,7 @@ const deleteFeatureMethod = (evt, EoxDrawToolList) => {
|
|
|
16
16
|
// Remove the feature from the draw layer and update the drawnFeatures array
|
|
17
17
|
EoxDrawToolList.drawLayer.getSource().removeFeature(feature);
|
|
18
18
|
EoxDrawToolList.drawnFeatures.splice(index, 1);
|
|
19
|
+
EoxDrawTool.emitDrawnFeatures();
|
|
19
20
|
|
|
20
21
|
// Request an update to reflect the changes
|
|
21
22
|
EoxDrawToolList.requestUpdate();
|
package/src/style.eox.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../src/components/controller.js"],"names":[],"mappings":"AAKA;;;;GAIG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWE;IAeA;;OAEG;IACH,0BAA6B;IAE7B;;;;;OAKG;IACH,eAFS,KAAK,CAAC,OAAO,IAAI,EAAE,OAAO,CAAC,CAEb;IAEvB;;;OAGG;IACH,wBAA2B;IAE3B;;;OAGG;IACH,oBAAuB;IAEvB;;OAEG;IACH,0BAA6B;IAE7B;;OAEG;IACH,cAAoB;IAEpB;;;OAGG;IACH,gBAAiB;IAEjB;;;OAGG;IACH,MAFU,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,QAAQ,GAAG,KAAK,CAE1C;IAErB;;OAEG;IACH,kBAAqB;IAErB;;OAEG;IACH,gBAAmB;IAGrB;;OAEG;IACH,2BAKC;IAED;;OAEG;IACH,yBAEC;IAED,+
|
|
1
|
+
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../src/components/controller.js"],"names":[],"mappings":"AAKA;;;;GAIG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWE;IAeA;;OAEG;IACH,0BAA6B;IAE7B;;;;;OAK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AGzC;IAErB;;;;;OAKG;IACH,eAFS,KAAK,CAAC,OAAO,IAAI,EAAE,OAAO,CAAC,CAEb;IAEvB;;OAEG;IACH,oBAA4B;IAE5B;;OAEG;IACH,oBAA0B;IAE1B;;;OAGG;IAEH,QAHS,OAAO,gBAAgB,EAAE,MAAM,CAGtB;IAElB;;OAEG;IACH,kBAAqB;IAGvB;;;;OAIG;IACH,mBAFW,KAAK,GAAG;QAAE,MAAM,EAAE,iBAAiB,CAAA;KAAE,QAK/C;IAED;;;;OAIG;IACH,yCAFW,OAAO,IAAI,EAAE,OAAO,QAI9B;IAED;;;;OAIG;IACH,+BAHW,MAAM,GAAG,MAAM,GAAG,SAAS,4BAKrC;IAED;;OAEG;IACH,qBAEC;IAED;;OAEG;IACH,yBAEC;IAED,+CAwEC;CACF;2BAlOyC,KAAK"}
|
|
@@ -10,8 +10,10 @@ export function initMapDragDropImport(EOxDrawTool: import("../main.js").EOxDrawT
|
|
|
10
10
|
* Handles file input from drag-and-drop or file selection events,
|
|
11
11
|
* forwarding each file to a specified processing function.
|
|
12
12
|
*
|
|
13
|
-
* @param {DragEvent} e - The event object from the file input interaction.
|
|
13
|
+
* @param {DragEvent | InputEvent & { target: HTMLInputElement }} e - The event object from the file input interaction.
|
|
14
14
|
* @param {import("../main.js").EOxDrawTools} EOxDrawTool - The drawing tool instance.
|
|
15
15
|
*/
|
|
16
|
-
export function handleFiles(e: DragEvent
|
|
16
|
+
export function handleFiles(e: DragEvent | (InputEvent & {
|
|
17
|
+
target: HTMLInputElement;
|
|
18
|
+
}), EOxDrawTool: import("../main.js").EOxDrawTools): void;
|
|
17
19
|
//# sourceMappingURL=generate-upload-events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-upload-events.d.ts","sourceRoot":"","sources":["../../../../src/helpers/generate-upload-events.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,mDAHW,OAAO,YAAY,EAAE,YAAY,UACjC,OAAO,UAAU,EAAE,MAAM,QA6BnC;AAaD;;;;;;GAMG;AACH,+BAHW,SAAS,
|
|
1
|
+
{"version":3,"file":"generate-upload-events.d.ts","sourceRoot":"","sources":["../../../../src/helpers/generate-upload-events.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,mDAHW,OAAO,YAAY,EAAE,YAAY,UACjC,OAAO,UAAU,EAAE,MAAM,QA6BnC;AAaD;;;;;;GAMG;AACH,+BAHW,SAAS,IAAG,UAAU,GAAG;IAAE,MAAM,EAAE,gBAAgB,CAAA;CAAE,CAAA,eACrD,OAAO,YAAY,EAAE,YAAY,QAiB3C"}
|
|
@@ -215,9 +215,11 @@ export class EOxDrawTools extends LitElement {
|
|
|
215
215
|
*/
|
|
216
216
|
handleFeatureChange(text: string, replaceFeatures?: boolean, animate?: boolean): void;
|
|
217
217
|
/**
|
|
218
|
-
* @param {DragEvent} evt - The event object from the file input interaction.
|
|
218
|
+
* @param {DragEvent | InputEvent & { target: HTMLInputElement }} evt - The event object from the file input interaction.
|
|
219
219
|
*/
|
|
220
|
-
handleFilesChange(evt: DragEvent
|
|
220
|
+
handleFilesChange(evt: DragEvent | (InputEvent & {
|
|
221
|
+
target: HTMLInputElement;
|
|
222
|
+
})): void;
|
|
221
223
|
/**
|
|
222
224
|
* @event onModifyEnd triggered when the modification of a shape is completed.
|
|
223
225
|
*/
|
|
@@ -236,6 +238,7 @@ export class EOxDrawTools extends LitElement {
|
|
|
236
238
|
* It then calls requestUpdate to trigger a re-render.
|
|
237
239
|
*/
|
|
238
240
|
firstUpdated(): void;
|
|
241
|
+
resetLayer: (EoxDrawTool: import("./main").EOxDrawTools) => void;
|
|
239
242
|
set eoxMap(value: import("@eox/map").EOxMap);
|
|
240
243
|
get eoxMap(): import("@eox/map").EOxMap;
|
|
241
244
|
updated(changedProperties: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAkBA;;;;GA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IACH,kBAAqB;IACrB;;OAEG;IACH,mBAA6B;IAE7B;;;OAGG;IACH,MAFU,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,QAAQ,GAAG,KAAK,CAE1C;IAErB;;OAEG;IACH,iBAFU,UAAU,CAAC,cAAc,sCAAsC,EAAE,OAAO,CAAC,CAExD;IAE3B;;;;;OAKG;IACH,QAFU,SAAS,GAAE,SAAS,GAAG,KAAK,CAEf;IAEvB;;OAEG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAGvB;;;;OAIG;IACH,+BAGC;IAED,0BAEC;IAeD;;OAEG;IACH,qBAEC;IAED;;;OAGG;IACH,uBAEC;IAED;;;;OAIG;IACH,0BAJW,MAAM,oBACN,OAAO,YACP,OAAO,QAUjB;IAED;;OAEG;IACH,uBAFW,SAAS,IAAG,UAAU,GAAG;QAAE,MAAM,EAAE,gBAAgB,CAAA;KAAE,CAAA,QAI/D;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,sBAMC;IAED;;OAEG;IACH,0BAaC;IASD;;;;OAIG;IACH,qBAcC;IATC,iCAjMgC,QAAY,wBAiMrB;IAuBzB,6CAIC;IARD,wCAEC;IAVD,sCAMC;IAyBD,+CAqDC;;CACF;2BA/ZyC,KAAK"}
|
|
@@ -4,10 +4,10 @@ export default initLayerMethod;
|
|
|
4
4
|
*
|
|
5
5
|
* @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
6
6
|
* @param {Boolean} multipleFeatures - Allow adding more than one feature at a time
|
|
7
|
-
* @returns {{EoxMap: import("@eox/map").EOxMap, OlMap: import("ol").Map}} - The map instances.
|
|
8
7
|
*/
|
|
9
8
|
declare function initLayerMethod(EoxDrawTool: import("../../main").EOxDrawTools, multipleFeatures: boolean): {
|
|
10
9
|
EoxMap: import("@eox/map").EOxMap;
|
|
11
10
|
OlMap: import("ol").Map;
|
|
11
|
+
reset: (EoxDrawTool: import("../../main").EOxDrawTools) => void;
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=init-layer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-layer.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/init-layer.js"],"names":[],"mappings":";AAIA
|
|
1
|
+
{"version":3,"file":"init-layer.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/init-layer.js"],"names":[],"mappings":";AAIA;;;;;GAKG;AACH,8CAHW,OAAO,YAAY,EAAE,YAAY;;;yBAuG/B,OAAO,YAAY,EAAE,YAAY;EAqB7C"}
|
|
@@ -7,5 +7,5 @@ export default deleteFeatureMethod;
|
|
|
7
7
|
*/
|
|
8
8
|
declare function deleteFeatureMethod(evt: Event & {
|
|
9
9
|
target: HTMLButtonElement;
|
|
10
|
-
}, EoxDrawToolList: import("../../components/list").EOxDrawToolsList): void;
|
|
10
|
+
}, EoxDrawToolList: import("../../components/list").EOxDrawToolsList, EoxDrawTool: any): void;
|
|
11
11
|
//# sourceMappingURL=delete-feature.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-feature.d.ts","sourceRoot":"","sources":["../../../../../src/methods/list/delete-feature.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,0CAHW,KAAK,GAAG;IAAE,MAAM,EAAE,iBAAiB,CAAA;CAAE,mBACrC,OAAO,uBAAuB,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"delete-feature.d.ts","sourceRoot":"","sources":["../../../../../src/methods/list/delete-feature.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,0CAHW,KAAK,GAAG;IAAE,MAAM,EAAE,iBAAiB,CAAA;CAAE,mBACrC,OAAO,uBAAuB,EAAE,gBAAgB,0BAkB1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.eox.d.ts","sourceRoot":"","sources":["../../../src/style.eox.js"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"style.eox.d.ts","sourceRoot":"","sources":["../../../src/style.eox.js"],"names":[],"mappings":"AAKA,8BAYE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default EOxCluster;
|
|
2
|
+
export type ClusterOptions = import("../../types").EOxClusterOptions;
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {import("../../types").EOxClusterOptions} ClusterOptions
|
|
5
|
+
*/
|
|
6
|
+
declare class EOxCluster extends Cluster<Feature<import("ol/geom").Geometry>> {
|
|
7
|
+
static defaultCreateCluster(point: any, features: any): Feature<any>;
|
|
8
|
+
/**
|
|
9
|
+
* @param {import("ol/Feature").FeatureLike} feature
|
|
10
|
+
* @returns {import("ol/geom/Point").default}
|
|
11
|
+
*/
|
|
12
|
+
static defaultGeometryFunction(feature: import("ol/Feature").FeatureLike): import("ol/geom/Point").default;
|
|
13
|
+
/**
|
|
14
|
+
* @param {ClusterOptions} options
|
|
15
|
+
*/
|
|
16
|
+
constructor(options?: ClusterOptions);
|
|
17
|
+
}
|
|
18
|
+
import { Feature } from "ol";
|
|
19
|
+
import { Cluster } from "ol/source";
|
|
20
|
+
//# sourceMappingURL=Cluster.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cluster.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/Cluster.js"],"names":[],"mappings":";6BAKa,OAAO,aAAa,EAAE,iBAAiB;AADpD;;GAEG;AAEH;IAYE,qEAqBC;IAED;;;OAGG;IACH,wCAHW,OAAO,YAAY,EAAE,WAAW,GAC9B,OAAO,eAAe,EAAE,OAAO,CAW3C;IA/CD;;OAEG;IACH,sBAFW,cAAc,EAQxB;CAuCF;wBAzDuB,IAAI;wBAEJ,WAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-new-feature.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/add-new-feature.js"],"names":[],"mappings":"AAQA;;;;;;;;;;GAUG;AACH,yCAPW,OAAO,qBAAqB,EAAE,SAAS,GAAG,OAAO,4BAA4B,EAAE,gBAAgB,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAC,OAAO,YAAY,EAAE,OAAO,CAAC,CAAA;CAAE,eACnJ,OAAO,UAAU,EAAE,MAAM,UACzB,OAAO,SAAS,EAAE,MAAM,WACxB,OAAO,oBACP,OAAO,YACP,OAAO,
|
|
1
|
+
{"version":3,"file":"add-new-feature.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/add-new-feature.js"],"names":[],"mappings":"AAQA;;;;;;;;;;GAUG;AACH,yCAPW,OAAO,qBAAqB,EAAE,SAAS,GAAG,OAAO,4BAA4B,EAAE,gBAAgB,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAC,OAAO,YAAY,EAAE,OAAO,CAAC,CAAA;CAAE,eACnJ,OAAO,UAAU,EAAE,MAAM,UACzB,OAAO,SAAS,EAAE,MAAM,WACxB,OAAO,oBACP,OAAO,YACP,OAAO,QAoEjB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adds a `cluster-explode` interaction to the map.
|
|
3
|
+
*
|
|
4
|
+
* @param {EOxMap} EOxMap - Instance of EOxMap class.
|
|
5
|
+
* @param {import("ol/layer/Vector").default<import("ol/source/Cluster").default>} clusterLayer - Layer to be clustered. Point or Polygon features.
|
|
6
|
+
* @param {ClusterExplodeOptions} options - Options for the interaction.
|
|
7
|
+
*
|
|
8
|
+
* @throws Will throw an error if an interaction with the specified ID already exists.
|
|
9
|
+
*/
|
|
10
|
+
export function addClusterExplode(EOxMap: EOxMap, clusterLayer: import("ol/layer/Vector").default<import("ol/source/Cluster").default>, options: ClusterExplodeOptions): void;
|
|
11
|
+
/**
|
|
12
|
+
* Class representing the EOxClusterInteraction.
|
|
13
|
+
* Handles the the zoom and the "spider-explosion" of clustered features of a cluster layer
|
|
14
|
+
*/
|
|
15
|
+
export class EOxClusterExplodeInteraction extends Interaction {
|
|
16
|
+
/**
|
|
17
|
+
* @param {EOxMap} eoxMap - Instance of the EOxMap class.
|
|
18
|
+
* @param {import("ol/layer/Vector").default<import("ol/source/Cluster").default>} clusterLayer - Vector Layer with Cluster Source for the interaction.
|
|
19
|
+
* @param {ClusterExplodeOptions} options - Options for the selection interaction.
|
|
20
|
+
*/
|
|
21
|
+
constructor(eoxMap: EOxMap, clusterLayer: import("ol/layer/Vector").default<import("ol/source/Cluster").default>, options: ClusterExplodeOptions);
|
|
22
|
+
clusterLayer: VectorLayer<import("ol/source/Cluster").default<Feature<import("ol/geom").Geometry>>, Feature<import("ol/geom").Geometry>>;
|
|
23
|
+
eoxMap: import("../main").EOxMap;
|
|
24
|
+
active: boolean;
|
|
25
|
+
handleEvent(evt: any): boolean;
|
|
26
|
+
setMap(map: any): void;
|
|
27
|
+
/**
|
|
28
|
+
* Removes the cluster interaction from the map.
|
|
29
|
+
*/
|
|
30
|
+
remove(): void;
|
|
31
|
+
#private;
|
|
32
|
+
}
|
|
33
|
+
export type EOxMap = import("../main").EOxMap;
|
|
34
|
+
export type ClusterExplodeOptions = import("../types").ClusterExplodeOptions;
|
|
35
|
+
import Interaction from "ol/interaction/Interaction";
|
|
36
|
+
import Feature from "ol/Feature";
|
|
37
|
+
import VectorLayer from "ol/layer/Vector";
|
|
38
|
+
//# sourceMappingURL=cluster-explode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cluster-explode.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/cluster-explode.js"],"names":[],"mappings":"AA0TA;;;;;;;;GAQG;AACH,0CANW,MAAM,gBACN,OAAO,iBAAiB,EAAE,OAAO,CAAC,OAAO,mBAAmB,EAAE,OAAO,CAAC,WACtE,qBAAqB,QAiB/B;AA/TD;;;GAGG;AACH;IACE;;;;OAIG;IACH,oBAJW,MAAM,gBACN,OAAO,iBAAiB,EAAE,OAAO,CAAC,OAAO,mBAAmB,EAAE,OAAO,CAAC,WACtE,qBAAqB,EAiC/B;IA7BC,yIAAgC;IAChC,iCAAoB;IAsBpB,gBAAyD;IA6B3D,+BA4EC;IAcD,uBAMC;IAiID;;OAEG;IACH,eAEC;;CACF;qBA/SY,OAAO,SAAS,EAAE,MAAM;oCACxB,OAAO,UAAU,EAAE,qBAAqB;wBAR7B,4BAA4B;oBAFhC,YAAY;wBAMR,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/generate.js"],"names":[],"mappings":"AAgEA;;;;;;;;GAQG;AACH,oCANW,OAAO,SAAS,EAAE,MAAM,SACxB,QAAQ,uBACR,OAAO,GACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/generate.js"],"names":[],"mappings":"AAgEA;;;;;;;;GAQG;AACH,oCANW,OAAO,SAAS,EAAE,MAAM,SACxB,QAAQ,uBACR,OAAO,GACL,QAAQ,CAkEpB;AA0FD;;;;;;;;;GASG;AACH,oCAPW,OAAO,SAAS,EAAE,MAAM,sBACxB,QAAQ,iBACR,OAAO,eAAe,EAAE,OAAO,GAC7B,OAAO,eAAe,EAAE,OAAO,CAwM3C;AASM,uCAJI,OAAO,SAAS,EAAE,MAAM,cACxB,KAAK,CAAC,QAAQ,CAAC,GACb,KAAK,CAAC,QAAQ,CAAC,CAO3B;qBA1aY,OAAO,SAAS,EAAE,MAAM;uBACxB,OAAO,UAAU,EAAE,QAAQ;uBAC3B,OAAO,WAAW,EAAE,QAAQ;0BAC5B,OAAO,UAAU,EAAE,WAAW;6BAC9B,OAAO,UAAU,EAAE,cAAc;0BACjC,OAAO,UAAU,EAAE,WAAW;4BAC9B,OAAO,UAAU,EAAE,aAAa;iCAChC,OAAO,UAAU,EAAE,kBAAkB;sCACrC,OAAO,UAAU,EAAE,uBAAuB"}
|
|
@@ -7,6 +7,7 @@ export { default as parseFeature } from "./parse-feature";
|
|
|
7
7
|
export { default as coordinatesRoughlyEquals } from "./coordinates-roughly-equals";
|
|
8
8
|
export { getCenterFromProperty } from "./center";
|
|
9
9
|
export { addDraw } from "./draw";
|
|
10
|
+
export { addClusterExplode } from "./cluster-explode";
|
|
10
11
|
export { generateTileGrid } from "./tile-grid";
|
|
11
12
|
export { transform, transformExtent } from "./transform";
|
|
12
13
|
export { addScrollInteractions, removeDefaultScrollInteractions } from "./interactions";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-feature.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/parse-feature.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse-feature.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/parse-feature.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,+CAHW,KAAK,CAAC,OAAO,YAAY,EAAE,OAAO,CAAC,OAS7C"}
|
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
* @param {import("ol/layer").Vector} vectorLayer - The vector layer to which the parsed features will be added.
|
|
7
7
|
* @param {import("../main").EOxMap} EOxMap - An instance of EOxMap, used here for context and potentially for further operations like event dispatching.
|
|
8
8
|
* @param {boolean} replaceFeatures - Optional boolean flag indicating whether to replace the existing features with the new ones.
|
|
9
|
-
* @param {Object} parseOptions - Optional object containing options for the parser.
|
|
10
9
|
* @param {boolean} animate - Optional boolean flag indicating whether to animate the map on feature change.
|
|
11
10
|
* @return {void}
|
|
12
11
|
*/
|
|
13
|
-
export default function parseTextToFeature(text: string, vectorLayer: import("ol/layer").Vector, EOxMap: import("../main").EOxMap, replaceFeatures?: boolean,
|
|
12
|
+
export default function parseTextToFeature(text: string, vectorLayer: import("ol/layer").Vector, EOxMap: import("../main").EOxMap, replaceFeatures?: boolean, animate?: boolean): void;
|
|
14
13
|
/**
|
|
15
14
|
* Function to check if a string is valid GeoJSON
|
|
16
15
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-text.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/parse-text.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse-text.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/parse-text.js"],"names":[],"mappings":"AA+BA;;;;;;;;;;GAUG;AACH,iDAPW,MAAM,eACN,OAAO,UAAU,EAAE,MAAM,UACzB,OAAO,SAAS,EAAE,MAAM,oBACxB,OAAO,YACP,OAAO,GACN,IAAI,CAqCf;AAmBD;;;;;GAKG;AACH,gCAHW,MAAM,GACJ,OAAO,CAWnB;AAED;;;;;GAKG;AACH,4BAHW,MAAM,GACJ,OAAO,CAKnB;AAED;;;;;GAKG;AACH,iCAHW,MAAM,GACJ,OAAO,CAWnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/select.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/select.js"],"names":[],"mappings":"AA8VA;;;;;;;;;GASG;AACH,kCAPW,MAAM,eACN,WAAW,WACX,aAAa,GAAG,WAAW,GACzB,oBAAoB,CAgBhC;AA3WD;;;;;;GAMG;AAEH;;;;GAIG;AACH;IACE;;;;OAIG;IACH,oBAJW,MAAM,eACN,WAAW,WACX,aAAa,EAiOvB;IA9NC,iCAAoB;IACpB,4CAA8B;IAC9B,0CAAsB;IACtB,gBAAwD;IACxD,eAAmC;IACnC,iBAAuD;IACvD,oCAAoC;IACpC,cADW,KAAK,CAAC,MAAM,GAAC,MAAM,CAAC,CACT;IAUlB,wBAAkD;IA6DtD,iDAEC;IAwBD;;;UAGM;IACN,6DAiDC;IAiBD,iCAGC;IAoBD;;;;OAIG;IACH,sCAkBC;IAIH;;;OAGG;IACH,kBAFW,OAAO,QAIjB;IAED;;;;OAIG;IACH,kCAHW,OAAO,GAAG,aAAa,GAAG,OAAO,WAAW,EAAE,MAAM,yBAU7D;IAEF;;;;OAIG;IACH,mBAHW,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,0BAkChC;IAED;;OAEG;IACH,eAMC;IAED;;;;;OAKG;IACH,eAJW,OAAO,GAAG,aAAa,GACrB,MAAM,GAAG,MAAM,CAoB3B;CACF;qBAlVY,OAAO,SAAS,EAAE,MAAM;uBACxB,OAAO,WAAW,EAAE,QAAQ;0BAC5B,OAAO,UAAU,EAAE,WAAW;4BAC9B,OAAO,UAAU,EAAE,aAAa;0BAChC,OAAO,UAAU,EAAE,WAAW;oBAXvB,YAAY;0BACN,mBAAmB"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* */
|
|
4
|
-
/**
|
|
5
|
-
* Generates a tile grid for the specified layer. If the layer's source type is "WMTS",
|
|
2
|
+
* Generates a tile grid for the specified source. If the source type is "WMTS",
|
|
6
3
|
* a `WMTSTileGrid` is generated. Otherwise, an `XYZ` tile grid is generated using the
|
|
7
4
|
* OpenLayers `createXYZ` function. Returns `undefined` if the layer's tile grid is not defined.
|
|
8
5
|
*
|
|
9
|
-
* @param {
|
|
6
|
+
* @param {import("../layers").EoxSource<any>} source - The source configuration object, containing the tile grid information.
|
|
10
7
|
* @returns {import("ol/tilegrid/WMTS").default | import("ol/tilegrid/TileGrid").default | undefined} - The generated tile grid or `undefined` if not applicable.
|
|
11
8
|
*/
|
|
12
|
-
export function generateTileGrid(
|
|
13
|
-
export type EoxLayer = import("../layers").EoxLayer;
|
|
9
|
+
export function generateTileGrid(source: import("../layers").EoxSource<any>): import("ol/tilegrid/WMTS").default | import("ol/tilegrid/TileGrid").default | undefined;
|
|
14
10
|
//# sourceMappingURL=tile-grid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tile-grid.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/tile-grid.js"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"tile-grid.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/tile-grid.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,yCAHW,OAAO,WAAW,EAAE,SAAS,CAAC,GAAG,CAAC,GAChC,OAAO,kBAAkB,EAAE,OAAO,GAAG,OAAO,sBAAsB,EAAE,OAAO,GAAG,SAAS,CA+CnG"}
|