@eox/drawtools 0.14.2 → 0.15.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.
Files changed (46) hide show
  1. package/dist/eox-drawtools.js +880 -844
  2. package/dist/eox-drawtools.umd.cjs +31 -32
  3. package/package.json +1 -1
  4. package/src/components/list.js +11 -3
  5. package/src/main.js +7 -0
  6. package/src/methods/draw/init-selection.js +40 -11
  7. package/src/methods/draw/on-draw-end.js +3 -0
  8. package/types/drawtools/src/components/list.d.ts +9 -0
  9. package/types/drawtools/src/components/list.d.ts.map +1 -1
  10. package/types/drawtools/src/main.d.ts +8 -0
  11. package/types/drawtools/src/main.d.ts.map +1 -1
  12. package/types/drawtools/src/methods/draw/init-selection.d.ts +2 -1
  13. package/types/drawtools/src/methods/draw/init-selection.d.ts.map +1 -1
  14. package/types/drawtools/src/methods/draw/on-draw-end.d.ts.map +1 -1
  15. package/types/map/src/components/compare.d.ts +2 -2
  16. package/types/map/src/components/compare.d.ts.map +1 -1
  17. package/types/map/src/components/tooltip.d.ts +7 -2
  18. package/types/map/src/components/tooltip.d.ts.map +1 -1
  19. package/types/map/src/controls/controls.d.ts +0 -6
  20. package/types/map/src/controls/controls.d.ts.map +1 -1
  21. package/types/map/src/controls/geo-location.d.ts +3 -3
  22. package/types/map/src/controls/geo-location.d.ts.map +1 -1
  23. package/types/map/src/controls/loading-indicator.d.ts +1 -1
  24. package/types/map/src/controls/loading-indicator.d.ts.map +1 -1
  25. package/types/map/src/custom/sources/FlatGeoBuf.d.ts +27 -0
  26. package/types/map/src/custom/sources/FlatGeoBuf.d.ts.map +1 -0
  27. package/types/map/src/custom/sources/WMTSCapabilities.d.ts +35 -0
  28. package/types/map/src/custom/sources/WMTSCapabilities.d.ts.map +1 -0
  29. package/types/map/src/helpers/add-new-feature.d.ts.map +1 -1
  30. package/types/map/src/helpers/generate.d.ts +5 -4
  31. package/types/map/src/helpers/generate.d.ts.map +1 -1
  32. package/types/map/src/helpers/interactions.d.ts.map +1 -1
  33. package/types/map/src/helpers/select.d.ts +5 -5
  34. package/types/map/src/helpers/select.d.ts.map +1 -1
  35. package/types/map/src/helpers/tile-grid.d.ts +2 -2
  36. package/types/map/src/helpers/tile-grid.d.ts.map +1 -1
  37. package/types/map/src/layers.d.ts +116 -0
  38. package/types/map/src/layers.d.ts.map +1 -0
  39. package/types/map/src/main.d.ts +6 -6
  40. package/types/map/src/main.d.ts.map +1 -1
  41. package/types/map/src/methods/map/add-update-layer.d.ts +2 -2
  42. package/types/map/src/methods/map/add-update-layer.d.ts.map +1 -1
  43. package/types/map/src/methods/map/setters.d.ts +2 -2
  44. package/types/map/src/methods/map/setters.d.ts.map +1 -1
  45. package/types/map/src/types.d.ts +28 -38
  46. package/types/map/src/types.d.ts.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eox/drawtools",
3
- "version": "0.14.2",
3
+ "version": "0.15.0",
4
4
  "type": "module",
