@eox/drawtools 1.1.3 → 1.1.5

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/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@eox/drawtools",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "type": "module",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git@github.com:EOX-A/EOxElements.git"
8
+ },
5
9
  "devDependencies": {
6
10
  "@eox/map": "*",
7
- "vite": "^6.0.3"
11
+ "vite": "^7.1.12"
8
12
  },
9
13
  "engines": {
10
14
  "npm": ">=8.0.0",
@@ -35,7 +39,7 @@
35
39
  },
36
40
  "dependencies": {
37
41
  "@eox/elements-utils": "^1.1.0",
38
- "@eox/ui": "^0.3.6",
42
+ "@eox/ui": "^0.5.0",
39
43
  "lit": "^3.2.0",
40
44
  "ol": "^10.4.0"
41
45
  }
@@ -314,7 +314,8 @@ export class EOxDrawToolsController extends LitElement {
314
314
  <!-- Geo JSON Copy Button -->
315
315
  <button
316
316
  data-cy="copyBtn"
317
- class="circle absolute bottom right medium-margin"
317
+ class="circle absolute bottom right medium-margin aloha"
318
+ style="z-index: 1"
318
319
  @click=${() => copyTextToClipboard(this.geoJSON)}
319
320
  >
320
321
  ${this.unstyled
@@ -1,6 +1,5 @@
1
1
  export {
2
2
  STORIES_MAP_STYLE,
3
- STORIES_DRAW_TYPES,
4
3
  STORIES_LAYERS_ARRAY,
5
4
  STORIES_VECTOR_LAYERS,
6
5
  } from "./stories";
@@ -29,10 +29,3 @@ export const STORIES_VECTOR_LAYERS = [
29
29
  ];
30
30
 
31
31
  export const STORIES_MAP_STYLE = "width: 400px; height: 300px;";
32
-
33
- export const STORIES_DRAW_TYPES = [
34
- { id: "box", type: "Box" },
35
- { id: "point", type: "Point" },
36
- { id: "circle", type: "Circle" },
37
- { id: "linestring", type: "LineString" },
38
- ];
package/src/main.js CHANGED
@@ -17,7 +17,23 @@ import {
17
17
  } from "./helpers/generate-upload-events.js";
18
18
 
19
19
  /**
20
- * Manage drawn features on a map
20
+ * The `eox-drawtools` element provides a comprehensive set of drawing, editing, selection, and import tools for vector features on an `eox-map`. It supports drawing multiple feature types (Polygon, Box, Point, Circle, LineString), continuous drawing, feature modification, selection from existing layers, and import/export in various formats (GeoJSON, WKT, native OL feature).
21
+ *
22
+ * Key features:
23
+ * - Draw polygons, boxes, points, circles, and lines on the map
24
+ * - Draw multiple features at once (set `multiple-features`)
25
+ * - Continuous drawing mode (set `continuous`)
26
+ * - Modify drawn features (set `allow-modify`)
27
+ * - Select features from a specified layer (`layer-id`)
28
+ * - Display a list of drawn/selected features (`show-list`)
29
+ * - Edit features as GeoJSON in a text editor (`show-editor`)
30
+ * - Import features via drag-and-drop or file upload (`import-features`)
31
+ * - Emit drawn features in different formats (`format`: `feature`, `geojson`, `wkt`)
32
+ * - Emit features in a specified projection (`projection`)
33
+ * - Customizable feature styles (`featureStyles`)
34
+ * - Unstyled and no-shadow variants for easy integration
35
+ *
36
+ * Usage examples and visual demos are available in Storybook stories, including scenarios for multi-feature drawing, feature modification, selection, import/export, continuous drawing, format and projection control, and style customization.
21
37
  *
22
38
  * @element eox-drawtools
23
39
  */
@@ -42,7 +58,7 @@ export class EOxDrawTools extends LitElement {
42
58
  showEditor: { attribute: "show-editor", type: Boolean },
43
59
  showList: { attribute: "show-list", type: Boolean },
44
60
  projection: { type: String },
45
- noShadow: { type: Boolean },
61
+ noShadow: { attribute: "no-shadow", type: Boolean },
46
62
  format: { type: String },
47
63
  type: { type: String },
48
64
  unstyled: { type: Boolean },
@@ -334,8 +350,20 @@ export class EOxDrawTools extends LitElement {
334
350
  this.eoxMap = EoxMap;
335
351
  this.#olMap = OlMap;
336
352
  }
353
+ if (
354
+ changedProperties.get("type") &&
355
+ changedProperties.get("type") !== this.type
356
+ ) {
357
+ this.resetLayer(this);
358
+ this.firstUpdated();
359
+ this.currentlyDrawing = false;
360
+ }
337
361
  }
338
362
 
363
+ /**
364
+ * The eox-map instance associated with the draw tools
365
+ * @type {import("@eox/map").EOxMap}
366
+ */
339
367
  get eoxMap() {
340
368
  return this.#eoxMap;
341
369
  }
@@ -2,6 +2,8 @@
2
2
  * Factory function to create a select event handler
3
3
  * @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
4
4
  */
5
+ import { toFeature } from "ol/render/Feature";
6
+
5
7
  const createSelectHandler = (EoxDrawTool) => {
6
8
  /**
7
9
  * Copy the selected feature to the draw layer
@@ -13,6 +15,11 @@ const createSelectHandler = (EoxDrawTool) => {
13
15
  if (e?.detail.id !== "SelectLayerClickInteraction" || !e.detail.feature) {
14
16
  return;
15
17
  }
18
+ // Vector tiles geometries do not have the getCoordinates method
19
+ // only dispatch event if the feature has the getCoordinates method
20
+ if (typeof e.detail.feature.getGeometry().getCoordinates !== "function") {
21
+ e.detail.feature = toFeature(e.detail.feature);
22
+ }
16
23
  EoxDrawTool.drawLayer.getSource().addFeature(e.detail.feature);
17
24
  EoxDrawTool.eoxMap.dispatchEvent(
18
25
  new CustomEvent("addfeatures", { detail: e.detail }),
@@ -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,+CAyNC;;CACF;2BA3UyC,KAAK"}
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,+CA0NC;;CACF;2BA5UyC,KAAK"}
@@ -1,4 +1,4 @@
1
1
  export { TEST_SELECTORS } from "./test";
2
- export { STORIES_MAP_STYLE, STORIES_DRAW_TYPES, STORIES_LAYERS_ARRAY, STORIES_VECTOR_LAYERS } from "./stories";
2
+ export { STORIES_MAP_STYLE, STORIES_LAYERS_ARRAY, STORIES_VECTOR_LAYERS } from "./stories";
3
3
  export { FIT_OPTIONS, DUMMY_GEO_JSON } from "./draw";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -23,8 +23,4 @@ export const STORIES_VECTOR_LAYERS: {
23
23
  };
24
24
  }[];
25
25
  export const STORIES_MAP_STYLE: "width: 400px; height: 300px;";
26
- export const STORIES_DRAW_TYPES: {
27
- id: string;
28
- type: string;
29
- }[];
30
26
  //# sourceMappingURL=stories.d.ts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../../src/enums/stories.js"],"names":[],"mappings":"AAAA;;;;;IAOE;AAEF;;;;;;;;;;;;;;;;;IAmBE;AAEF,gCAAiC,8BAA8B,CAAC"}
@@ -1,5 +1,21 @@
1
1
  /**
2
- * Manage drawn features on a map
2
+ * The `eox-drawtools` element provides a comprehensive set of drawing, editing, selection, and import tools for vector features on an `eox-map`. It supports drawing multiple feature types (Polygon, Box, Point, Circle, LineString), continuous drawing, feature modification, selection from existing layers, and import/export in various formats (GeoJSON, WKT, native OL feature).
3
+ *
4
+ * Key features:
5
+ * - Draw polygons, boxes, points, circles, and lines on the map
6
+ * - Draw multiple features at once (set `multiple-features`)
7
+ * - Continuous drawing mode (set `continuous`)
8
+ * - Modify drawn features (set `allow-modify`)
9
+ * - Select features from a specified layer (`layer-id`)
10
+ * - Display a list of drawn/selected features (`show-list`)
11
+ * - Edit features as GeoJSON in a text editor (`show-editor`)
12
+ * - Import features via drag-and-drop or file upload (`import-features`)
13
+ * - Emit drawn features in different formats (`format`: `feature`, `geojson`, `wkt`)
14
+ * - Emit features in a specified projection (`projection`)
15
+ * - Customizable feature styles (`featureStyles`)
16
+ * - Unstyled and no-shadow variants for easy integration
17
+ *
18
+ * Usage examples and visual demos are available in Storybook stories, including scenarios for multi-feature drawing, feature modification, selection, import/export, continuous drawing, format and projection control, and style customization.
3
19
  *
4
20
  * @element eox-drawtools
5
21
  */
@@ -72,6 +88,7 @@ export class EOxDrawTools extends LitElement {
72
88
  type: StringConstructor;
73
89
  };
74
90
  noShadow: {
91
+ attribute: string;
75
92
  type: BooleanConstructor;
76
93
  };
77
94
  format: {
@@ -240,6 +257,10 @@ export class EOxDrawTools extends LitElement {
240
257
  firstUpdated(): void;
241
258
  resetLayer: (EoxDrawTool: import("./main").EOxDrawTools) => void;
242
259
  set eoxMap(value: import("@eox/map").EOxMap);
260
+ /**
261
+ * The eox-map instance associated with the draw tools
262
+ * @type {import("@eox/map").EOxMap}
263
+ */
243
264
  get eoxMap(): import("@eox/map").EOxMap;
244
265
  updated(changedProperties: any): void;
245
266
  render(): import("lit-html").TemplateResult<1>;
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAkBA;;;;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,0BAA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BAAgB,CAAA;KAAE,CAAA,QAI/D;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,sBAMC;IAED;;OAEG;IACH,0BAaC;IASD;;;;OAIG;IACH,qBAcC;IATC,iCApPI,QACN,wBAmPyB;IAmCzB,kBANU,OAAO,UAAU,EAAE,MAAM,EAUlC;IAZD;;;OAGG;IACH,cAFU,OAAO,UAAU,EAAE,MAAM,CAIlC;IAtBD,sCAcC;IA6BD,+CAqDC;;CACF;2BA3byC,KAAK"}
@@ -1,9 +1,5 @@
1
1
  export default createSelectHandler;
2
- /**
3
- * Factory function to create a select event handler
4
- * @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
5
- */
6
- declare function createSelectHandler(EoxDrawTool: import("../../main").EOxDrawTools): {
2
+ declare function createSelectHandler(EoxDrawTool: any): {
7
3
  addSelectionEvent: () => void;
8
4
  removeSelectionEvent: () => void;
9
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"create-select-handler.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/create-select-handler.js"],"names":[],"mappings":";AAAA;;;GAGG;AACH,kDAFW,OAAO,YAAY,EAAE,YAAY;;;EA6C3C"}
1
+ {"version":3,"file":"create-select-handler.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/create-select-handler.js"],"names":[],"mappings":";AAMA;;;EAgDC"}
@@ -8,7 +8,8 @@ declare class FlatGeoBuf extends Vector<import("ol/Feature").default<import("ol/
8
8
  * @param {FlatGeoBufOptions} options
9
9
  */
10
10
  constructor(options: FlatGeoBufOptions);
11
- ressourceURL: string;
11
+ dataProjection: import("ol/proj").ProjectionLike;
12
+ resourceURL: string;
12
13
  /**
13
14
  * transform an ol extent into FlatGeoBuf-format
14
15
  * @param {import("ol/extent").Extent} extent
@@ -1 +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"}
1
+ {"version":3,"file":"FlatGeoBuf.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/FlatGeoBuf.js"],"names":[],"mappings":";gCAQa,OAAO,aAAa,EAAE,iBAAiB;AADpD;;GAEG;AACH;IACE;;OAEG;IACH,qBAFW,iBAAiB,EAY3B;IAJC,iDAC4D;IAC5D,oBAA8B;IAIhC;;;;;OAKG;IACH,uBAJW,OAAO,WAAW,EAAE,MAAM,cAC1B,OAAO,SAAS,EAAE,UAAU;;;;;MAgBtC;0BAsC0hF,WAAa,iDAAiD,SAAsB;CAHhnF;mBA9EkB,qBAAqB"}
@@ -13,6 +13,8 @@ export function addSelect(EOxMap: EOxMap, selectLayer: SelectLayer, options: Sel
13
13
  * @typedef {import('../main').EOxMap} EOxMap
14
14
  * @typedef {import("../layers").EoxLayer} EoxLayer
15
15
  * @typedef {import("../types").SelectLayer} SelectLayer
16
+ * @typedef {import("../types").AnyLayer} AnyLayer
17
+ * @typedef {import("../types").SelectLayerWithFeatures} SelectLayerWithFeatures
16
18
  * @typedef {import("../types").SelectOptions} SelectOptions
17
19
  * @typedef {import("../types").DrawOptions} DrawOptions
18
20
  */
@@ -24,20 +26,20 @@ export function addSelect(EOxMap: EOxMap, selectLayer: SelectLayer, options: Sel
24
26
  export class EOxSelectInteraction {
25
27
  /**
26
28
  * @param {EOxMap} eoxMap - Instance of the EOxMap class.
27
- * @param {SelectLayer} selectLayer - Layer for selection.
29
+ * @param {import("../types").SelectLayer} anyLayer - Layer for selection.
28
30
  * @param {SelectOptions} options - Options for the selection interaction.
29
31
  */
30
- constructor(eoxMap: EOxMap, selectLayer: SelectLayer, options: SelectOptions);
32
+ constructor(eoxMap: EOxMap, anyLayer: import("../types").SelectLayer, options: SelectOptions);
31
33
  eoxMap: import("../main").EOxMap;
32
- selectLayer: import("../types").SelectLayer;
34
+ selectLayer: VectorLayer<import("ol/source").Vector<any>, any> | import("ol/layer").WebGLTile | VectorTile<import("ol/source").VectorTile<any>, any> | import("ol/layer").Tile<import("ol/source").Tile<import("ol").Tile>>;
33
35
  options: import("../types").SelectOptions;
34
36
  active: boolean;
35
37
  panIn: boolean;
36
38
  tooltip: boolean;
39
+ tooltipElement: Element;
37
40
  /** @type {Array<string|number>} **/
38
41
  selectedFids: Array<string | number>;
39
- tooltipElement: Element;
40
- selectStyleLayer: import("../types").SelectLayer;
42
+ selectStyleLayer: VectorLayer<import("ol/source").Vector<Feature<import("ol/geom").Geometry>>, Feature<import("ol/geom").Geometry>> | VectorTile<import("ol/source").VectorTile<RenderFeature>, RenderFeature>;
41
43
  /**
42
44
  * Listener to handle selection events
43
45
  * @param {import("ol/MapBrowserEvent").default} event
@@ -82,8 +84,12 @@ export class EOxSelectInteraction {
82
84
  export type EOxMap = import("../main").EOxMap;
83
85
  export type EoxLayer = import("../layers").EoxLayer;
84
86
  export type SelectLayer = import("../types").SelectLayer;
87
+ export type AnyLayer = import("../types").AnyLayer;
88
+ export type SelectLayerWithFeatures = import("../types").SelectLayerWithFeatures;
85
89
  export type SelectOptions = import("../types").SelectOptions;
86
90
  export type DrawOptions = import("../types").DrawOptions;
91
+ import VectorLayer from "ol/layer/Vector";
92
+ import VectorTile from "ol/layer/VectorTile";
87
93
  import Feature from "ol/Feature";
88
94
  import RenderFeature from "ol/render/Feature";
89
95
  //# sourceMappingURL=select.d.ts.map
@@ -1 +1 @@
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,kBAFW,OAAO,oBAAoB,EAAE,OAAO,UAmD9C;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
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/select.js"],"names":[],"mappings":"AAwhBA;;;;;;;;;GASG;AACH,kCAPW,MAAM,eACN,WAAW,WACX,aAAa,GAAG,WAAW,GACzB,oBAAoB,CAgBhC;AA/hBD;;;;;;;;GAQG;AAEH;;;;GAIG;AACH;IACE;;;;OAIG;IACH,oBAJW,MAAM,YACN,OAAO,UAAU,EAAE,WAAW,WAC9B,aAAa,EA8YvB;IA3YC,iCAAoB;IACpB,4NAA2B;IAC3B,0CAAsB;IACtB,gBAAqD;IACrD,eAAmC;IACnC,iBAAuD;IAUnD,wBAAkD;IAgFpD,oCAAoC;IACpC,cADW,KAAK,CAAC,MAAM,GAAC,MAAM,CAAC,CACT;IAuBtB,+MAGG;IAuBH;;;UAGM;IACN,kBAiMW,OAAO,oBAAoB,EAAE,OAAO,UAjJ9C;IAiBD,iCAGC;IAoBD;;;;OAIG;IACH,sCAgBC;IA2IL;;;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,eAWC;IAED;;;;;OAKG;IACH,eAJW,OAAO,GAAG,aAAa,GACrB,MAAM,GAAG,MAAM,CAoB3B;CACF;qBAtgBY,OAAO,SAAS,EAAE,MAAM;uBACxB,OAAO,WAAW,EAAE,QAAQ;0BAC5B,OAAO,UAAU,EAAE,WAAW;uBAC9B,OAAO,UAAU,EAAE,QAAQ;sCAC3B,OAAO,UAAU,EAAE,uBAAuB;4BAC1C,OAAO,UAAU,EAAE,aAAa;0BAChC,OAAO,UAAU,EAAE,WAAW;wBAjBnB,iBAAiB;uBAGlB,qBAAqB;oBALxB,YAAY;0BACN,mBAAmB"}
@@ -7,9 +7,9 @@
7
7
  * @typedef {import("./types").AnyLayerWithSource} AnyLayerWithSource
8
8
  * */
9
9
  /**
10
- * The `eox-map` is a wrapper for the library [OpenLayers](https://openlayers.org/) with additional features and helper functions.
10
+ * The `eox-map` element is a powerful wrapper around [OpenLayers](https://openlayers.org/) that provides a declarative, highly configurable map element for web applications. It supports a wide range of layer types, sources, controls, and advanced features, making it suitable for interactive mapping, data visualization, and geospatial analysis.
11
11
  *
12
- * Basic usage:
12
+ * ## Basic usage:
13
13
  *
14
14
  * ```
15
15
  * import "@eox/map"
@@ -42,10 +42,52 @@
42
42
  * - [`WMTSCapabilities`](https://github.com/EOX-A/EOxElements/tree/main/elements/map/src/custom/sources/WMTSCapabilities.ts)
43
43
  * - Reprojection through [proj4](https://github.com/proj4js/proj4js)
44
44
  *
45
+ * For usage and story examples, see the Storybook stories in `/elements/map/stories`.
46
+ *
47
+ * ## Features
48
+ *
49
+ * - **Layer Support:** Easily add and configure layers such as Tile, Vector, VectorTile, Image, Group, and advanced types like STAC, GeoTIFF, MapboxStyle, and FlatGeoBuf. Layers are passed via the `layers` property as an array of configuration objects.
50
+ * - **Source Formats:** Supports GeoJSON, MVT, OSM, TileWMS, WMTS, XYZ, ImageWMS, and more. Advanced sources (e.g., WMTSCapabilities) are available via plugin import.
51
+ * - **Controls:** Add built-in or custom controls (Zoom, Geolocation, LoadingIndicator, etc.) using the `controls` property. Controls can be configured and styled for various use cases.
52
+ * - **Interactions:** Enable feature selection, hover, click, cluster-explode, and highlight interactions. Interactions are configured per layer and can trigger custom events.
53
+ * - **Tooltips:** Built-in tooltip support via `<eox-map-tooltip></eox-map-tooltip>`, with options for property transformation, custom tooltips, and pixel/band value display for raster layers.
54
+ * - **Layer Groups:** Organize layers into groups for complex compositions and hierarchical management.
55
+ * - **Animations:** Animate view changes (zoom, center, extent) using the `animationOptions` property.
56
+ * - **Projection & Transformation:** Change map projection, register custom projections, and transform coordinates/extents using helper methods.
57
+ * - **Sync & Compare:** Synchronize multiple maps using the `sync` property, and compare maps side-by-side with `<eox-map-compare>`.
58
+ * - **Config Object:** Pass a configuration object for advanced map setup and dynamic updates.
59
+ * - **Scroll Prevention:** Prevent scroll/drag interactions for embedded maps using the `preventScroll` property.
60
+ *
61
+ * ## Events
62
+ *
63
+ * - `clusterSelect`: Fired when a cluster is selected.
64
+ * - `loadend`: Fired when the map has finished loading.
65
+ * - `mapmounted`: Fired when the map is successfully mounted.
66
+ * - `select`: Fired when a feature is selected.
67
+ *
68
+ * ## Helper Methods
69
+ *
70
+ * - `transform`, `transformExtent`: Transform coordinates and extents between projections.
71
+ * - `registerProjection`, `registerProjectionFromCode`: Register custom or EPSG projections.
72
+ * - `getLayerById`, `getFlatLayersArray`: Retrieve layers by ID or as a flat array.
73
+ * - `addOrUpdateLayer`, `removeInteraction`, `removeSelect`, `removeControl`: Manage layers and interactions programmatically.
74
+ *
45
75
  * @element eox-map
76
+ * @fires {CustomEvent} clusterSelect - A cluster is selected
77
+ * @fires {CustomEvent} loadend - The map has finished loading
78
+ * @fires {CustomEvent} mapmounted - The map has been successfully mounted
79
+ * @fires {CustomEvent} select - A feature is selected
46
80
  */
47
81
  export class EOxMap extends LitElement {
48
82
  static get properties(): {
83
+ map: {
84
+ attribute: boolean;
85
+ state: boolean;
86
+ };
87
+ config: {
88
+ attribute: boolean;
89
+ type: ObjectConstructor;
90
+ };
49
91
  center: {
50
92
  attribute: boolean;
51
93
  type: ArrayConstructor;
@@ -54,40 +96,55 @@ export class EOxMap extends LitElement {
54
96
  attribute: boolean;
55
97
  type: ArrayConstructor;
56
98
  };
57
- preventScroll: {
58
- attribute: string;
59
- type: BooleanConstructor;
99
+ zoom: {
100
+ attribute: boolean;
101
+ type: NumberConstructor;
60
102
  };
61
- config: {
103
+ animationOptions: {
62
104
  attribute: boolean;
63
105
  type: ObjectConstructor;
64
106
  };
65
- sync: {
66
- attribute: string;
67
- type: StringConstructor;
107
+ controls: {
108
+ attribute: boolean;
109
+ type: ObjectConstructor;
68
110
  };
69
- projection: {
70
- attribute: string;
71
- type: StringConstructor;
111
+ interactions: {
112
+ attribute: boolean;
113
+ type: ObjectConstructor;
72
114
  };
73
- map: {
115
+ lonLatCenter: {
74
116
  attribute: boolean;
75
- state: boolean;
117
+ type: ArrayConstructor;
118
+ };
119
+ lonLatExtent: {
120
+ attribute: boolean;
121
+ type: ArrayConstructor;
76
122
  };
77
- intersections: {
123
+ mapControls: {
78
124
  attribute: boolean;
79
125
  state: boolean;
80
126
  type: ObjectConstructor;
81
127
  };
128
+ preventScroll: {
129
+ attribute: string;
130
+ type: BooleanConstructor;
131
+ };
132
+ projection: {
133
+ attribute: string;
134
+ type: StringConstructor;
135
+ };
82
136
  selectInteractions: {
83
137
  attribute: boolean;
84
138
  state: boolean;
85
139
  type: ObjectConstructor;
86
140
  };
87
- mapControls: {
141
+ sync: {
142
+ attribute: string;
143
+ type: StringConstructor;
144
+ };
145
+ zoomExtent: {
88
146
  attribute: boolean;
89
- state: boolean;
90
- type: ObjectConstructor;
147
+ type: ArrayConstructor;
91
148
  };
92
149
  };
93
150
  /**
@@ -129,18 +186,34 @@ export class EOxMap extends LitElement {
129
186
  /**
130
187
  * Gets the current center coordinates of the map.
131
188
  *
189
+ * @type {Array<number>}
132
190
  * @returns {Array<number>} The current center of the map.
133
191
  */
134
192
  get center(): Array<number>;
193
+ /**
194
+ * Sets the configuration for the map.
195
+ *
196
+ * @param {ConfigObject} config - The configuration object.
197
+ */
198
+ set config(config: ConfigObject);
199
+ /**
200
+ * Gets the current configuration of the map.
201
+ *
202
+ * @type {ConfigObject}
203
+ * @returns {ConfigObject} The map's configuration object.
204
+ */
205
+ get config(): ConfigObject;
135
206
  /**
136
207
  * Gets the current center of the map in longitude and latitude.
137
208
  *
209
+ * @type {Array<number>}
138
210
  * @returns {Array<number>} The geographic center [longitude, latitude].
139
211
  */
140
212
  get lonLatCenter(): Array<number>;
141
213
  /**
142
214
  * Gets the current extent of the map in longitude and latitude.
143
215
  *
216
+ * @type {Array<number>}
144
217
  * @returns {Array<number>} The geographic extent [minLon, minLat, maxLon, maxLat].
145
218
  */
146
219
  get lonLatExtent(): Array<number>;
@@ -153,6 +226,7 @@ export class EOxMap extends LitElement {
153
226
  /**
154
227
  * Gets the current zoom level of the map.
155
228
  *
229
+ * @type {number}
156
230
  * @returns {number} The current zoom level.
157
231
  */
158
232
  get zoom(): number;
@@ -162,6 +236,13 @@ export class EOxMap extends LitElement {
162
236
  * @param {import("ol/extent").Extent} extent - The new zoom extent.
163
237
  */
164
238
  set zoomExtent(extent: import("ol/extent").Extent);
239
+ /**
240
+ * Gets the current extent of the map.
241
+ *
242
+ * @type {Array<number>}
243
+ * @returns {Array<number>} The extent in current map projection.
244
+ */
245
+ get zoomExtent(): Array<number>;
165
246
  /**
166
247
  * Sets the controls for the map.
167
248
  *
@@ -171,6 +252,7 @@ export class EOxMap extends LitElement {
171
252
  /**
172
253
  * Gets the current map controls.
173
254
  *
255
+ * @type {ControlDictionary}
174
256
  * @returns {ControlDictionary} The current controls applied to the map.
175
257
  */
176
258
  get controls(): ControlDictionary;
@@ -181,7 +263,7 @@ export class EOxMap extends LitElement {
181
263
  */
182
264
  set layers(layers: Array<EoxLayer>);
183
265
  /**
184
- * Gets the current layers of the map.
266
+ * Gets the current layers of the map
185
267
  *
186
268
  * @returns {Array<EoxLayer>} The current layers applied to the map.
187
269
  */
@@ -195,21 +277,10 @@ export class EOxMap extends LitElement {
195
277
  /**
196
278
  * Gets the current scroll interaction state.
197
279
  *
280
+ * @type {boolean}
198
281
  * @returns {boolean} `true` if scroll interactions are prevented, `false` otherwise.
199
282
  */
200
283
  get preventScroll(): boolean;
201
- /**
202
- * Sets the configuration for the map.
203
- *
204
- * @param {ConfigObject} config - The configuration object.
205
- */
206
- set config(config: ConfigObject);
207
- /**
208
- * Gets the current configuration of the map.
209
- *
210
- * @returns {ConfigObject} The map's configuration object.
211
- */
212
- get config(): ConfigObject;
213
284
  /**
214
285
  * Sets animation options for map view changes.
215
286
  *
@@ -219,6 +290,7 @@ export class EOxMap extends LitElement {
219
290
  /**
220
291
  * Gets the current animation options.
221
292
  *
293
+ * @type {EOxAnimationOptions}
222
294
  * @returns {EOxAnimationOptions} The current animation options for the map.
223
295
  */
224
296
  get animationOptions(): EOxAnimationOptions;
@@ -231,6 +303,7 @@ export class EOxMap extends LitElement {
231
303
  /**
232
304
  * Gets the current map projection.
233
305
  *
306
+ * @type {ProjectionLike}
234
307
  * @returns {ProjectionLike} The map's projection code.
235
308
  */
236
309
  get projection(): ProjectionLike;
@@ -243,6 +316,7 @@ export class EOxMap extends LitElement {
243
316
  /**
244
317
  * Gets the current sync state of the map.
245
318
  *
319
+ * @type {string}
246
320
  * @returns {string} The ID of the map that this map is synced with.
247
321
  */
248
322
  get sync(): string;
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../map/src/main.js"],"names":[],"mappings":"AA2CA;;;;;;;KAOK;AAEL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAaC;IA8EC;;;;OAIG;IACH,KAFU,OAAO,QAAQ,EAAE,OAAO,CAchC;IAEF;;;;OAIG;IACH;;MAAsB;IAEtB;;;;OAIG;IACH;;MAA4B;IAE5B;;;;OAIG;IACH;;MAAqB;IAGvB;;;;OAIG;IACH,mBAFW,KAAK,CAAC,MAAM,CAAC,EAQvB;IAED;;;;OAIG;IACH,cAFa,KAAK,CAAC,MAAM,CAAC,CAIzB;IAED;;;;OAIG;IACH,oBAFa,KAAK,CAAC,MAAM,CAAC,CAIzB;IAED;;;;OAIG;IACH,oBAFa,KAAK,CAAC,MAAM,CAAC,CAIzB;IAED;;;;OAIG;IACH,eAFW,MAAM,EAMhB;IAED;;;;OAIG;IACH,YAFa,MAAM,CAIlB;IAED;;;;OAIG;IACH,uBAFW,OAAO,WAAW,EAAE,MAAM,EAIpC;IAED;;;;OAIG;IACH,uBAFW,iBAAiB,EAI3B;IAED;;;;OAIG;IACH,gBAFa,iBAAiB,CAI7B;IAED;;;;OAIG;IACH,mBAFW,KAAK,CAAC,QAAQ,CAAC,EAIzB;IAED;;;;OAIG;IACH,cAFa,KAAK,CAAC,QAAQ,CAAC,CAI3B;IAED;;;;OAIG;IACH,iCAFW,OAAO,EAIjB;IAED;;;;OAIG;IACH,qBAFa,OAAO,CAInB;IAED;;;;OAIG;IACH,mBAFW,YAAY,EAItB;IAED;;;;OAIG;IACH,cAFa,YAAY,CAIxB;IAED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FW,MAAM,EAIhB;IAED;;;;;OAKG;IACH,YAHU,MAAM,CAKf;IAED;;;;;OAKG;IACH,uBAHW,QAAQ,OAKlB;IAED;;;;OAIG;IACH,sBAFW,MAAM,GAAG,MAAM,QAIzB;IAED;;;;OAIG;IACH,iBAFW,MAAM,GAAG,MAAM,QAIzB;IAED;;;;OAIG;IACH,kBAFW,MAAM,QAIhB;IAED;;;;;OAKG;IACH,sBAHW,MAAM,GACJ,kBAAkB,CAI9B;IAED;;;OAGG;IACH,qBAEC;IAED;;;;OAIG;IACH,uBAA4B;IAE5B;;OAEG;IACH,8CAAwC;IAExC;;OAEG;IACH,8DAAwD;IAExD;;OAEG;IACH,8CAAwC;IAExC;;OAEG;IACH,8CAAwC;IAExC;;OAEG;IACH,4BAAsB;IAEtB;;OAEG;IACH,wCAAkC;IAElC;;OAEG;IACH,sBAAgB;IAGhB,+CAgBC;;CACF;uBAtiBY,OAAO,UAAU,EAAE,QAAQ;kCAC3B,OAAO,SAAS,EAAE,mBAAmB;gCACrC,OAAO,SAAS,EAAE,iBAAiB;2BACnC,OAAO,SAAS,EAAE,YAAY;6BAC9B,OAAO,SAAS,EAAE,cAAc;iCAChC,OAAO,SAAS,EAAE,kBAAkB;2BAhDhB,KAAK;mCAiB/B,WAAW;2CAAX,WAAW;mCAAX,WAAW;mCAAX,WAAW;0BAAX,WAAW;gCAAX,WAAW;uBAXK,WAAW"}
@@ -12,4 +12,11 @@ export function getLonLatCenterMethod(EOxMap: import("../../main").EOxMap): Arra
12
12
  * @returns {Array<number>} - The extent of the map in longitude and latitude.
13
13
  */
14
14
  export function getLonLatExtentMethod(EOxMap: import("../../main").EOxMap): Array<number>;
15
+ /**
16
+ * Get the current map view extent.
17
+ *
18
+ * @param {import("../../main").EOxMap} EOxMap - The map object containing the map instance, projection information, and size.
19
+ * @returns {import("ol/extent").Extent} - The extent of the map in map projection.
20
+ */
21
+ export function getZoomExtentMethod(EOxMap: import("../../main").EOxMap): import("ol/extent").Extent;
15
22
  //# sourceMappingURL=getters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../../../../../map/src/methods/map/getters.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,8CAHW,OAAO,YAAY,EAAE,MAAM,GACzB,KAAK,CAAC,MAAM,CAAC,CASzB;AAED;;;;;GAKG;AACH,8CAHW,OAAO,YAAY,EAAE,MAAM,GACzB,KAAK,CAAC,MAAM,CAAC,CAazB"}
1
+ {"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../../../../../map/src/methods/map/getters.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,8CAHW,OAAO,YAAY,EAAE,MAAM,GACzB,KAAK,CAAC,MAAM,CAAC,CASzB;AAED;;;;;GAKG;AACH,8CAHW,OAAO,YAAY,EAAE,MAAM,GACzB,KAAK,CAAC,MAAM,CAAC,CAazB;AAED;;;;;GAKG;AACH,4CAHW,OAAO,YAAY,EAAE,MAAM,GACzB,OAAO,WAAW,EAAE,MAAM,CAMtC"}
@@ -2,6 +2,6 @@ export { default as animateToStateMethod } from "./animate-to-state";
2
2
  export { default as addOrUpdateLayerMethod } from "./add-update-layer";
3
3
  export { default as firstUpdatedMethod } from "./first-updated";
4
4
  export { setCenterMethod, setZoomExtentMethod, setControlsMethod, setLayersMethod, setPreventScrollMethod, setConfigMethod, setProjectionMethod, setSyncMethod } from "./setters";
5
- export { getLonLatCenterMethod, getLonLatExtentMethod } from "./getters";
5
+ export { getLonLatCenterMethod, getLonLatExtentMethod, getZoomExtentMethod } from "./getters";
6
6
  export { removeInteractionMethod, removeSelectMethod, removeControlMethod } from "./remove.js";
7
7
  //# sourceMappingURL=index.d.ts.map