@eox/drawtools 0.13.2 → 0.13.4
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 +986 -1013
- package/dist/eox-drawtools.umd.cjs +20 -20
- package/package.json +9 -7
- package/src/components/controller.js +4 -1
- package/src/components/list.js +3 -3
- package/src/helpers/generate-upload-events.js +5 -3
- package/src/main.js +16 -6
- package/src/methods/draw/handle-layer-id.js +1 -1
- package/src/methods/draw/init-layer.js +6 -7
- package/src/methods/draw/init-selection.js +6 -8
- package/types/drawtools/src/components/controller.d.ts.map +1 -1
- package/types/drawtools/src/components/list.d.ts +6 -6
- package/types/drawtools/src/components/list.d.ts.map +1 -1
- package/types/drawtools/src/enums/stories.d.ts.map +1 -1
- package/types/drawtools/src/helpers/features-to-geojson.d.ts +2 -1
- package/types/drawtools/src/helpers/features-to-geojson.d.ts.map +1 -1
- package/types/drawtools/src/helpers/generate-upload-events.d.ts +4 -4
- package/types/drawtools/src/helpers/generate-upload-events.d.ts.map +1 -1
- package/types/drawtools/src/main.d.ts +25 -9
- package/types/drawtools/src/main.d.ts.map +1 -1
- package/types/drawtools/src/methods/controller/update-button-states.d.ts.map +1 -1
- package/types/drawtools/src/methods/draw/emit-drawn-features.d.ts.map +1 -1
- package/types/drawtools/src/methods/draw/handle-layer-id.d.ts +2 -2
- package/types/drawtools/src/methods/draw/handle-layer-id.d.ts.map +1 -1
- package/types/drawtools/src/methods/draw/init-layer.d.ts +2 -2
- package/types/drawtools/src/methods/draw/init-layer.d.ts.map +1 -1
- package/types/drawtools/src/methods/draw/init-selection.d.ts +2 -2
- package/types/drawtools/src/methods/draw/init-selection.d.ts.map +1 -1
- package/types/map/src/components/tooltip.d.ts +1 -1
- package/types/map/src/controls/controls.d.ts +2 -2
- package/types/map/src/controls/controls.d.ts.map +1 -1
- package/types/map/src/controls/geo-location.d.ts +2 -2
- package/types/map/src/controls/geo-location.d.ts.map +1 -1
- package/types/map/src/controls/loading-indicator.d.ts +2 -2
- package/types/map/src/controls/loading-indicator.d.ts.map +1 -1
- package/types/map/src/helpers/add-new-feature.d.ts.map +1 -1
- package/types/map/src/helpers/center.d.ts.map +1 -1
- package/types/map/src/helpers/coordinates-roughly-equals.d.ts.map +1 -1
- package/types/map/src/helpers/draw.d.ts +6 -6
- package/types/map/src/helpers/draw.d.ts.map +1 -1
- package/types/map/src/helpers/generate.d.ts +9 -8
- package/types/map/src/helpers/generate.d.ts.map +1 -1
- package/types/map/src/helpers/layer.d.ts +5 -5
- package/types/map/src/helpers/layer.d.ts.map +1 -1
- package/types/map/src/helpers/parse-feature.d.ts.map +1 -1
- package/types/map/src/helpers/register-projection-from-code.d.ts.map +1 -1
- package/types/map/src/helpers/register-projection.d.ts.map +1 -1
- package/types/map/src/helpers/select.d.ts +11 -11
- package/types/map/src/helpers/select.d.ts.map +1 -1
- package/types/map/src/helpers/tile-grid.d.ts +2 -2
- package/types/map/src/helpers/tile-grid.d.ts.map +1 -1
- package/types/map/src/helpers/transform.d.ts +2 -2
- package/types/map/src/helpers/transform.d.ts.map +1 -1
- package/types/map/src/main.d.ts +26 -26
- package/types/map/src/main.d.ts.map +1 -1
- package/types/map/src/methods/map/add-update-layer.d.ts +2 -2
- package/types/map/src/methods/map/add-update-layer.d.ts.map +1 -1
- package/types/map/src/methods/map/getters.d.ts.map +1 -1
- package/types/map/src/methods/map/setters.d.ts +12 -12
- package/types/map/src/methods/map/setters.d.ts.map +1 -1
- package/types/map/{types.d.ts → src/types.d.ts} +13 -2
- package/types/map/src/types.d.ts.map +1 -0
- package/types/map/types.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eox/drawtools",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"devDependencies": {
|
|
6
|
+
"@eox/map": "^1.19.3",
|
|
6
7
|
"vite": "^6.0.3"
|
|
7
8
|
},
|
|
8
9
|
"engines": {
|
|
@@ -15,25 +16,26 @@
|
|
|
15
16
|
"src"
|
|
16
17
|
],
|
|
17
18
|
"main": "./src/main.js",
|
|
18
|
-
"types": "./types/
|
|
19
|
+
"types": "./types/main.d.ts",
|
|
19
20
|
"typesVersions": {
|
|
20
21
|
"*": {
|
|
21
22
|
".": [
|
|
22
|
-
"./types/
|
|
23
|
+
"./types/main.d.ts"
|
|
23
24
|
],
|
|
24
25
|
"src/*": [
|
|
25
|
-
"./types
|
|
26
|
+
"./types/*"
|
|
26
27
|
]
|
|
27
28
|
}
|
|
28
29
|
},
|
|
29
30
|
"scripts": {
|
|
30
|
-
"
|
|
31
|
+
"types:generate": "tsc --project tsconfig.build.json || true",
|
|
32
|
+
"prepack": "npm run types:generate",
|
|
31
33
|
"build": "vite build",
|
|
32
34
|
"watch": "vite build --watch"
|
|
33
35
|
},
|
|
34
36
|
"dependencies": {
|
|
35
|
-
"@eox/elements-utils": "^0.1.
|
|
37
|
+
"@eox/elements-utils": "^0.1.5",
|
|
36
38
|
"lit": "^3.2.0",
|
|
37
|
-
"ol": "^10.
|
|
39
|
+
"ol": "^10.4.0"
|
|
38
40
|
}
|
|
39
41
|
}
|
|
@@ -155,7 +155,10 @@ export class EOxDrawToolsController extends LitElement {
|
|
|
155
155
|
<button
|
|
156
156
|
data-cy="importBtn"
|
|
157
157
|
class="import icon"
|
|
158
|
-
@click=${() =>
|
|
158
|
+
@click=${() =>
|
|
159
|
+
/**@type {HTMLElement}*/ (
|
|
160
|
+
this.querySelector("#import-file")
|
|
161
|
+
).click()}
|
|
159
162
|
>
|
|
160
163
|
import
|
|
161
164
|
</button>
|
package/src/components/list.js
CHANGED
|
@@ -25,12 +25,12 @@ export class EOxDrawToolsList extends LitElement {
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* @type import("
|
|
28
|
+
* @type {import("@eox/map").EOxMap["selectInteractions"][string]}
|
|
29
29
|
*/
|
|
30
30
|
hoverInteraction;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
* @type import("
|
|
33
|
+
* @type {import("@eox/map").EOxMap["selectInteractions"][string]}
|
|
34
34
|
*/
|
|
35
35
|
clickInteraction;
|
|
36
36
|
|
|
@@ -48,7 +48,7 @@ export class EOxDrawToolsList extends LitElement {
|
|
|
48
48
|
super();
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* @type import("
|
|
51
|
+
* @type import("@eox/map").EOxMap
|
|
52
52
|
*/
|
|
53
53
|
this.eoxMap = null;
|
|
54
54
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* It configures the map to react visually to drag-and-drop actions and processes dropped files.
|
|
4
4
|
*
|
|
5
5
|
* @param {import("../main.js").EOxDrawTools} EOxDrawTool - The drawing tool instance.
|
|
6
|
-
* @param {import("@eox/map
|
|
6
|
+
* @param {import("@eox/map").EOxMap} EOxMap - The EOx Map instance.
|
|
7
7
|
*/
|
|
8
8
|
export function initMapDragDropImport(EOxDrawTool, EOxMap) {
|
|
9
9
|
// Helper function to prevent default behavior for drag and drop events
|
|
@@ -49,14 +49,16 @@ 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
|
|
52
|
+
* @param {DragEvent} 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
58
|
// Extract files from the event, supporting both drag-and-drop and file input sources
|
|
59
|
-
const files = e.dataTransfer
|
|
59
|
+
const files = e.dataTransfer
|
|
60
|
+
? e.dataTransfer.files
|
|
61
|
+
: /**@type {HTMLInputElement}*/ (e.target).files;
|
|
60
62
|
|
|
61
63
|
Array.from(files).forEach((file) => importFile(file, EOxDrawTool));
|
|
62
64
|
}
|
package/src/main.js
CHANGED
|
@@ -31,8 +31,9 @@ export class EOxDrawTools extends LitElement {
|
|
|
31
31
|
currentlyDrawing: { attribute: false, state: true, type: Boolean },
|
|
32
32
|
draw: { attribute: false, state: true },
|
|
33
33
|
drawLayer: { attribute: false, state: true },
|
|
34
|
-
layerId: { attribute: "layer-id", type: String },
|
|
35
34
|
drawnFeatures: { attribute: false, state: true, type: Array },
|
|
35
|
+
layerId: { attribute: "layer-id", type: String },
|
|
36
|
+
featureStyles: { attribute: false },
|
|
36
37
|
modify: { attribute: false, state: true },
|
|
37
38
|
multipleFeatures: { attribute: "multiple-features", type: Boolean },
|
|
38
39
|
importFeatures: { attribute: "import-features", type: Boolean },
|
|
@@ -47,7 +48,7 @@ export class EOxDrawTools extends LitElement {
|
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
/**
|
|
50
|
-
* @type import("
|
|
51
|
+
* @type import("@eox/map").EOxMap
|
|
51
52
|
*/
|
|
52
53
|
#eoxMap;
|
|
53
54
|
|
|
@@ -89,7 +90,7 @@ export class EOxDrawTools extends LitElement {
|
|
|
89
90
|
|
|
90
91
|
/**
|
|
91
92
|
* The current native OpenLayers `draw` interaction
|
|
92
|
-
* @type import("ol/interaction").Draw | import("@eox/map
|
|
93
|
+
* @type import("ol/interaction").Draw | import("@eox/map").EOxMap["selectInteractions"][string]
|
|
93
94
|
*/
|
|
94
95
|
this.draw = null;
|
|
95
96
|
|
|
@@ -111,6 +112,16 @@ export class EOxDrawTools extends LitElement {
|
|
|
111
112
|
*/
|
|
112
113
|
this.drawnFeatures = [];
|
|
113
114
|
|
|
115
|
+
/**
|
|
116
|
+
* Flat styles for the drawn/selected features
|
|
117
|
+
* @type {{
|
|
118
|
+
* layer?: import("ol/style/flat").FlatStyleLike
|
|
119
|
+
* hover?: import("ol/style/flat").FlatStyleLike
|
|
120
|
+
* click?: import("ol/style/flat").FlatStyleLike
|
|
121
|
+
* } | null}
|
|
122
|
+
*/
|
|
123
|
+
this.featureStyles = null;
|
|
124
|
+
|
|
114
125
|
/**
|
|
115
126
|
* The current native OpenLayers `modify` interaction
|
|
116
127
|
* @type import("ol/interaction").Modify
|
|
@@ -216,7 +227,7 @@ export class EOxDrawTools extends LitElement {
|
|
|
216
227
|
}
|
|
217
228
|
|
|
218
229
|
/**
|
|
219
|
-
* @param {DragEvent
|
|
230
|
+
* @param {DragEvent} evt - The event object from the file input interaction.
|
|
220
231
|
*/
|
|
221
232
|
handleFilesChange(evt) {
|
|
222
233
|
handleFiles(evt, this);
|
|
@@ -320,8 +331,7 @@ export class EOxDrawTools extends LitElement {
|
|
|
320
331
|
discard: () => this.discardDrawing(),
|
|
321
332
|
editor: (/** @type {{ target: { value: string; }; }} */ evt) =>
|
|
322
333
|
this.handleFeatureChange(evt.target.value, true),
|
|
323
|
-
import: (/** @type {DragEvent
|
|
324
|
-
this.handleFilesChange(evt),
|
|
334
|
+
import: (/** @type {DragEvent} */ evt) => this.handleFilesChange(evt),
|
|
325
335
|
}}
|
|
326
336
|
?select=${!!this.layerId}
|
|
327
337
|
.unstyled=${this.unstyled}
|
|
@@ -4,7 +4,7 @@ import { initSelection } from ".";
|
|
|
4
4
|
* handles switching between selection and drawing and updates of the selection layer
|
|
5
5
|
*
|
|
6
6
|
* @param {import("../../main").EOxDrawTools} EoxDrawTool
|
|
7
|
-
* @param {import("@eox/map
|
|
7
|
+
* @param {import("@eox/map").EOxMap} EoxMap
|
|
8
8
|
* @param {string} oldLayerId
|
|
9
9
|
* @param {string} updatedLayerId
|
|
10
10
|
* @returns
|
|
@@ -7,12 +7,12 @@ 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
|
|
10
|
+
* @returns {{EoxMap: import("@eox/map").EOxMap, OlMap: import("ol").Map}} - The map instances.
|
|
11
11
|
*/
|
|
12
12
|
const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
|
|
13
13
|
const mapQuery = getElement(EoxDrawTool.for);
|
|
14
14
|
|
|
15
|
-
const EoxMap = /** @type {import("@eox/map
|
|
15
|
+
const EoxMap = /** @type {import("@eox/map").EOxMap} */ (mapQuery);
|
|
16
16
|
|
|
17
17
|
const OlMap = EoxMap.map;
|
|
18
18
|
|
|
@@ -21,7 +21,6 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
|
|
|
21
21
|
type: "Vector",
|
|
22
22
|
properties: {
|
|
23
23
|
id: "drawLayer",
|
|
24
|
-
// @ts-expect-error TODO
|
|
25
24
|
layerControlHide: true,
|
|
26
25
|
isDrawingEnabled: false,
|
|
27
26
|
multipleFeatures: multipleFeatures,
|
|
@@ -29,6 +28,7 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
|
|
|
29
28
|
source: {
|
|
30
29
|
type: "Vector",
|
|
31
30
|
},
|
|
31
|
+
style: EoxDrawTool.featureStyles?.["layer"],
|
|
32
32
|
interactions: [
|
|
33
33
|
{
|
|
34
34
|
type: "draw",
|
|
@@ -38,15 +38,15 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
|
|
|
38
38
|
type: EoxDrawTool.type,
|
|
39
39
|
modify: EoxDrawTool.allowModify,
|
|
40
40
|
stopClick: true,
|
|
41
|
+
style: EoxDrawTool.featureStyles?.["layer"],
|
|
41
42
|
},
|
|
42
43
|
},
|
|
43
44
|
{
|
|
44
45
|
type: "select",
|
|
45
|
-
//@ts-expect-error TODO
|
|
46
46
|
options: {
|
|
47
47
|
id: "selectHover",
|
|
48
48
|
condition: "pointermove",
|
|
49
|
-
style: {
|
|
49
|
+
style: EoxDrawTool.featureStyles?.["hover"] || {
|
|
50
50
|
"fill-color": "rgba(51, 153, 204,0.5)",
|
|
51
51
|
"stroke-color": "#3399CC",
|
|
52
52
|
"stroke-width": 2.5,
|
|
@@ -56,12 +56,11 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
|
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
type: "select",
|
|
59
|
-
//@ts-expect-error TODO
|
|
60
59
|
options: {
|
|
61
60
|
id: "selectClick",
|
|
62
61
|
condition: "click",
|
|
63
62
|
panIn: true,
|
|
64
|
-
style: {
|
|
63
|
+
style: EoxDrawTool.featureStyles?.["click"] || {
|
|
65
64
|
"fill-color": "rgba(51, 153, 204,0.5)",
|
|
66
65
|
"stroke-color": "#3399CC",
|
|
67
66
|
"stroke-width": 2.5,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Initializes the selection interactions for the given layer ID to the DrawTool.
|
|
3
3
|
*
|
|
4
4
|
* @param {import('../../main').EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
5
|
-
* @param {import("@eox/map
|
|
5
|
+
* @param {import("@eox/map").EOxMap} EoxMap - The map instance.
|
|
6
6
|
*/
|
|
7
7
|
const initSelection = (EoxDrawTool, EoxMap, updatedLayerId) => {
|
|
8
8
|
if (!updatedLayerId || !EoxMap) {
|
|
@@ -12,7 +12,7 @@ const initSelection = (EoxDrawTool, EoxMap, updatedLayerId) => {
|
|
|
12
12
|
const selectionLayer =
|
|
13
13
|
JSON.parse(
|
|
14
14
|
JSON.stringify(
|
|
15
|
-
/** @type {import("
|
|
15
|
+
/** @type {import("@eox/map").EoxLayer} */ (
|
|
16
16
|
EoxMap.getLayerById(updatedLayerId).get("_jsonDefinition")
|
|
17
17
|
),
|
|
18
18
|
),
|
|
@@ -22,16 +22,15 @@ const initSelection = (EoxDrawTool, EoxMap, updatedLayerId) => {
|
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
/** @type {import("
|
|
25
|
+
/** @type {import("@eox/map/src/types").EOxInteraction} */
|
|
26
26
|
const hoverInteraction = {
|
|
27
27
|
type: "select",
|
|
28
28
|
active: false,
|
|
29
|
-
//@ts-expect-error TODO
|
|
30
29
|
options: {
|
|
31
30
|
id: "SelectLayerHoverInteraction",
|
|
32
31
|
condition: "pointermove",
|
|
33
32
|
active: false,
|
|
34
|
-
style: {
|
|
33
|
+
style: EoxDrawTool.featureStyles?.["hover"] || {
|
|
35
34
|
"fill-color": "rgba(0, 0, 0,0.0)",
|
|
36
35
|
"stroke-color": "#3399CC",
|
|
37
36
|
"stroke-width": 2.5,
|
|
@@ -39,17 +38,16 @@ const initSelection = (EoxDrawTool, EoxMap, updatedLayerId) => {
|
|
|
39
38
|
},
|
|
40
39
|
};
|
|
41
40
|
|
|
42
|
-
/** @type {import("
|
|
41
|
+
/** @type {import("@eox/map/src/types").EOxInteraction} */
|
|
43
42
|
const clickInteraction = {
|
|
44
43
|
type: "select",
|
|
45
|
-
//@ts-expect-error TODO
|
|
46
44
|
options: {
|
|
47
45
|
id: "SelectLayerClickInteraction",
|
|
48
46
|
condition: "click",
|
|
49
47
|
multi: EoxDrawTool.multipleFeatures,
|
|
50
48
|
modify: EoxDrawTool.allowModify,
|
|
51
49
|
active: false,
|
|
52
|
-
style: {
|
|
50
|
+
style: EoxDrawTool.featureStyles?.["click"] || {
|
|
53
51
|
"fill-color": "rgba(0, 0, 0,0.0)",
|
|
54
52
|
"stroke-color": "rgba(0, 0, 0,0.0)",
|
|
55
53
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../src/components/controller.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUE;IAeA;;OAEG;IACH,0BAA6B;IAE7B;;;;;OAKG;IACH,eAFS,
|
|
1
|
+
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../src/components/controller.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUE;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;;OAEG;IACH,kBAAqB;IAErB;;OAEG;IACH,gBAAmB;IAGrB;;OAEG;IACH,2BAKC;IAED;;OAEG;IACH,yBAEC;IAED,+CAoFC;;CACF;2BAjMyC,KAAK"}
|
|
@@ -35,13 +35,13 @@ export class EOxDrawToolsList extends LitElement {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
/**
|
|
38
|
-
* @type import("
|
|
38
|
+
* @type {import("@eox/map").EOxMap["selectInteractions"][string]}
|
|
39
39
|
*/
|
|
40
|
-
hoverInteraction:
|
|
40
|
+
hoverInteraction: import("@eox/map").EOxMap["selectInteractions"][string];
|
|
41
41
|
/**
|
|
42
|
-
* @type import("
|
|
42
|
+
* @type {import("@eox/map").EOxMap["selectInteractions"][string]}
|
|
43
43
|
*/
|
|
44
|
-
clickInteraction:
|
|
44
|
+
clickInteraction: import("@eox/map").EOxMap["selectInteractions"][string];
|
|
45
45
|
/**
|
|
46
46
|
* @type string | number
|
|
47
47
|
*/
|
|
@@ -51,9 +51,9 @@ export class EOxDrawToolsList extends LitElement {
|
|
|
51
51
|
*/
|
|
52
52
|
clickId: string | number;
|
|
53
53
|
/**
|
|
54
|
-
* @type import("
|
|
54
|
+
* @type import("@eox/map").EOxMap
|
|
55
55
|
*/
|
|
56
|
-
eoxMap:
|
|
56
|
+
eoxMap: import("@eox/map").EOxMap;
|
|
57
57
|
/**
|
|
58
58
|
* @type import("ol").Map
|
|
59
59
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/components/list.js"],"names":[],"mappings":"AAUA;;;;GAIG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQE;IAEF;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/components/list.js"],"names":[],"mappings":"AAUA;;;;GAIG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQE;IAEF;;OAEG;IACH,kBAFU,OAAO,UAAU,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAEhD;IAEjB;;OAEG;IACH,kBAFU,OAAO,UAAU,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAEhD;IAEjB;;OAEG;IACH,SAFS,MAAM,GAAG,MAAM,CAEhB;IAER;;OAEG;IACH,SAFS,MAAM,GAAG,MAAM,CAEhB;IAKN;;OAEG;IACH,QAFS,OAAO,UAAU,EAAE,MAAM,CAEhB;IAElB;;OAEG;IACH,OAFS,OAAO,IAAI,EAAE,GAAG,CAER;IAEjB;;;OAGG;IAEH,MAHS,OAAO,gBAAgB,EAAE,IAAI,CAGtB;IAEhB;;;OAGG;IAEH,WAHS,OAAO,UAAU,EAAE,MAAM,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,CAGzC;IAErB;;;;;OAKG;IACH,eAFS,KAAK,CAAC,OAAO,IAAI,EAAE,OAAO,CAAC,CAEb;IAEvB;;;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,+CAiDC;CACF;2BA1LyC,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../../src/enums/stories.js"],"names":[],"mappings":"AAAA;;;;;IAOE;AAEF;;;;;;;;;;;;;;;;;IAmBE;AAEF
|
|
1
|
+
{"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../../src/enums/stories.js"],"names":[],"mappings":"AAAA;;;;;IAOE;AAEF;;;;;;;;;;;;;;;;;IAmBE;AAEF,gCAAiC,8BAA8B,CAAC;AAEhE;;;IAKE"}
|
|
@@ -5,7 +5,8 @@ export default featuresToGeoJson;
|
|
|
5
5
|
* @param {import("ol").Feature[]} features
|
|
6
6
|
* @param {(Parameters<GeoJson["writeFeaturesObject"]>)["1"]} [options]
|
|
7
7
|
*/
|
|
8
|
-
declare function featuresToGeoJson(features: import("ol").Feature[], options?:
|
|
8
|
+
declare function featuresToGeoJson(features: import("ol").Feature[], options?: Parameters<GeoJson["writeFeaturesObject"]>["1"]): import("geojson").FeatureCollection<import("geojson").Geometry, {
|
|
9
9
|
[name: string]: any;
|
|
10
10
|
}>;
|
|
11
|
+
import GeoJson from "ol/format/GeoJSON";
|
|
11
12
|
//# sourceMappingURL=features-to-geojson.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features-to-geojson.d.ts","sourceRoot":"","sources":["../../../../src/helpers/features-to-geojson.js"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,6CAHW,OAAO,IAAI,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"features-to-geojson.d.ts","sourceRoot":"","sources":["../../../../src/helpers/features-to-geojson.js"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,6CAHW,OAAO,IAAI,EAAE,OAAO,EAAE,YACrB,UAAU,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAE,GAAG,CAAC;;GAK3D;oBAXmB,mBAAmB"}
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* It configures the map to react visually to drag-and-drop actions and processes dropped files.
|
|
4
4
|
*
|
|
5
5
|
* @param {import("../main.js").EOxDrawTools} EOxDrawTool - The drawing tool instance.
|
|
6
|
-
* @param {import("@eox/map
|
|
6
|
+
* @param {import("@eox/map").EOxMap} EOxMap - The EOx Map instance.
|
|
7
7
|
*/
|
|
8
|
-
export function initMapDragDropImport(EOxDrawTool: import("../main.js").EOxDrawTools, EOxMap:
|
|
8
|
+
export function initMapDragDropImport(EOxDrawTool: import("../main.js").EOxDrawTools, EOxMap: import("@eox/map").EOxMap): void;
|
|
9
9
|
/**
|
|
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
|
|
13
|
+
* @param {DragEvent} 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, EOxDrawTool: import("../main.js").EOxDrawTools): void;
|
|
17
17
|
//# 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,
|
|
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,eACT,OAAO,YAAY,EAAE,YAAY,QAW3C"}
|
|
@@ -25,14 +25,17 @@ export class EOxDrawTools extends LitElement {
|
|
|
25
25
|
attribute: boolean;
|
|
26
26
|
state: boolean;
|
|
27
27
|
};
|
|
28
|
+
drawnFeatures: {
|
|
29
|
+
attribute: boolean;
|
|
30
|
+
state: boolean;
|
|
31
|
+
type: ArrayConstructor;
|
|
32
|
+
};
|
|
28
33
|
layerId: {
|
|
29
34
|
attribute: string;
|
|
30
35
|
type: StringConstructor;
|
|
31
36
|
};
|
|
32
|
-
|
|
37
|
+
featureStyles: {
|
|
33
38
|
attribute: boolean;
|
|
34
|
-
state: boolean;
|
|
35
|
-
type: ArrayConstructor;
|
|
36
39
|
};
|
|
37
40
|
modify: {
|
|
38
41
|
attribute: boolean;
|
|
@@ -87,9 +90,9 @@ export class EOxDrawTools extends LitElement {
|
|
|
87
90
|
currentlyDrawing: boolean;
|
|
88
91
|
/**
|
|
89
92
|
* The current native OpenLayers `draw` interaction
|
|
90
|
-
* @type import("ol/interaction").Draw | import("@eox/map
|
|
93
|
+
* @type import("ol/interaction").Draw | import("@eox/map").EOxMap["selectInteractions"][string]
|
|
91
94
|
*/
|
|
92
|
-
draw: import("ol/interaction").Draw |
|
|
95
|
+
draw: import("ol/interaction").Draw | import("@eox/map").EOxMap["selectInteractions"][string];
|
|
93
96
|
/**
|
|
94
97
|
* The current native OpenLayers draw `layer` (initialized with a `zIndex` of 100)
|
|
95
98
|
* @type import("ol/layer/Vector").default
|
|
@@ -107,6 +110,19 @@ export class EOxDrawTools extends LitElement {
|
|
|
107
110
|
* @type Array<import("ol").Feature>
|
|
108
111
|
*/
|
|
109
112
|
drawnFeatures: Array<import("ol").Feature>;
|
|
113
|
+
/**
|
|
114
|
+
* Flat styles for the drawn/selected features
|
|
115
|
+
* @type {{
|
|
116
|
+
* layer?: import("ol/style/flat").FlatStyleLike
|
|
117
|
+
* hover?: import("ol/style/flat").FlatStyleLike
|
|
118
|
+
* click?: import("ol/style/flat").FlatStyleLike
|
|
119
|
+
* } | null}
|
|
120
|
+
*/
|
|
121
|
+
featureStyles: {
|
|
122
|
+
layer?: import("ol/style/flat").FlatStyleLike;
|
|
123
|
+
hover?: import("ol/style/flat").FlatStyleLike;
|
|
124
|
+
click?: import("ol/style/flat").FlatStyleLike;
|
|
125
|
+
} | null;
|
|
110
126
|
/**
|
|
111
127
|
* The current native OpenLayers `modify` interaction
|
|
112
128
|
* @type import("ol/interaction").Modify
|
|
@@ -173,9 +189,9 @@ export class EOxDrawTools extends LitElement {
|
|
|
173
189
|
*/
|
|
174
190
|
handleFeatureChange(text: string, replaceFeatures?: boolean): void;
|
|
175
191
|
/**
|
|
176
|
-
* @param {DragEvent
|
|
192
|
+
* @param {DragEvent} evt - The event object from the file input interaction.
|
|
177
193
|
*/
|
|
178
|
-
handleFilesChange(evt: DragEvent
|
|
194
|
+
handleFilesChange(evt: DragEvent): void;
|
|
179
195
|
/**
|
|
180
196
|
* @event onModifyEnd triggered when the modification of a shape is completed.
|
|
181
197
|
*/
|
|
@@ -194,8 +210,8 @@ export class EOxDrawTools extends LitElement {
|
|
|
194
210
|
* It then calls requestUpdate to trigger a re-render.
|
|
195
211
|
*/
|
|
196
212
|
firstUpdated(): void;
|
|
197
|
-
set eoxMap(value: import("
|
|
198
|
-
get eoxMap(): import("
|
|
213
|
+
set eoxMap(value: import("@eox/map").EOxMap);
|
|
214
|
+
get eoxMap(): import("@eox/map").EOxMap;
|
|
199
215
|
updated(changedProperties: any): void;
|
|
200
216
|
render(): import("lit-html").TemplateResult<1>;
|
|
201
217
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH;IAEE
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqBC;IAyBC;;OAEG;IACH,qBAAwB;IAExB;;;;;OAKG;IACH,KAFU,SAAO,WAAW,CAER;IAEpB;;OAEG;IACH,0BAA6B;IAE7B;;;OAGG;IACH,MAFS,OAAO,gBAAgB,EAAE,IAAI,GAAG,OAAO,UAAU,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAEhF;IAEhB;;;OAGG;IAEH,WAHS,OAAO,iBAAiB,EAAE,OAAO,CAGrB;IAqFvB;;;;OAIG;IACH,2BAGC;IAED,sBAEC;IA1FC;;;OAGG;IACH,eAFS,KAAK,CAAC,OAAO,IAAI,EAAE,OAAO,CAAC,CAEb;IAEvB;;;;;;;OAOG;IACH,eANU;QACP,KAAK,CAAC,EAAE,OAAO,eAAe,EAAE,aAAa,CAAA;QAC7C,KAAK,CAAC,EAAE,OAAO,eAAe,EAAE,aAAa,CAAA;QAC7C,KAAK,CAAC,EAAE,OAAO,eAAe,EAAE,aAAa,CAAA;KAC5C,GAAG,IAAI,CAEc;IAEzB;;;OAGG;IACH,QAFS,OAAO,gBAAgB,EAAE,MAAM,CAEtB;IAElB;;OAEG;IACH,0BAA6B;IAE7B;;OAEG;IACH,wBAA2B;IAE3B;;OAEG;IACH,oBAAuB;IAEvB;;OAEG;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;IAiBvB;;OAEG;IACH,qBAEC;IAED;;;OAGG;IACH,uBAEC;IAED;;;OAGG;IACH,0BAHW,MAAM,oBACN,OAAO,QASjB;IAED;;OAEG;IACH,uBAFW,SAAS,QAInB;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,sBAMC;IAED;;OAEG;IACH,0BAaC;IASD;;;;OAIG;IACH,qBAUC;IAcD,6CAIC;IARD,wCAEC;IAVD,sCAMC;IAiBD,+CA4CC;;CACF;2BA3WyC,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-button-states.d.ts","sourceRoot":"","sources":["../../../../../src/methods/controller/update-button-states.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,iEAHW,OAAO,6BAA6B,EAAE,sBAAsB,GAC1D;IAAE,YAAY,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"update-button-states.d.ts","sourceRoot":"","sources":["../../../../../src/methods/controller/update-button-states.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,iEAHW,OAAO,6BAA6B,EAAE,sBAAsB,GAC1D;IAAE,YAAY,EAAE,OAAO,GAAG,iCAAqB,CAAC;IAAC,eAAe,EAAE,OAAO,GAAG,iCAAqB,CAAA;CAAE,CAgB/G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emit-drawn-features.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/emit-drawn-features.js"],"names":[],"mappings":";;;;yBAGa,OAAO,IAAI,EAAE,OAAO,EAAE,GAC9B,
|
|
1
|
+
{"version":3,"file":"emit-drawn-features.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/emit-drawn-features.js"],"names":[],"mappings":";;;;yBAGa,OAAO,IAAI,EAAE,OAAO,EAAE,GAC9B,UAAU,CAAC,OAAO,iBAAiB,CAAC,GACpC,UAAU,CAAC,OAAO,aAAa,CAAC;AAHrC;;;;GAIG;AAEH;;;;;GAKG;AACH,sDAHW,OAAO,YAAY,EAAE,YAAY,mBACjC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,QA+CpC;kCA3DgD,eAAe;8BAAf,eAAe"}
|
|
@@ -3,10 +3,10 @@ export default handleLayerId;
|
|
|
3
3
|
* handles switching between selection and drawing and updates of the selection layer
|
|
4
4
|
*
|
|
5
5
|
* @param {import("../../main").EOxDrawTools} EoxDrawTool
|
|
6
|
-
* @param {import("@eox/map
|
|
6
|
+
* @param {import("@eox/map").EOxMap} EoxMap
|
|
7
7
|
* @param {string} oldLayerId
|
|
8
8
|
* @param {string} updatedLayerId
|
|
9
9
|
* @returns
|
|
10
10
|
*/
|
|
11
|
-
declare function handleLayerId(EoxDrawTool: import("../../main").EOxDrawTools, EoxMap:
|
|
11
|
+
declare function handleLayerId(EoxDrawTool: import("../../main").EOxDrawTools, EoxMap: import("@eox/map").EOxMap, updatedLayerId: string, oldLayerId: string): void;
|
|
12
12
|
//# sourceMappingURL=handle-layer-id.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle-layer-id.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/handle-layer-id.js"],"names":[],"mappings":";AAEA;;;;;;;;GAQG;AACH,4CANW,OAAO,YAAY,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"handle-layer-id.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/handle-layer-id.js"],"names":[],"mappings":";AAEA;;;;;;;;GAQG;AACH,4CANW,OAAO,YAAY,EAAE,YAAY,UACjC,OAAO,UAAU,EAAE,MAAM,kBAEzB,MAAM,cADN,MAAM,QAuBhB"}
|
|
@@ -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
|
|
7
|
+
* @returns {{EoxMap: import("@eox/map").EOxMap, OlMap: import("ol").Map}} - The map instances.
|
|
8
8
|
*/
|
|
9
9
|
declare function initLayerMethod(EoxDrawTool: import("../../main").EOxDrawTools, multipleFeatures: boolean): {
|
|
10
|
-
EoxMap:
|
|
10
|
+
EoxMap: import("@eox/map").EOxMap;
|
|
11
11
|
OlMap: import("ol").Map;
|
|
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;;;;;;GAMG;AACH,8CAJW,OAAO,YAAY,EAAE,YAAY,8BAE/B;IAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"init-layer.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/init-layer.js"],"names":[],"mappings":";AAIA;;;;;;GAMG;AACH,8CAJW,OAAO,YAAY,EAAE,YAAY,8BAE/B;IAAC,MAAM,EAAE,OAAO,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,IAAI,EAAE,GAAG,CAAA;CAAC,CA+ExE"}
|
|
@@ -3,7 +3,7 @@ export default initSelection;
|
|
|
3
3
|
* Initializes the selection interactions for the given layer ID to the DrawTool.
|
|
4
4
|
*
|
|
5
5
|
* @param {import('../../main').EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
6
|
-
* @param {import("@eox/map
|
|
6
|
+
* @param {import("@eox/map").EOxMap} EoxMap - The map instance.
|
|
7
7
|
*/
|
|
8
|
-
declare function initSelection(EoxDrawTool: import(
|
|
8
|
+
declare function initSelection(EoxDrawTool: import("../../main").EOxDrawTools, EoxMap: import("@eox/map").EOxMap, updatedLayerId: any): void;
|
|
9
9
|
//# sourceMappingURL=init-selection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-selection.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/init-selection.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,4CAHW,OAAO,YAAY,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"init-selection.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/init-selection.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,4CAHW,OAAO,YAAY,EAAE,YAAY,UACjC,OAAO,UAAU,EAAE,MAAM,6BA8DnC"}
|
|
@@ -29,7 +29,7 @@ export class EOxMapTooltip extends LitElement {
|
|
|
29
29
|
* @param {import("ol/Feature").default | import("ol/render/Feature").default} _feature
|
|
30
30
|
*/
|
|
31
31
|
propertyTransform: Function;
|
|
32
|
-
render():
|
|
32
|
+
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
33
33
|
}
|
|
34
34
|
import { LitElement } from "lit";
|
|
35
35
|
import { nothing } from "lit";
|
|
@@ -22,6 +22,6 @@ export function addControl(EOxMap: import("../main").EOxMap, type: ControlType,
|
|
|
22
22
|
* @param {import("../main").EOxMap} EOxMap - The map instance.
|
|
23
23
|
*/
|
|
24
24
|
export function addInitialControls(EOxMap: import("../main").EOxMap): void;
|
|
25
|
-
export type ControlDictionary = import("
|
|
26
|
-
export type ControlType = import("
|
|
25
|
+
export type ControlDictionary = import("../types").ControlDictionary;
|
|
26
|
+
export type ControlType = import("../types").ControlType;
|
|
27
27
|
//# sourceMappingURL=controls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/controls.js"],"names":[],"mappings":"AAgBA;;;;;;;;GAQG;AACH,2CALW,OAAO,SAAS,EAAE,MAAM,oBACxB,iBAAiB,QACjB,WAAW,WACX,MAAM,QAiBhB;AAED;;;;;;GAMG;AACH,mCAJW,OAAO,SAAS,EAAE,MAAM,QACxB,WAAW,WACX,MAAM,
|
|
1
|
+
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/controls.js"],"names":[],"mappings":"AAgBA;;;;;;;;GAQG;AACH,2CALW,OAAO,SAAS,EAAE,MAAM,oBACxB,iBAAiB,QACjB,WAAW,WACX,MAAM,QAiBhB;AAED;;;;;;GAMG;AACH,mCAJW,OAAO,SAAS,EAAE,MAAM,QACxB,WAAW,WACX,MAAM,QAiBhB;AAED;;;;GAIG;AACH,2CAFW,OAAO,SAAS,EAAE,MAAM,QAsClC;gCArGY,OAAO,UAAU,EAAE,iBAAiB;0BACpC,OAAO,UAAU,EAAE,WAAW"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @typedef {import("
|
|
2
|
+
* @typedef {import("../types").GeolocationOptions} GeolocationOptions
|
|
3
3
|
*/
|
|
4
4
|
export default class GeolocationControl extends Control {
|
|
5
5
|
/**
|
|
@@ -31,7 +31,7 @@ export default class GeolocationControl extends Control {
|
|
|
31
31
|
*/
|
|
32
32
|
centerOnPosition(): Promise<void>;
|
|
33
33
|
}
|
|
34
|
-
export type GeolocationOptions = import("
|
|
34
|
+
export type GeolocationOptions = import("../types").GeolocationOptions;
|
|
35
35
|
import { Control } from "ol/control";
|
|
36
36
|
import Point from "ol/geom/Point";
|
|
37
37
|
import Feature from "ol/Feature";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geo-location.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/geo-location.js"],"names":[],"mappings":"AAQA;;GAEG;AAEH;IACE;;OAEG;IACH,0BAFW,kBAAkB,EA4E5B;IAvCC,0BAA+C;IAC/C,uBAAyC;IACzC,wBAA2C;IAC3C,uBAAyC;IAGzC,iCAGE;IAGF,sCAEE;IAIA,sDAAqC;IAYvC,kEAAuD;IA6BzD;;;OAGG;IACH,gCA4CC;IAxCK,0BAIE;IAsCR;;;;OAIG;IACH,cAFa,WAAW,CAIvB;IAED;;OAEG;IACH,kCAUC;CACF;iCA9KY,OAAO,
|
|
1
|
+
{"version":3,"file":"geo-location.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/geo-location.js"],"names":[],"mappings":"AAQA;;GAEG;AAEH;IACE;;OAEG;IACH,0BAFW,kBAAkB,EA4E5B;IAvCC,0BAA+C;IAC/C,uBAAyC;IACzC,wBAA2C;IAC3C,uBAAyC;IAGzC,iCAGE;IAGF,sCAEE;IAIA,sDAAqC;IAYvC,kEAAuD;IA6BzD;;;OAGG;IACH,gCA4CC;IAxCK,0BAIE;IAsCR;;;;OAIG;IACH,cAFa,WAAW,CAIvB;IAED;;OAEG;IACH,kCAUC;CACF;iCA9KY,OAAO,UAAU,EAAE,kBAAkB;wBAT1B,YAAY;kBAGlB,eAAe;oBAFb,YAAY;uCAGO,WAAW;sCACZ,UAAU;wBAHxB,gBAAgB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @typedef {import("
|
|
2
|
+
* @typedef {import("../types").LoadingIndicatorOptions} LoadingIndicatorOptions
|
|
3
3
|
*/
|
|
4
4
|
export default class LoadingIndicatorControl extends Control {
|
|
5
5
|
/**
|
|
@@ -15,6 +15,6 @@ export default class LoadingIndicatorControl extends Control {
|
|
|
15
15
|
*/
|
|
16
16
|
getElement(): HTMLElement;
|
|
17
17
|
}
|
|
18
|
-
export type LoadingIndicatorOptions = import("
|
|
18
|
+
export type LoadingIndicatorOptions = import("../types").LoadingIndicatorOptions;
|
|
19
19
|
import { Control } from "ol/control.js";
|
|
20
20
|
//# sourceMappingURL=loading-indicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading-indicator.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/loading-indicator.js"],"names":[],"mappings":"AAEA;;GAEG;AAEH;IACE;;;;OAIG;IACH,0BAFW,uBAAuB,EAsCjC;IAuBD;;;;OAIG;IACH,cAFa,WAAW,CAIvB;CACF;sCA5EY,OAAO,
|
|
1
|
+
{"version":3,"file":"loading-indicator.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/loading-indicator.js"],"names":[],"mappings":"AAEA;;GAEG;AAEH;IACE;;;;OAIG;IACH,0BAFW,uBAAuB,EAsCjC;IAuBD;;;;OAIG;IACH,cAFa,WAAW,CAIvB;CACF;sCA5EY,OAAO,UAAU,EAAE,uBAAuB;wBAH/B,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-new-feature.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/add-new-feature.js"],"names":[],"mappings":"AAOA;;;;;;;;;GASG;AACH,yCANW,OAAO,qBAAqB,EAAE,SAAS,GAAG,OAAO,4BAA4B,EAAE,gBAAgB,GAAG;IAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"add-new-feature.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/add-new-feature.js"],"names":[],"mappings":"AAOA;;;;;;;;;GASG;AACH,yCANW,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,QAgEjB"}
|