5
5
  "devDependencies": {
6
6
  "@eox/map": "^1.19.3",
@@ -22,6 +22,7 @@ export class EOxDrawToolsList extends LitElement {
22
22
  drawLayer: { attribute: false, state: true },
23
23
  drawnFeatures: { attribute: false, state: true, type: Array },
24
24
  featureName: { attribute: false, state: true, type: String },
25
+ featureNameKey: { attribute: false, state: true, type: String },
25
26
  modify: { attribute: false, state: true },
26
27
  unstyled: { type: Boolean },
27
28
  };
@@ -91,6 +92,11 @@ export class EOxDrawToolsList extends LitElement {
91
92
  */
92
93
  this.featureName = "Feature";
93
94
 
95
+ /**
96
+ * The key of the property to display in the feature list.
97
+ */
98
+ this.featureNameKey = null;
99
+
94
100
  /**
95
101
  * The current native OpenLayers `modify` interaction
96
102
  * @type import("ol/interaction").Modify
@@ -168,6 +174,10 @@ export class EOxDrawToolsList extends LitElement {
168
174
  const isFeatureClicked = this.clickId === featureId;
169
175
  const isSelected = isFeatureHovered || isFeatureClicked;
170
176
  const selectionClass = isSelected ? "selected" : nothing;
177
+ const propertyName = feature.get(this.featureNameKey);
178
+ const title = propertyName
179
+ ? propertyName
180
+ : `${this.featureName} ${featureNumber}`;
171
181
 
172
182
  return keyed(
173
183
  featureNumber,
@@ -182,9 +192,7 @@ export class EOxDrawToolsList extends LitElement {
182
192
  @click="${() =>
183
193
  this._handleFeatureSelectAndDeselect(feature)}"
184
194
  >
185
- <span class="title"
186
- >${this.featureName} ${featureNumber}</span
187
- >
195
+ <span class="title">${title}</span>
188
196
  <button
189
197
  index=${i}
190
198
  data-cy="deleteFeatureBtn"
package/src/main.js CHANGED
@@ -34,6 +34,7 @@ export class EOxDrawTools extends LitElement {
34
34
  drawLayer: { attribute: false, state: true },
35
35
  drawnFeatures: { attribute: false, state: true, type: Array },
36
36
  featureName: { attribute: "feature-name", type: String },
37
+ featureNameKey: { attribute: "feature-name-key", type: String },
37
38
  layerId: { attribute: "layer-id", type: String },
38
39
  featureStyles: { attribute: false },
39
40
  modify: { attribute: false, state: true },
@@ -123,6 +124,11 @@ export class EOxDrawTools extends LitElement {
123
124
  */
124
125
  this.featureName = "Feature";
125
126
 
127
+ /**
128
+ * The key of the property to display in the feature list.
129
+ */
130
+ this.featureNameKey = null;
131
+
126
132
  /**
127
133
  * Flat styles for the drawn/selected features
128
134
  * @type {{
@@ -383,6 +389,7 @@ export class EOxDrawTools extends LitElement {
383
389
  .drawLayer=${this.drawLayer}
384
390
  .drawnFeatures=${this.drawnFeatures}
385
391
  .featureName=${this.featureName}
392
+ .featureNameKey=${this.featureNameKey}
386
393
  .modify=${this.modify}
387
394
  .unstyled=${this.unstyled}
388
395
  @changed=${() => {
@@ -3,22 +3,22 @@
3
3
  *
4
4
  * @param {import('../../main').EOxDrawTools} EoxDrawTool - The drawing tool instance.
5
5
  * @param {import("@eox/map").EOxMap} EoxMap - The map instance.
6
+ * @param {string} layerId - The ID of the layer to initialize selection for.
6
7
  */
7
- const initSelection = (EoxDrawTool, EoxMap, updatedLayerId) => {
8
- if (!updatedLayerId || !EoxMap) {
8
+ const initSelection = (EoxDrawTool, EoxMap, layerId) => {
9
+ if (!layerId || !EoxMap) {
9
10
  return;
10
11
  }
11
12
 
12
- const selectionLayer =
13
- JSON.parse(
14
- JSON.stringify(
15
- /** @type {import("@eox/map").EoxLayer} */ (
16
- EoxMap.getLayerById(updatedLayerId).get("_jsonDefinition")
17
- ),
18
- ),
19
- ) || null;
13
+ const olLayer = EoxMap.getLayerById(layerId);
14
+ const selectionLayer = olLayer
15
+ ? /** @type {import("@eox/map").EoxLayer} */ (
16
+ JSON.parse(JSON.stringify(olLayer.get("_jsonDefinition")))
17
+ )
18
+ : null;
19
+
20
20
  if (!selectionLayer) {
21
- console.error(`Layer with id ${updatedLayerId} not found`);
21
+ console.error(`Layer with id ${layerId} not found`);
22
22
  return;
23
23
  }
24
24
 
@@ -57,6 +57,8 @@ const initSelection = (EoxDrawTool, EoxMap, updatedLayerId) => {
57
57
  selectionLayer.interactions = [hoverInteraction, clickInteraction];
58
58
 
59
59
  EoxMap.addOrUpdateLayer(selectionLayer);
60
+ // replace the layer with the new interactions without triggering the map to update
61
+ replaceLayer(EoxMap.layers, layerId, [selectionLayer]);
60
62
 
61
63
  const oldDrawInteraction = EoxDrawTool.draw;
62
64
  EoxDrawTool.draw = EoxMap.selectInteractions["SelectLayerClickInteraction"];
@@ -67,3 +69,30 @@ const initSelection = (EoxDrawTool, EoxMap, updatedLayerId) => {
67
69
  };
68
70
 
69
71
  export default initSelection;
72
+
73
+ /**
74
+ * Removes the layer with the id provided and injects an array of layers in its position
75
+ * @param {import('@eox/map').EoxLayer[]} currentLayers
76
+ * @param {string} oldLayer - id of the layer to be replaced
77
+ * @param {import('@eox/map').EoxLayer[]} newLayers - array of layers to replace the old layer
78
+ */
79
+ function replaceLayer(currentLayers, oldLayer, newLayers) {
80
+ const oldLayerIdx = currentLayers.findIndex(
81
+ (l) => l.properties.id === oldLayer,
82
+ );
83
+
84
+ if (oldLayerIdx !== -1) {
85
+ currentLayers.splice(oldLayerIdx, 1, ...newLayers);
86
+ return currentLayers;
87
+ }
88
+
89
+ for (const l of currentLayers) {
90
+ if (l.type === "Group") {
91
+ const updatedGroupLyrs = replaceLayer(l.layers, oldLayer, newLayers);
92
+ if (updatedGroupLyrs?.length) {
93
+ l.layers = updatedGroupLyrs;
94
+ }
95
+ }
96
+ }
97
+ return currentLayers;
98
+ }
@@ -22,6 +22,9 @@ const onDrawEndMethod = (EoxDrawTool) => {
22
22
  const features = EoxDrawTool.drawLayer.getSource().getFeatures();
23
23
  const latest = features.at(-1);
24
24
  EoxDrawTool.drawLayer.getSource().clear();
25
+ if (!latest) {
26
+ return;
27
+ }
25
28
  EoxDrawTool.drawLayer.getSource().addFeature(latest);
26
29
  EoxDrawTool.drawnFeatures = [latest];
27
30
  }
@@ -35,6 +35,11 @@ export class EOxDrawToolsList extends LitElement {
35
35
  state: boolean;
36
36
  type: StringConstructor;
37
37
  };
38
+ featureNameKey: {
39
+ attribute: boolean;
40
+ state: boolean;
41
+ type: StringConstructor;
42
+ };
38
43
  modify: {
39
44
  attribute: boolean;
40
45
  state: boolean;
@@ -92,6 +97,10 @@ export class EOxDrawToolsList extends LitElement {
92
97
  * Default display name for features
93
98
  */
94
99
  featureName: string;
100
+ /**
101
+ * The key of the property to display in the feature list.
102
+ */
103
+ featureNameKey: any;
95
104
  /**
96
105
  * The current native OpenLayers `modify` interaction
97
106
  * @type import("ol/interaction").Modify
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/components/list.js"],"names":[],"mappings":"AAUA;;;;GAIG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUE;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,cAFS,OAAO,SAAS,EAAE,YAAY,CAEf;IAExB;;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;;OAEG;IACH,oBAA4B;IAE5B;;;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,+CAsDC;CACF;2BA3MyC,KAAK"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/components/list.js"],"names":[],"mappings":"AAUA;;;;GAIG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWE;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,cAFS,OAAO,SAAS,EAAE,YAAY,CAEf;IAExB;;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;;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,+CAwDC;CACF;2BAnNyC,KAAK"}
@@ -37,6 +37,10 @@ export class EOxDrawTools extends LitElement {
37
37
  attribute: string;
38
38
  type: StringConstructor;
39
39
  };
40
+ featureNameKey: {
41
+ attribute: string;
42
+ type: StringConstructor;
43
+ };
40
44
  layerId: {
41
45
  attribute: string;
42
46
  type: StringConstructor;
@@ -120,6 +124,10 @@ export class EOxDrawTools extends LitElement {
120
124
  * The display name of drawn features, shown e.g. in the feature list.
121
125
  */
122
126
  featureName: string;
127
+ /**
128
+ * The key of the property to display in the feature list.
129
+ */
130
+ featureNameKey: any;
123
131
  /**
124
132
  * Flat styles for the drawn/selected features
125
133
  * @type {{
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuBC;IA6BC;;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;IAwGvB;;;OAGG;IACH,2BAGC;IAED,sBAEC;IA5GC;;;OAGG;IACH,eAFS,KAAK,CAAC,OAAO,IAAI,EAAE,OAAO,CAAC,CAEb;IAEvB;;OAEG;IACH,oBAA4B;IAE5B;;;;;;;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;IAGvB;;;;OAIG;IACH,+BAGC;IAED,0BAEC;IAeD;;OAEG;IACH,qBAEC;IAED;;;OAGG;IACH,uBAEC;IAED;;;;OAIG;IACH,0BAJW,MAAM,oBACN,OAAO,YACP,OAAO,QAcjB;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,+CA8CC;;CACF;2BA3YyC,KAAK"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwBC;IA6BC;;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;IA6GvB;;;OAGG;IACH,2BAGC;IAED,sBAEC;IAjHC;;;OAGG;IACH,eAFS,KAAK,CAAC,OAAO,IAAI,EAAE,OAAO,CAAC,CAEb;IAEvB;;OAEG;IACH,oBAA4B;IAE5B;;OAEG;IACH,oBAA0B;IAE1B;;;;;;;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;IAGvB;;;;OAIG;IACH,+BAGC;IAED,0BAEC;IAeD;;OAEG;IACH,qBAEC;IAED;;;OAGG;IACH,uBAEC;IAED;;;;OAIG;IACH,0BAJW,MAAM,oBACN,OAAO,YACP,OAAO,QAcjB;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,+CA+CC;;CACF;2BAlZyC,KAAK"}
@@ -4,6 +4,7 @@ export default initSelection;
4
4
  *
5
5
  * @param {import('../../main').EOxDrawTools} EoxDrawTool - The drawing tool instance.
6
6
  * @param {import("@eox/map").EOxMap} EoxMap - The map instance.
7
+ * @param {string} layerId - The ID of the layer to initialize selection for.
7
8
  */
8
- declare function initSelection(EoxDrawTool: import("../../main").EOxDrawTools, EoxMap: import("@eox/map").EOxMap, updatedLayerId: any): void;
9
+ declare function initSelection(EoxDrawTool: import("../../main").EOxDrawTools, EoxMap: import("@eox/map").EOxMap, layerId: string): void;
9
10
  //# 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,UACjC,OAAO,UAAU,EAAE,MAAM,6BA8DnC"}
1
+ {"version":3,"file":"init-selection.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/init-selection.js"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,4CAJW,OAAO,YAAY,EAAE,YAAY,UACjC,OAAO,UAAU,EAAE,MAAM,WACzB,MAAM,QA+DhB"}
@@ -1 +1 @@
1
- {"version":3,"file":"on-draw-end.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/on-draw-end.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,8CAFW,OAAO,YAAY,EAAE,YAAY,QA8B3C"}
1
+ {"version":3,"file":"on-draw-end.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/on-draw-end.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,8CAFW,OAAO,YAAY,EAAE,YAAY,QAiC3C"}
@@ -15,13 +15,13 @@ export class EOxMapCompare extends LitElement {
15
15
  };
16
16
  /**
17
17
  * The current position of the comparison slider (0 to 100).
18
- * @type {Number}
18
+ * @type {number}
19
19
  */
20
20
  value: number;
21
21
  /**
22
22
  * Whether the comparison is enabled and which part is visible.
23
23
  * Accepts values: "first", "second", or "true" (default).
24
- * @type {String}
24
+ * @type {string}
25
25
  */
26
26
  enabled: string;
27
27
  render(): import("lit-html").TemplateResult<1>;
@@ -1 +1 @@
1
- {"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../../../../map/src/components/compare.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH;IACE;;;;;;;;;MAKC;IAKC;;;OAGG;IACH,cAAe;IAEf;;;;OAIG;IACH,gBAAqB;IAYvB,+CAsHC;;CACF;2BAhKgC,KAAK"}
1
+ {"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../../../../map/src/components/compare.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH;IACE;;;;;;;;;MAKC;IAKC;;;OAGG;IACH,OAFU,MAAM,CAED;IAEf;;;;OAIG;IACH,SAFU,MAAM,CAEK;IAYvB,+CAsHC;;CACF;2BAhKgC,KAAK"}
@@ -24,11 +24,16 @@ export class EOxMapTooltip extends LitElement {
24
24
  /**
25
25
  * A function to transform properties before rendering.
26
26
  *
27
- * @type {Function}
28
27
  * @param {{ key: string; value: unknown }} property
29
28
  * @param {import("ol/Feature").default | import("ol/render/Feature").default} _feature
30
29
  */
31
- propertyTransform: Function;
30
+ propertyTransform: (property: {
31
+ key: string;
32
+ value: unknown;
33
+ }, _feature: import("ol/Feature").default | import("ol/render/Feature").default) => {
34
+ key: string;
35
+ value: unknown;
36
+ };
32
37
  render(): import("lit-html").TemplateResult<1> | typeof nothing;
33
38
  }
34
39
  import { LitElement } from "lit";
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../../map/src/components/tooltip.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH;IACE;;;;;;;;;;;MAKC;IAKC;;;;OAIG;IACH,SAFU,OAAO,YAAY,EAAE,OAAO,GAAG,OAAO,mBAAmB,EAAE,OAAO,CAEzD;IAEnB;;;;;;OAMG;IACH,4BAAyD;IAG3D,gEA4BC;CACF;2BA/DyC,KAAK;wBAAL,KAAK"}
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../../map/src/components/tooltip.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH;IACE;;;;;;;;;;;MAKC;IAKC;;;;OAIG;IACH,SAFU,OAAO,YAAY,EAAE,OAAO,GAAG,OAAO,mBAAmB,EAAE,OAAO,CAEzD;IAEnB;;;;;OAKG;IACH,8BAHW;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,YAC/B,OAAO,YAAY,EAAE,OAAO,GAAG,OAAO,mBAAmB,EAAE,OAAO;aAD3D,MAAM;eAAS,OAAO;MAGiB;IAG3D,gEA4BC;CACF;2BA9DyC,KAAK;wBAAL,KAAK"}
@@ -16,12 +16,6 @@ export function addOrUpdateControl(EOxMap: import("../main").EOxMap, existingCon
16
16
  * @param {object} options - Options for the control.
17
17
  */
18
18
  export function addControl(EOxMap: import("../main").EOxMap, type: ControlType, options: object): void;
19
- /**
20
- * Adds initial controls from web component properties, if any are given.
21
- *
22
- * @param {import("../main").EOxMap} EOxMap - The map instance.
23
- */
24
- export function addInitialControls(EOxMap: import("../main").EOxMap): void;
25
19
  export type ControlDictionary = import("../types").ControlDictionary;
26
20
  export type ControlType = import("../types").ControlType;
27
21
  //# 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,QAiBhB;AAED;;;;GAIG;AACH,2CAFW,OAAO,SAAS,EAAE,MAAM,QAsClC;gCArGY,OAAO,UAAU,EAAE,iBAAiB;0BACpC,OAAO,UAAU,EAAE,WAAW"}
1
+ {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/controls.js"],"names":[],"mappings":"AAkCA;;;;;;;;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;gCApEY,OAAO,UAAU,EAAE,iBAAiB;0BACpC,OAAO,UAAU,EAAE,WAAW"}
@@ -32,10 +32,10 @@ export default class GeolocationControl extends Control {
32
32
  centerOnPosition(): Promise<void>;
33
33
  }
34
34
  export type GeolocationOptions = import("../types").GeolocationOptions;
35
- import { Control } from "ol/control";
35
+ import Control from "ol/control/Control.js";
36
36
  import Point from "ol/geom/Point";
37
37
  import Feature from "ol/Feature";
38
- import { Vector as VectorSource } from "ol/source";
39
- import { Vector as VectorLayer } from "ol/layer";
38
+ import VectorSource from "ol/source/Vector.js";
39
+ import VectorLayer from "ol/layer/Vector.js";
40
40
  import Geolocation from "ol/Geolocation";
41
41
  //# sourceMappingURL=geo-location.d.ts.map
@@ -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,UAAU,EAAE,kBAAkB;wBAT1B,YAAY;kBAGlB,eAAe;oBAFb,YAAY;uCAGO,WAAW;sCACZ,UAAU;wBAHxB,gBAAgB"}
1
+ {"version":3,"file":"geo-location.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/geo-location.js"],"names":[],"mappings":"AAUA;;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;oBAX9B,uBAAuB;kBAGzB,eAAe;oBAFb,YAAY;yBAGP,qBAAqB;wBACtB,oBAAoB;wBAHpB,gBAAgB"}
@@ -16,5 +16,5 @@ export default class LoadingIndicatorControl extends Control {
16
16
  getElement(): HTMLElement;
17
17
  }
18
18
  export type LoadingIndicatorOptions = import("../types").LoadingIndicatorOptions;
19
- import { Control } from "ol/control.js";
19
+ import Control from "ol/control/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,UAAU,EAAE,uBAAuB;wBAH/B,eAAe"}
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;oBAHnC,uBAAuB"}
@@ -0,0 +1,27 @@
1
+ export default FlatGeoBuf;
2
+ export type FlatGeoBufOptions = import("../../types").FlatGeoBufOptions;
3
+ /**
4
+ * @typedef {import("../../types").FlatGeoBufOptions} FlatGeoBufOptions
5
+ */
6
+ declare class FlatGeoBuf extends Vector<import("ol/Feature").default<import("ol/geom").Geometry>> {
7
+ /**
8
+ * @param {FlatGeoBufOptions} options
9
+ */
10
+ constructor(options: FlatGeoBufOptions);
11
+ ressourceURL: string;
12
+ /**
13
+ * transform an ol extent into FlatGeoBuf-format
14
+ * @param {import("ol/extent").Extent} extent
15
+ * @param {import("ol/proj").Projection} projection
16
+ * @returns
17
+ */
18
+ fgbBoundingBox(extent: import("ol/extent").Extent, projection: import("ol/proj").Projection): {
19
+ minX: number;
20
+ minY: number;
21
+ maxX: number;
22
+ maxY: number;
23
+ };
24
+ loader(extent: import("ol/extent").Extent, resolution: number, projection: import("ol/proj").default, success?: (features: import("ol/Feature").FeatureLike[]) => void, failure?: () => void): void;
25
+ }
26
+ import Vector from "ol/source/Vector.js";
27
+ //# sourceMappingURL=FlatGeoBuf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlatGeoBuf.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/FlatGeoBuf.js"],"names":[],"mappings":";gCAWa,OAAO,aAAa,EAAE,iBAAiB;AADpD;;GAEG;AACH;IACE;;OAEG;IACH,qBAFW,iBAAiB,EAa3B;IAFC,qBAA+B;IAIjC;;;;;OAKG;IACH,uBAJW,OAAO,WAAW,EAAE,MAAM,cAC1B,OAAO,SAAS,EAAE,UAAU;;;;;MAgBtC;0BAkCgsF,WAAa,iDAAiD,SAAsB;CAHtxF;mBA9EkB,qBAAqB"}
@@ -0,0 +1,35 @@
1
+ export default WMTSCapabilities;
2
+ export type WMTSCapabilitiesOptions = import("../../types").WMTSCapabilitiesOptions;
3
+ /**
4
+ * @typedef {import("../../types").WMTSCapabilitiesOptions} WMTSCapabilitiesOptions
5
+ */
6
+ declare class WMTSCapabilities extends TileImage {
7
+ /**
8
+ * Constructs a WMTS capabilities instance and fetches the WMTS capabilities XML from the provided URL.
9
+ *
10
+ * @param {WMTSCapabilitiesOptions} options - Image tile options including URL, layer, and other properties.
11
+ */
12
+ constructor(options: WMTSCapabilitiesOptions);
13
+ version_: string;
14
+ dimensions_: object;
15
+ layer_: string;
16
+ /**
17
+ * Handles the WMTS capabilities XML response by parsing it and setting up the necessary properties.
18
+ *
19
+ * @param {Document} xml - The XML document containing WMTS capabilities.
20
+ * @param {WMTSCapabilitiesOptions} options - Options for WMTS capabilities.
21
+ */
22
+ handleCapabilitiesResponse(xml: Document, options: WMTSCapabilitiesOptions): void;
23
+ requestEncoding_: import("ol/source/WMTS").RequestEncoding;
24
+ matrixSet_: string;
25
+ style_: string;
26
+ format_: string;
27
+ /**
28
+ * Creates a URL function for WMTS tiles based on a template.
29
+ *
30
+ * @param {String} template - The WMTS URL template.
31
+ */
32
+ createFromWMTSTemplate(template: string): (tileCoord: Array<number>) => string | undefined;
33
+ }
34
+ import TileImage from "ol/source/TileImage.js";
35
+ //# sourceMappingURL=WMTSCapabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WMTSCapabilities.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/WMTSCapabilities.js"],"names":[],"mappings":";sCAOa,OAAO,aAAa,EAAE,uBAAuB;AAD1D;;GAEG;AAEH;IACE;;;;OAIG;IACH,qBAFW,uBAAuB,EA+BjC;IAdC,iBAAyE;IACzE,oBAC4D;IAC5D,eAA2B;IAa7B;;;;;OAKG;IACH,gCAHW,QAAQ,WACR,uBAAuB,QAiCjC;IAhBC,2DAA2D;IAC3D,mBAA+C;IAC/C,eAAuC;IACvC,gBAAyC;IAe3C;;;;OAIG;IACH,sDAmCe,KAAK,CAAC,MAAM,CAAC,KACZ,MAAM,GAAC,SAAS,CA2B/B;CACF;sBA3JqB,wBAAwB"}
@@ -1 +1 @@
1
- {"version":3,"file":"add-new-feature.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/add-new-feature.js"],"names":[],"mappings":"AAOA;;;;;;;;;;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,QAiEjB"}
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,QAiEjB"}
@@ -3,10 +3,11 @@
3
3
  *
4
4
  * @param {import("../main").EOxMap} EOxMap - The map instance.
5
5
  * @param {EoxLayer} layer - The layer definition.
6
- * @param {boolean=} createInteractions - Whether to create interactions for the layer (default: true).
6
+ * @param {boolean} [createInteractions=true] - Whether to create interactions for the layer (default: true).
7
+ * @returns {AnyLayer} - The created OpenLayers layer.
7
8
  * @throws Will throw an error if the specified layer or source type is not supported.
8
9
  */
9
- export function createLayer(EOxMap: import("../main").EOxMap, layer: EoxLayer, createInteractions?: boolean | undefined): any;
10
+ export function createLayer(EOxMap: import("../main").EOxMap, layer: EoxLayer, createInteractions?: boolean): AnyLayer;
10
11
  /**
11
12
  * Updates an existing layer with a new definition.
12
13
  *
@@ -18,10 +19,10 @@ export function createLayer(EOxMap: import("../main").EOxMap, layer: EoxLayer, c
18
19
  * @throws Will throw an error if the new layer is not compatible with the existing one.
19
20
  */
20
21
  export function updateLayer(EOxMap: import("../main").EOxMap, newLayerDefinition: EoxLayer, existingLayer: import("ol/layer/Base").default): import("ol/layer/Base").default;
21
- export function generateLayers(EOxMap: import("../main").EOxMap, layerArray: Array<EoxLayer>): Array<EoxLayer>;
22
+ export function generateLayers(EOxMap: import("../main").EOxMap, layerArray: Array<EoxLayer>): Array<AnyLayer>;
22
23
  export type EOxMap = import("../main").EOxMap;
23
24
  export type AnyLayer = import("../types").AnyLayer;
24
- export type EoxLayer = import("../types").EoxLayer;
25
+ export type EoxLayer = import("../layers").EoxLayer;
25
26
  export type SelectLayer = import("../types").SelectLayer;
26
27
  export type EOxInteraction = import("../types").EOxInteraction;
27
28
  export type DrawOptions = import("../types").DrawOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/generate.js"],"names":[],"mappings":"AAmEA;;;;;;;GAOG;AACH,oCALW,OAAO,SAAS,EAAE,MAAM,SACxB,QAAQ,uBACR,OAAO,YAAC,OAkGlB;AAyBD;;;;;;;;;GASG;AACH,oCAPW,OAAO,SAAS,EAAE,MAAM,sBACxB,QAAQ,iBACR,OAAO,eAAe,EAAE,OAAO,GAC7B,OAAO,eAAe,EAAE,OAAO,CAkM3C;AASM,uCAJI,OAAO,SAAS,EAAE,MAAM,cACxB,KAAK,CAAC,QAAQ,CAAC,GACb,KAAK,CAAC,QAAQ,CAAC,CAO3B;qBAlYY,OAAO,SAAS,EAAE,MAAM;uBACxB,OAAO,UAAU,EAAE,QAAQ;uBAC3B,OAAO,UAAU,EAAE,QAAQ;0BAC3B,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"}
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,CAwGpB;AAyBD;;;;;;;;;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;qBA/YY,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"interactions.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/interactions.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,2CAHW,OAAO,IAAI,EAAE,GAAG,sBAChB,OAAO,QA+BjB;AAED;;;;GAIG;AACH,qDAFW,OAAO,IAAI,EAAE,GAAG,QAc1B"}
1
+ {"version":3,"file":"interactions.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/interactions.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,2CAHW,OAAO,IAAI,EAAE,GAAG,sBAChB,OAAO,QA+BjB;AAED;;;;GAIG;AACH,qDAFW,OAAO,IAAI,EAAE,GAAG,QAc1B"}
@@ -11,7 +11,7 @@
11
11
  export function addSelect(EOxMap: EOxMap, selectLayer: SelectLayer, options: SelectOptions | DrawOptions): EOxSelectInteraction;
12
12
  /**
13
13
  * @typedef {import('../main').EOxMap} EOxMap
14
- * @typedef {import("../types").EoxLayer} EoxLayer
14
+ * @typedef {import("../layers").EoxLayer} EoxLayer
15
15
  * @typedef {import("../types").SelectLayer} SelectLayer
16
16
  * @typedef {import("../types").SelectOptions} SelectOptions
17
17
  * @typedef {import("../types").DrawOptions} DrawOptions
@@ -37,12 +37,12 @@ export class EOxSelectInteraction {
37
37
  /** @type {Array<string|number>} **/
38
38
  selectedFids: Array<string | number>;
39
39
  tooltipElement: Element;
40
- selectStyleLayer: any;
40
+ selectStyleLayer: import("../types").SelectLayer;
41
41
  /**
42
42
  * Listener to handle selection events
43
- * @param {import("ol/MapBrowserEvent").default<UIEvent>} event
43
+ * @param {import("ol/MapBrowserEvent").default} event
44
44
  * **/
45
- listener: (event: import("ol/MapBrowserEvent").default<UIEvent>) => void;
45
+ listener: (event: import("ol/MapBrowserEvent").default) => void;
46
46
  changeSourceListener: () => void;
47
47
  /**
48
48
  * Adds a listener on pointermove
@@ -80,7 +80,7 @@ export class EOxSelectInteraction {
80
80
  getId(feature: Feature | RenderFeature): string | number;
81
81
  }
82
82
  export type EOxMap = import("../main").EOxMap;
83
- export type EoxLayer = import("../types").EoxLayer;
83
+ export type EoxLayer = import("../layers").EoxLayer;
84
84
  export type SelectLayer = import("../types").SelectLayer;
85
85
  export type SelectOptions = import("../types").SelectOptions;
86
86
  export type DrawOptions = import("../types").DrawOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/select.js"],"names":[],"mappings":"AAsVA;;;;;;;;;GASG;AACH,kCAPW,MAAM,eACN,WAAW,WACX,aAAa,GAAG,WAAW,GACzB,oBAAoB,CAgBhC;AAnWD;;;;;;GAMG;AAEH;;;;GAIG;AACH;IACE;;;;OAIG;IACH,oBAJW,MAAM,eACN,WAAW,WACX,aAAa,EA2NvB;IAxNC,iCAAoB;IACpB,4CAA8B;IAC9B,0CAAsB;IACtB,gBAAwD;IACxD,eAAmC;IACnC,iBAAuD;IACvD,oCAAoC;IACpC,cADW,KAAK,CAAC,MAAM,GAAC,MAAM,CAAC,CACT;IAUlB,wBAAkD;IA4DtD,sBAA4D;IAuB5D;;;UAGM;IACN,kBAFW,OAAO,oBAAoB,EAAE,OAAO,CAAC,OAAO,CAAC,UAmDvD;IAiBD,iCAEC;IAqBD;;;;OAIG;IACH,sCAgBC;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,0BAgChC;IAED;;OAEG;IACH,eAMC;IAED;;;;;OAKG;IACH,eAJW,OAAO,GAAG,aAAa,GACrB,MAAM,GAAG,MAAM,CAoB3B;CACF;qBA1UY,OAAO,SAAS,EAAE,MAAM;uBACxB,OAAO,UAAU,EAAE,QAAQ;0BAC3B,OAAO,UAAU,EAAE,WAAW;4BAC9B,OAAO,UAAU,EAAE,aAAa;0BAChC,OAAO,UAAU,EAAE,WAAW;oBAXvB,YAAY;0BACN,mBAAmB"}
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/select.js"],"names":[],"mappings":"AAyVA;;;;;;;;;GASG;AACH,kCAPW,MAAM,eACN,WAAW,WACX,aAAa,GAAG,WAAW,GACzB,oBAAoB,CAgBhC;AAtWD;;;;;;GAMG;AAEH;;;;GAIG;AACH;IACE;;;;OAIG;IACH,oBAJW,MAAM,eACN,WAAW,WACX,aAAa,EA4NvB;IAzNC,iCAAoB;IACpB,4CAA8B;IAC9B,0CAAsB;IACtB,gBAAwD;IACxD,eAAmC;IACnC,iBAAuD;IACvD,oCAAoC;IACpC,cADW,KAAK,CAAC,MAAM,GAAC,MAAM,CAAC,CACT;IAUlB,wBAAkD;IA4DtD,iDAEC;IAwBD;;;UAGM;IACN,kBAFW,OAAO,oBAAoB,EAAE,OAAO,UAiD9C;IAiBD,iCAGC;IAoBD;;;;OAIG;IACH,sCAgBC;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;qBA7UY,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,5 +1,5 @@
1
1
  /**
2
- * @typedef {import("../types").EoxLayer} EoxLayer
2
+ * @typedef {import("../layers").EoxLayer} EoxLayer
3
3
  * */
4
4
  /**
5
5
  * Generates a tile grid for the specified layer. If the layer's source type is "WMTS",
@@ -10,5 +10,5 @@
10
10
  * @returns {import("ol/tilegrid/WMTS").default | import("ol/tilegrid/TileGrid").default | undefined} - The generated tile grid or `undefined` if not applicable.
11
11
  */
12
12
  export function generateTileGrid(layer: EoxLayer): import("ol/tilegrid/WMTS").default | import("ol/tilegrid/TileGrid").default | undefined;
13
- export type EoxLayer = import("../types").EoxLayer;
13
+ export type EoxLayer = import("../layers").EoxLayer;
14
14
  //# 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;;KAEK;AAEL;;;;;;;GAOG;AACH,wCAHW,QAAQ,GACN,OAAO,kBAAkB,EAAE,OAAO,GAAG,OAAO,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAkDnG;uBA3DY,OAAO,UAAU,EAAE,QAAQ"}
1
+ {"version":3,"file":"tile-grid.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/tile-grid.js"],"names":[],"mappings":"AAKA;;KAEK;AAEL;;;;;;;GAOG;AACH,wCAHW,QAAQ,GACN,OAAO,kBAAkB,EAAE,OAAO,GAAG,OAAO,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAkDnG;uBA3DY,OAAO,WAAW,EAAE,QAAQ"}