@eox/drawtools 0.11.1-dev.1730225750.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-drawtools.js +34 -28
- package/dist/eox-drawtools.umd.cjs +12 -12
- package/package.json +16 -3
- package/src/main.js +5 -0
- package/src/methods/draw/emit-drawn-features.js +15 -1
- package/types/drawtools/src/components/controller.d.ts +99 -0
- package/types/drawtools/src/components/controller.d.ts.map +1 -0
- package/types/drawtools/src/components/list.d.ts +118 -0
- package/types/drawtools/src/components/list.d.ts.map +1 -0
- package/types/drawtools/src/enums/draw.d.ts +8 -0
- package/types/drawtools/src/enums/draw.d.ts.map +1 -0
- package/types/drawtools/src/enums/index.d.ts +4 -0
- package/types/drawtools/src/enums/index.d.ts.map +1 -0
- package/types/drawtools/src/enums/stories.d.ts +30 -0
- package/types/drawtools/src/enums/stories.d.ts.map +1 -0
- package/types/drawtools/src/enums/test.d.ts +8 -0
- package/types/drawtools/src/enums/test.d.ts.map +1 -0
- package/types/drawtools/src/helpers/copy-text-to-clipboard.d.ts +7 -0
- package/types/drawtools/src/helpers/copy-text-to-clipboard.d.ts.map +1 -0
- package/types/drawtools/src/helpers/generate-upload-events.d.ts +17 -0
- package/types/drawtools/src/helpers/generate-upload-events.d.ts.map +1 -0
- package/types/drawtools/src/helpers/index.d.ts +2 -0
- package/types/drawtools/src/helpers/index.d.ts.map +1 -0
- package/types/drawtools/src/main.d.ts +194 -0
- package/types/drawtools/src/main.d.ts.map +1 -0
- package/types/drawtools/src/methods/controller/index.d.ts +2 -0
- package/types/drawtools/src/methods/controller/index.d.ts.map +1 -0
- package/types/drawtools/src/methods/controller/update-button-states.d.ts +12 -0
- package/types/drawtools/src/methods/controller/update-button-states.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/create-select-handler.d.ts +10 -0
- package/types/drawtools/src/methods/draw/create-select-handler.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/discard-drawing.d.ts +9 -0
- package/types/drawtools/src/methods/draw/discard-drawing.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/emit-drawn-features.d.ts +9 -0
- package/types/drawtools/src/methods/draw/emit-drawn-features.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/handle-layer-id.d.ts +12 -0
- package/types/drawtools/src/methods/draw/handle-layer-id.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/index.d.ts +9 -0
- package/types/drawtools/src/methods/draw/index.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/init-layer.d.ts +13 -0
- package/types/drawtools/src/methods/draw/init-layer.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/init-selection.d.ts +9 -0
- package/types/drawtools/src/methods/draw/init-selection.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/on-draw-end.d.ts +9 -0
- package/types/drawtools/src/methods/draw/on-draw-end.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/start-drawing.d.ts +9 -0
- package/types/drawtools/src/methods/draw/start-drawing.d.ts.map +1 -0
- package/types/drawtools/src/methods/list/delete-feature.d.ts +11 -0
- package/types/drawtools/src/methods/list/delete-feature.d.ts.map +1 -0
- package/types/drawtools/src/methods/list/first-update.d.ts +8 -0
- package/types/drawtools/src/methods/list/first-update.d.ts.map +1 -0
- package/types/drawtools/src/methods/list/hover-feature.d.ts +10 -0
- package/types/drawtools/src/methods/list/hover-feature.d.ts.map +1 -0
- package/types/drawtools/src/methods/list/index.d.ts +5 -0
- package/types/drawtools/src/methods/list/index.d.ts.map +1 -0
- package/types/drawtools/src/methods/list/select-deselect-feature.d.ts +9 -0
- package/types/drawtools/src/methods/list/select-deselect-feature.d.ts.map +1 -0
- package/types/drawtools/src/style.eox.d.ts +2 -0
- package/types/drawtools/src/style.eox.d.ts.map +1 -0
- package/types/map/src/components/compare.d.ts +31 -0
- package/types/map/src/components/compare.d.ts.map +1 -0
- package/types/map/src/components/tooltip.d.ts +36 -0
- package/types/map/src/components/tooltip.d.ts.map +1 -0
- package/types/map/src/controls/controls.d.ts +27 -0
- package/types/map/src/controls/controls.d.ts.map +1 -0
- package/types/map/src/controls/geo-location.d.ts +41 -0
- package/types/map/src/controls/geo-location.d.ts.map +1 -0
- package/types/map/src/controls/loading-indicator.d.ts +20 -0
- package/types/map/src/controls/loading-indicator.d.ts.map +1 -0
- package/types/map/src/enums/index.d.ts +2 -0
- package/types/map/src/enums/index.d.ts.map +1 -0
- package/types/map/src/enums/map.d.ts +5 -0
- package/types/map/src/enums/map.d.ts.map +1 -0
- package/types/map/src/helpers/add-new-feature.d.ts +14 -0
- package/types/map/src/helpers/add-new-feature.d.ts.map +1 -0
- package/types/map/src/helpers/cancel-animation.d.ts +7 -0
- package/types/map/src/helpers/cancel-animation.d.ts.map +1 -0
- package/types/map/src/helpers/center.d.ts +12 -0
- package/types/map/src/helpers/center.d.ts.map +1 -0
- package/types/map/src/helpers/coordinates-roughly-equals.d.ts +12 -0
- package/types/map/src/helpers/coordinates-roughly-equals.d.ts.map +1 -0
- package/types/map/src/helpers/draw.d.ts +22 -0
- package/types/map/src/helpers/draw.d.ts.map +1 -0
- package/types/map/src/helpers/generate.d.ts +30 -0
- package/types/map/src/helpers/generate.d.ts.map +1 -0
- package/types/map/src/helpers/index.d.ts +16 -0
- package/types/map/src/helpers/index.d.ts.map +1 -0
- package/types/map/src/helpers/interactions.d.ts +16 -0
- package/types/map/src/helpers/interactions.d.ts.map +1 -0
- package/types/map/src/helpers/layer.d.ts +24 -0
- package/types/map/src/helpers/layer.d.ts.map +1 -0
- package/types/map/src/helpers/parse-feature.d.ts +8 -0
- package/types/map/src/helpers/parse-feature.d.ts.map +1 -0
- package/types/map/src/helpers/parse-text.d.ts +33 -0
- package/types/map/src/helpers/parse-text.d.ts.map +1 -0
- package/types/map/src/helpers/register-projection-from-code.d.ts +8 -0
- package/types/map/src/helpers/register-projection-from-code.d.ts.map +1 -0
- package/types/map/src/helpers/register-projection.d.ts +11 -0
- package/types/map/src/helpers/register-projection.d.ts.map +1 -0
- package/types/map/src/helpers/select.d.ts +77 -0
- package/types/map/src/helpers/select.d.ts.map +1 -0
- package/types/map/src/helpers/tile-grid.d.ts +14 -0
- package/types/map/src/helpers/tile-grid.d.ts.map +1 -0
- package/types/map/src/helpers/transform.d.ts +19 -0
- package/types/map/src/helpers/transform.d.ts.map +1 -0
- package/types/map/src/main.d.ts +337 -0
- package/types/map/src/main.d.ts.map +1 -0
- package/types/map/src/methods/map/add-update-layer.d.ts +13 -0
- package/types/map/src/methods/map/add-update-layer.d.ts.map +1 -0
- package/types/map/src/methods/map/animate-to-state.d.ts +7 -0
- package/types/map/src/methods/map/animate-to-state.d.ts.map +1 -0
- package/types/map/src/methods/map/first-updated.d.ts +9 -0
- package/types/map/src/methods/map/first-updated.d.ts.map +1 -0
- package/types/map/src/methods/map/getters.d.ts +15 -0
- package/types/map/src/methods/map/getters.d.ts.map +1 -0
- package/types/map/src/methods/map/index.d.ts +7 -0
- package/types/map/src/methods/map/index.d.ts.map +1 -0
- package/types/map/src/methods/map/remove.d.ts +22 -0
- package/types/map/src/methods/map/remove.d.ts.map +1 -0
- package/types/map/src/methods/map/setters.d.ts +82 -0
- package/types/map/src/methods/map/setters.d.ts.map +1 -0
- package/types/map/types.d.ts +146 -0
- package/types/map/types.d.ts.map +1 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as firstUpdatedMethod } from "./first-update";
|
|
2
|
+
export { default as hoverFeatureMethod } from "./hover-feature";
|
|
3
|
+
export { default as deleteFeatureMethod } from "./delete-feature";
|
|
4
|
+
export { default as selectAndDeselectFeatureMethod } from "./select-deselect-feature";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/methods/list/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default selectAndDeselectFeature;
|
|
2
|
+
/**
|
|
3
|
+
* Handles selecting and deselecting a feature on the map.
|
|
4
|
+
*
|
|
5
|
+
* @param {import("ol").Feature} feature - The selected feature.
|
|
6
|
+
* @param {import("../../components/list").EOxDrawToolsList} EoxDrawToolList - The list of drawn features.
|
|
7
|
+
*/
|
|
8
|
+
declare function selectAndDeselectFeature(feature: import("ol").Feature, EoxDrawToolList: import("../../components/list").EOxDrawToolsList): void;
|
|
9
|
+
//# sourceMappingURL=select-deselect-feature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-deselect-feature.d.ts","sourceRoot":"","sources":["../../../../../src/methods/list/select-deselect-feature.js"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,mDAHW,OAAO,IAAI,EAAE,OAAO,mBACpB,OAAO,uBAAuB,EAAE,gBAAgB,QAsB1D"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const styleEOX: "\n button.discard:before {\n content: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FF5252' viewBox='0 0 24 24'%3E%3Ctitle%3Etrash-can-outline%3C/title%3E%3Cpath d='M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z' /%3E%3C/svg%3E\")\n }\n button.pointer:before {\n content: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Ecursor-default-click%3C/title%3E%3Cpath d='M10.76,8.69A0.76,0.76 0 0,0 10,9.45V20.9C10,21.32 10.34,21.66 10.76,21.66C10.95,21.66 11.11,21.6 11.24,21.5L13.15,19.95L14.81,23.57C14.94,23.84 15.21,24 15.5,24C15.61,24 15.72,24 15.83,23.92L18.59,22.64C18.97,22.46 19.15,22 18.95,21.63L17.28,18L19.69,17.55C19.85,17.5 20,17.43 20.12,17.29C20.39,16.97 20.35,16.5 20,16.21L11.26,8.86L11.25,8.87C11.12,8.76 10.95,8.69 10.76,8.69M15,10V8H20V10H15M13.83,4.76L16.66,1.93L18.07,3.34L15.24,6.17L13.83,4.76M10,0H12V5H10V0M3.93,14.66L6.76,11.83L8.17,13.24L5.34,16.07L3.93,14.66M3.93,3.34L5.34,1.93L8.17,4.76L6.76,6.17L3.93,3.34M7,10H2V8H7V10' /%3E%3C/svg%3E\");\n }\n button.polygon:before {\n content: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eshape-polygon-plus%3C/title%3E%3Cpath d='M17,15.7V13H19V17L10,21L3,14L7,5H11V7H8.3L5.4,13.6L10.4,18.6L17,15.7M22,5V7H19V10H17V7H14V5H17V2H19V5H22Z' /%3E%3C/svg%3E\");\n }\n button.import:before {\n content: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eupload%3C/title%3E%3Cpath fill='%23004170' d='M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z' /%3E%3C/svg%3E\");\n }\n .wrap-btn {\n display: flex;\n justify-content: space-between;\n }\n eox-drawtools-list {\n width: 100%;\n }\n .json-wrapper {\n margin: 0.4rem 0rem;\n padding: 0.75rem;\n background: var(--secondary-color-hover);\n position: relative;\n }\n .json-wrapper textarea {\n height: 200px;\n }\n .icon-copy {\n position: absolute;\n bottom: 26px;\n right: 26px;\n border-radius: 4px;\n height: 26px;\n padding: 4px 6px;\n }\n .icon-copy:before {\n width: 14px;\n min-width: 14px;\n height: 14px;\n display: flex margin-right: 6px;\n color: white;\n content: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Econtent-copy%3C/title%3E%3Cpath d='M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z' fill='white' /%3E%3C/svg%3E\")\n }\n";
|
|
2
|
+
//# sourceMappingURL=style.eox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.eox.d.ts","sourceRoot":"","sources":["../../../src/style.eox.js"],"names":[],"mappings":"AAAA,qnFA6CE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A custom element for comparing two map layers or images using a slider.
|
|
3
|
+
* This component creates a split-screen view with an adjustable slider to compare two images or layers.
|
|
4
|
+
*/
|
|
5
|
+
export class EOxMapCompare extends LitElement {
|
|
6
|
+
static get properties(): {
|
|
7
|
+
value: {
|
|
8
|
+
attribute: string;
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
};
|
|
11
|
+
enabled: {
|
|
12
|
+
attribute: string;
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The current position of the comparison slider (0 to 100).
|
|
18
|
+
* @type {Number}
|
|
19
|
+
*/
|
|
20
|
+
value: number;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the comparison is enabled and which part is visible.
|
|
23
|
+
* Accepts values: "first", "second", or "true" (default).
|
|
24
|
+
* @type {String}
|
|
25
|
+
*/
|
|
26
|
+
enabled: string;
|
|
27
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
28
|
+
#private;
|
|
29
|
+
}
|
|
30
|
+
import { LitElement } from "lit";
|
|
31
|
+
//# sourceMappingURL=compare.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A custom element that serves as a tooltip for the map.
|
|
3
|
+
* Displays information about map features in a styled format.
|
|
4
|
+
*/
|
|
5
|
+
export class EOxMapTooltip extends LitElement {
|
|
6
|
+
static get properties(): {
|
|
7
|
+
feature: {
|
|
8
|
+
attribute: boolean;
|
|
9
|
+
property: boolean;
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
};
|
|
12
|
+
propertyTransform: {
|
|
13
|
+
attribute: boolean;
|
|
14
|
+
property: boolean;
|
|
15
|
+
type: FunctionConstructor;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* The rendered feature.
|
|
20
|
+
*
|
|
21
|
+
* @type {import("ol/Feature").default | import("ol/render/Feature").default}
|
|
22
|
+
*/
|
|
23
|
+
feature: import("ol/Feature").default | import("ol/render/Feature").default;
|
|
24
|
+
/**
|
|
25
|
+
* A function to transform properties before rendering.
|
|
26
|
+
*
|
|
27
|
+
* @type {Function}
|
|
28
|
+
* @param {{ key: string; value: unknown }} property
|
|
29
|
+
* @param {import("ol/Feature").default | import("ol/render/Feature").default} _feature
|
|
30
|
+
*/
|
|
31
|
+
propertyTransform: Function;
|
|
32
|
+
render(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
33
|
+
}
|
|
34
|
+
import { LitElement } from "lit";
|
|
35
|
+
import { nothing } from "lit";
|
|
36
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adds a control to the map and to the `mapControls` dictionary if it doesn't exist yet.
|
|
3
|
+
* Removes and remakes the control if the options differ; otherwise, leaves the control untouched.
|
|
4
|
+
*
|
|
5
|
+
* @param {import("../main").EOxMap} EOxMap - The map instance.
|
|
6
|
+
* @param {ControlDictionary} existingControls - Dictionary of existing controls.
|
|
7
|
+
* @param {ControlType} type - The type of control to add or update.
|
|
8
|
+
* @param {object} options - Options for the control.
|
|
9
|
+
*/
|
|
10
|
+
export function addOrUpdateControl(EOxMap: import("../main").EOxMap, existingControls: ControlDictionary, type: ControlType, options: object): void;
|
|
11
|
+
/**
|
|
12
|
+
* Adds a control to the map.
|
|
13
|
+
*
|
|
14
|
+
* @param {import("../main").EOxMap} EOxMap - The map instance.
|
|
15
|
+
* @param {ControlType} type - The type of control to add.
|
|
16
|
+
* @param {object} options - Options for the control.
|
|
17
|
+
*/
|
|
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
|
+
export type ControlDictionary = import("../../types").ControlDictionary;
|
|
26
|
+
export type ControlType = import("../../types").ControlType;
|
|
27
|
+
//# sourceMappingURL=controls.d.ts.map
|
|
@@ -0,0 +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,QAmBhB;AAED;;;;GAIG;AACH,2CAFW,OAAO,SAAS,EAAE,MAAM,QAsClC;gCAvGY,OAAO,aAAa,EAAE,iBAAiB;0BACvC,OAAO,aAAa,EAAE,WAAW"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import("../../types").GeolocationOptions} GeolocationOptions
|
|
3
|
+
*/
|
|
4
|
+
export default class GeolocationControl extends Control {
|
|
5
|
+
/**
|
|
6
|
+
* @param {GeolocationOptions} [opt_options] - Control options.
|
|
7
|
+
*/
|
|
8
|
+
constructor(opt_options?: GeolocationOptions);
|
|
9
|
+
_centerWhenReady: boolean;
|
|
10
|
+
_highAccuracy: boolean;
|
|
11
|
+
_trackAccuracy: boolean;
|
|
12
|
+
_trackHeading: boolean;
|
|
13
|
+
_positionFeature: Feature<Point>;
|
|
14
|
+
_source: VectorSource<Feature<Point>>;
|
|
15
|
+
_accuracyFeature: Feature<import("ol/geom").Geometry>;
|
|
16
|
+
_layer: VectorLayer<VectorSource<Feature<Point>>, Feature<Point>>;
|
|
17
|
+
/**
|
|
18
|
+
* Initializes the geolocation control.
|
|
19
|
+
* This will prompt the user for geolocation permissions in the browser.
|
|
20
|
+
*/
|
|
21
|
+
initGeolocation(): Promise<any>;
|
|
22
|
+
_geolocation: Geolocation;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the geolocation control element.
|
|
25
|
+
*
|
|
26
|
+
* @returns {HTMLElement} - The control element.
|
|
27
|
+
*/
|
|
28
|
+
getElement(): HTMLElement;
|
|
29
|
+
/**
|
|
30
|
+
* Centers the map on the position of the geolocation, if possible.
|
|
31
|
+
*/
|
|
32
|
+
centerOnPosition(): Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
export type GeolocationOptions = import("../../types").GeolocationOptions;
|
|
35
|
+
import { Control } from "ol/control";
|
|
36
|
+
import Point from "ol/geom/Point";
|
|
37
|
+
import Feature from "ol/Feature";
|
|
38
|
+
import { Vector as VectorSource } from "ol/source";
|
|
39
|
+
import { Vector as VectorLayer } from "ol/layer";
|
|
40
|
+
import Geolocation from "ol/Geolocation";
|
|
41
|
+
//# sourceMappingURL=geo-location.d.ts.map
|
|
@@ -0,0 +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,aAAa,EAAE,kBAAkB;wBAT7B,YAAY;kBAGlB,eAAe;oBAFb,YAAY;uCAGO,WAAW;sCACZ,UAAU;wBAHxB,gBAAgB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import("../../types").LoadingIndicatorOptions} LoadingIndicatorOptions
|
|
3
|
+
*/
|
|
4
|
+
export default class LoadingIndicatorControl extends Control {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a loading indicator control to show when map loading events occur.
|
|
7
|
+
*
|
|
8
|
+
* @param {LoadingIndicatorOptions} [opt_options] - Options for configuring the loading indicator control.
|
|
9
|
+
*/
|
|
10
|
+
constructor(opt_options?: LoadingIndicatorOptions);
|
|
11
|
+
/**
|
|
12
|
+
* Returns the loading indicator element.
|
|
13
|
+
*
|
|
14
|
+
* @returns {HTMLElement} - The control element.
|
|
15
|
+
*/
|
|
16
|
+
getElement(): HTMLElement;
|
|
17
|
+
}
|
|
18
|
+
export type LoadingIndicatorOptions = import("../../types").LoadingIndicatorOptions;
|
|
19
|
+
import { Control } from "ol/control.js";
|
|
20
|
+
//# sourceMappingURL=loading-indicator.d.ts.map
|
|
@@ -0,0 +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,aAAa,EAAE,uBAAuB;wBAHlC,eAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../map/src/enums/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../../../map/src/enums/map.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adds new features to a specified vector layer from drawing/upload/input change events.
|
|
3
|
+
* This function supports handling both single and multiple features.
|
|
4
|
+
*
|
|
5
|
+
* @param {import("ol/interaction/Draw").DrawEvent | import("ol/interaction/DragAndDrop").DragAndDropEvent | { features: Array<import("ol/Feature").default> }} e - The event object from drawing or drag-and-drop actions, containing the features.
|
|
6
|
+
* @param {import("ol/layer").Vector} vectorLayer - The vector layer to which features will be added.
|
|
7
|
+
* @param {import("../main").EOxMap} EOxMap - The EOxMap instance for dispatching custom events and adjusting the view.
|
|
8
|
+
* @param {boolean} isDraw - Optional. If true, indicates the features come from a drawing event.
|
|
9
|
+
* @param {boolean} replaceFeatures - Optional. If true, existing features in the layer are cleared before adding new ones.
|
|
10
|
+
*/
|
|
11
|
+
export default function addNewFeature(e: import("ol/interaction/Draw").DrawEvent | import("ol/interaction/DragAndDrop").DragAndDropEvent | {
|
|
12
|
+
features: Array<import("ol/Feature").default>;
|
|
13
|
+
}, vectorLayer: import("ol/layer").Vector, EOxMap: import("../main").EOxMap, isDraw?: boolean, replaceFeatures?: boolean): void;
|
|
14
|
+
//# sourceMappingURL=add-new-feature.d.ts.map
|
|
@@ -0,0 +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,MAAM,OAAO,YAAY,EAAE,OAAO,CAAC,CAAA;CAAE,eACnJ,OAAO,UAAU,EAAE,MAAM,UACzB,OAAO,SAAS,EAAE,MAAM,WACxB,OAAO,oBACP,OAAO,QAgEjB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* cancels any animation of the given view
|
|
3
|
+
*
|
|
4
|
+
* @param {import("ol/View").default} view - The OpenLayers view object whose animations need to be canceled.
|
|
5
|
+
*/
|
|
6
|
+
export default function cancelAnimation(view: import("ol/View").default): void;
|
|
7
|
+
//# sourceMappingURL=cancel-animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancel-animation.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/cancel-animation.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,8CAFW,OAAO,SAAS,EAAE,OAAO,QAMnC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* returns an ol-coordinate from a given center property.
|
|
3
|
+
* the coordinate expected coordinate system is EPSG:3857, however,
|
|
4
|
+
* if both parts of the coordinate are between -180 and 180, the coordinate
|
|
5
|
+
* system EPSG:4326 is assumed.
|
|
6
|
+
* use `map.getView().setCenter()` to manually set the center of the view.
|
|
7
|
+
*
|
|
8
|
+
* @param {Array<number>} centerProperty - The input coordinate as [longitude, latitude].
|
|
9
|
+
* @returns {import("ol/coordinate").Coordinate} - The converted coordinate in EPSG:3857.
|
|
10
|
+
*/
|
|
11
|
+
export function getCenterFromProperty(centerProperty: Array<number>): import("ol/coordinate").Coordinate;
|
|
12
|
+
//# sourceMappingURL=center.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"center.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/center.js"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,sDAHW,MAAM,MAAM,CAAC,GACX,OAAO,eAAe,EAAE,UAAU,CAyB9C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A helper function to determine approximate equality between two coordinates.
|
|
3
|
+
* This function is based on OpenLayers' "equals" method but includes a tolerance (epsilon).
|
|
4
|
+
*
|
|
5
|
+
* @param {import("ol/coordinate").Coordinate} coordinate1 - The first coordinate to compare.
|
|
6
|
+
* @param {import("ol/coordinate").Coordinate} coordinate2 - The first coordinate to compare.
|
|
7
|
+
* @param {number?} [epsilon] - The first coordinate to compare.
|
|
8
|
+
*
|
|
9
|
+
* @return {boolean} - True if the coordinates are approximately equal, false otherwise.
|
|
10
|
+
*/
|
|
11
|
+
export default function coordinatesRoughlyEquals(coordinate1: import("ol/coordinate").Coordinate, coordinate2: import("ol/coordinate").Coordinate, epsilon?: number | null): boolean;
|
|
12
|
+
//# sourceMappingURL=coordinates-roughly-equals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coordinates-roughly-equals.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/coordinates-roughly-equals.js"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,8DANW,OAAO,eAAe,EAAE,UAAU,eAClC,OAAO,eAAe,EAAE,UAAU,YAClC,MAAM,UAEL,OAAO,CAoBlB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import("../../types").DrawOptions} DrawOptions
|
|
3
|
+
* @typedef {import("../../types").SelectOptions} SelectOptions
|
|
4
|
+
* @typedef {import("../../types").SelectLayer} SelectLayer
|
|
5
|
+
* @typedef {import("ol/layer").Vector} VectorLayer
|
|
6
|
+
* */
|
|
7
|
+
/**
|
|
8
|
+
* Adds a `draw` interaction to the map. If `options.modify` is set, it also adds a `modify` interaction.
|
|
9
|
+
* The `modify` interaction's name follows the convention `${DrawOptions.id}_modify`.
|
|
10
|
+
*
|
|
11
|
+
* @param {import("../main").EOxMap} EOxMap - The map object where the interactions will be added.
|
|
12
|
+
* @param {import("ol/layer").Vector<import("ol/source").Vector>} drawLayer - The map object where the interactions will be added.
|
|
13
|
+
* @param {DrawOptions} options - The map object where the interactions will be added.
|
|
14
|
+
*
|
|
15
|
+
* @throws Will throw an error if an interaction with the given ID already exists.
|
|
16
|
+
*/
|
|
17
|
+
export function addDraw(EOxMap: import("../main").EOxMap, drawLayer: import("ol/layer").Vector<import("ol/source").Vector>, options: DrawOptions): void;
|
|
18
|
+
export type DrawOptions = import("../../types").DrawOptions;
|
|
19
|
+
export type SelectOptions = import("../../types").SelectOptions;
|
|
20
|
+
export type SelectLayer = import("../../types").SelectLayer;
|
|
21
|
+
export type VectorLayer = import("ol/layer").Vector;
|
|
22
|
+
//# sourceMappingURL=draw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draw.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/draw.js"],"names":[],"mappings":"AAIA;;;;;KAKK;AAEL;;;;;;;;;GASG;AACH,gCANW,OAAO,SAAS,EAAE,MAAM,aACxB,OAAO,UAAU,EAAE,MAAM,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,WACrD,WAAW,QA6DrB;0BAzEY,OAAO,aAAa,EAAE,WAAW;4BACjC,OAAO,aAAa,EAAE,aAAa;0BACnC,OAAO,aAAa,EAAE,WAAW;0BACjC,OAAO,UAAU,EAAE,MAAM"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates an OpenLayers layer from a given EoxLayer definition object.
|
|
3
|
+
*
|
|
4
|
+
* @param {import("../main").EOxMap} EOxMap - The map instance.
|
|
5
|
+
* @param {EoxLayer} layer - The layer definition.
|
|
6
|
+
* @param {boolean=} createInteractions - Whether to create interactions for the layer (default: true).
|
|
7
|
+
* @throws Will throw an error if the specified layer or source type is not supported.
|
|
8
|
+
*/
|
|
9
|
+
export function createLayer(EOxMap: import("../main").EOxMap, layer: EoxLayer, createInteractions?: boolean | undefined): any;
|
|
10
|
+
/**
|
|
11
|
+
* Updates an existing layer with a new definition.
|
|
12
|
+
*
|
|
13
|
+
* @param {import("../main").EOxMap} EOxMap - The map instance.
|
|
14
|
+
* @param {EoxLayer} newLayerDefinition - The new layer definition.
|
|
15
|
+
* @param {import("ol/layer/Base").default} existingLayer - The existing layer to be updated.
|
|
16
|
+
* @returns {import("ol/layer/Base").default} - The updated layer.
|
|
17
|
+
*
|
|
18
|
+
* @throws Will throw an error if the new layer is not compatible with the existing one.
|
|
19
|
+
*/
|
|
20
|
+
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 type AnyLayer = import("../../types").AnyLayer;
|
|
23
|
+
export type EoxLayer = import("../../types").EoxLayer;
|
|
24
|
+
export type SelectLayer = import("../../types").SelectLayer;
|
|
25
|
+
export type EOxInteraction = import("../../types").EOxInteraction;
|
|
26
|
+
export type DrawOptions = import("../../types").DrawOptions;
|
|
27
|
+
export type SelectOptions = import("../../types").SelectOptions;
|
|
28
|
+
export type AnyLayerWithSource = import("../../types").AnyLayerWithSource;
|
|
29
|
+
export type VectorOrVectorTileLayer = import("../../types").VectorOrVectorTileLayer;
|
|
30
|
+
//# sourceMappingURL=generate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/generate.js"],"names":[],"mappings":"AAkEA;;;;;;;GAOG;AACH,oCALW,OAAO,SAAS,EAAE,MAAM,SACxB,QAAQ,uBACR,OAAO,mBAkGjB;AAyBD;;;;;;;;;GASG;AACH,oCAPW,OAAO,SAAS,EAAE,MAAM,sBACxB,QAAQ,iBACR,OAAO,eAAe,EAAE,OAAO,GAC7B,OAAO,eAAe,EAAE,OAAO,CA0L3C;AASM,uCAJI,OAAO,SAAS,EAAE,MAAM,cACxB,MAAM,QAAQ,CAAC,GACb,MAAM,QAAQ,CAAC,CAO3B;uBAzXY,OAAO,aAAa,EAAE,QAAQ;uBAC9B,OAAO,aAAa,EAAE,QAAQ;0BAC9B,OAAO,aAAa,EAAE,WAAW;6BACjC,OAAO,aAAa,EAAE,cAAc;0BACpC,OAAO,aAAa,EAAE,WAAW;4BACjC,OAAO,aAAa,EAAE,aAAa;iCACnC,OAAO,aAAa,EAAE,kBAAkB;sCACxC,OAAO,aAAa,EAAE,uBAAuB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { default as addNewFeature } from "./add-new-feature";
|
|
2
|
+
export { default as cancelAnimation } from "./cancel-animation";
|
|
3
|
+
export { default as parseTextToFeature } from "./parse-text";
|
|
4
|
+
export { default as registerProjection } from "./register-projection";
|
|
5
|
+
export { default as registerProjectionFromCode } from "./register-projection-from-code";
|
|
6
|
+
export { default as parseFeature } from "./parse-feature";
|
|
7
|
+
export { default as coordinatesRoughlyEquals } from "./coordinates-roughly-equals";
|
|
8
|
+
export { getCenterFromProperty } from "./center";
|
|
9
|
+
export { addDraw } from "./draw";
|
|
10
|
+
export { generateTileGrid } from "./tile-grid";
|
|
11
|
+
export { transform, transformExtent } from "./transform";
|
|
12
|
+
export { addScrollInteractions, removeDefaultScrollInteractions } from "./interactions";
|
|
13
|
+
export { EOxSelectInteraction, addSelect } from "./select";
|
|
14
|
+
export { getLayerById, getFlatLayersArray } from "./layer";
|
|
15
|
+
export { createLayer, updateLayer } from "./generate";
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adds interactions to control scroll behavior on the specified OpenLayers map.
|
|
3
|
+
* If `customInteraction` is true, enables zooming only with a platform-specific modifier key (e.g., `Ctrl` on Windows).
|
|
4
|
+
* On touch devices, allows dragging with two fingers or a modifier key.
|
|
5
|
+
*
|
|
6
|
+
* @param {import("ol").Map} map - The OpenLayers map to which the interactions should be added.
|
|
7
|
+
* @param {boolean} customInteraction - Indicates whether to use custom interactions (default: false).
|
|
8
|
+
*/
|
|
9
|
+
export function addScrollInteractions(map: import("ol").Map, customInteraction?: boolean): void;
|
|
10
|
+
/**
|
|
11
|
+
* Removes interactions that prevent scroll behavior from the specified OpenLayers map.
|
|
12
|
+
*
|
|
13
|
+
* @param {import("ol").Map} map - The OpenLayers map from which the interactions should be removed.
|
|
14
|
+
*/
|
|
15
|
+
export function removeDefaultScrollInteractions(map: import("ol").Map): void;
|
|
16
|
+
//# sourceMappingURL=interactions.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import("../../types").AnyLayerWithSource} AnyLayerWithSource
|
|
3
|
+
* @typedef {import("../../types").AnyLayer} AnyLayer
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves a layer by its ID from the EOxMap instance.
|
|
7
|
+
*
|
|
8
|
+
* @param {import("../main").EOxMap} EOxMap - Instance of the EOxMap class.
|
|
9
|
+
* @param {string} layerId - The ID of the OpenLayers layer to find.
|
|
10
|
+
* @returns {AnyLayerWithSource} - The layer with the specified ID, or `undefined` if it does not exist.
|
|
11
|
+
*/
|
|
12
|
+
export function getLayerById(EOxMap: import("../main").EOxMap, layerId: string): AnyLayerWithSource;
|
|
13
|
+
/**
|
|
14
|
+
* Returns a flat array of all map layers, including nested layers within groups.
|
|
15
|
+
*
|
|
16
|
+
* Note: If you want to get all layers without groups, use the native OpenLayers `getAllLayers` method:
|
|
17
|
+
* https://openlayers.org/en/latest/apidoc/module-ol_Map-Map.html#getAllLayers
|
|
18
|
+
*
|
|
19
|
+
* @param {Array<AnyLayer>} layers - Array of OpenLayers layers, possibly containing groups.
|
|
20
|
+
*/
|
|
21
|
+
export function getFlatLayersArray(layers: Array<AnyLayer>): any[];
|
|
22
|
+
export type AnyLayerWithSource = import("../../types").AnyLayerWithSource;
|
|
23
|
+
export type AnyLayer = import("../../types").AnyLayer;
|
|
24
|
+
//# sourceMappingURL=layer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/layer.js"],"names":[],"mappings":"AAEA;;;GAGG;AAEH;;;;;;GAMG;AACH,qCAJW,OAAO,SAAS,EAAE,MAAM,WACxB,MAAM,GACJ,kBAAkB,CAQ9B;AAED;;;;;;;GAOG;AACH,2CAFW,MAAM,QAAQ,CAAC,SAiCzB;iCA1DY,OAAO,aAAa,EAAE,kBAAkB;uBACxC,OAAO,aAAa,EAAE,QAAQ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts an array of OpenLayers features into a GeoJSON object.
|
|
3
|
+
*
|
|
4
|
+
* @param {Array<import("ol/Feature").default>} features - An array of OpenLayers features to be converted.
|
|
5
|
+
* @returns {Object} - A GeoJSON object representing the provided features.
|
|
6
|
+
*/
|
|
7
|
+
export default function parseFeature(features: Array<import("ol/Feature").default>): any;
|
|
8
|
+
//# sourceMappingURL=parse-feature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-feature.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/parse-feature.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,+CAHW,MAAM,OAAO,YAAY,EAAE,OAAO,CAAC,OAS7C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This function reads text and attempts to parse it as GeoJSON, KML, or TopoJSON.
|
|
3
|
+
* If successful, it adds the parsed features to the map.
|
|
4
|
+
*
|
|
5
|
+
* @param {string} text - The string containing the geographic data to be parsed.
|
|
6
|
+
* @param {import("ol/layer").Vector} vectorLayer - The vector layer to which the parsed features will be added.
|
|
7
|
+
* @param {import("../main").EOxMap} EOxMap - An instance of EOxMap, used here for context and potentially for further operations like event dispatching.
|
|
8
|
+
* @param {boolean} replaceFeatures - Optional boolean flag indicating whether to replace the existing features with the new ones.
|
|
9
|
+
* @return {void}
|
|
10
|
+
*/
|
|
11
|
+
export default function parseTextToFeature(text: string, vectorLayer: import("ol/layer").Vector, EOxMap: import("../main").EOxMap, replaceFeatures?: boolean): void;
|
|
12
|
+
/**
|
|
13
|
+
* Function to check if a string is valid GeoJSON
|
|
14
|
+
*
|
|
15
|
+
* @param {string} text - The string to be checked.
|
|
16
|
+
* @returns {boolean} - `true` if the string is a valid GeoJSON object, `false` otherwise.
|
|
17
|
+
*/
|
|
18
|
+
export function isGeoJSON(text: string): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Function to check if a string is valid KML
|
|
21
|
+
*
|
|
22
|
+
* @param {string} text - The string to be checked.
|
|
23
|
+
* @returns {boolean} - `true` if the string contains KML tags, `false` otherwise.
|
|
24
|
+
*/
|
|
25
|
+
export function isKML(text: string): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Function to check if a string is valid TopoJSON
|
|
28
|
+
*
|
|
29
|
+
* @param {string} text - The string to be checked.
|
|
30
|
+
* @returns {boolean} - `true` if the string is a valid TopoJSON object, `false` otherwise.
|
|
31
|
+
*/
|
|
32
|
+
export function isTopoJSON(text: string): boolean;
|
|
33
|
+
//# sourceMappingURL=parse-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-text.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/parse-text.js"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,iDANW,MAAM,eACN,OAAO,UAAU,EAAE,MAAM,UACzB,OAAO,SAAS,EAAE,MAAM,oBACxB,OAAO,GACN,IAAI,CA8Bf;AAmBD;;;;;GAKG;AACH,gCAHW,MAAM,GACJ,OAAO,CAWnB;AAED;;;;;GAKG;AACH,4BAHW,MAAM,GACJ,OAAO,CAKnB;AAED;;;;;GAKG;AACH,iCAHW,MAAM,GACJ,OAAO,CAWnB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fetches the projection definition for a given EPSG code from epsg.io and registers the projection using proj4.
|
|
3
|
+
*
|
|
4
|
+
* @param {string | number} code - The EPSG code (e.g., 4326 or 'EPSG:4326').
|
|
5
|
+
* @returns {Promise<import("ol/proj/Projection").default>} - A promise that resolves to the registered projection.
|
|
6
|
+
*/
|
|
7
|
+
export default function registerProjectionFromCode(code: string | number): Promise<import("ol/proj/Projection").default>;
|
|
8
|
+
//# sourceMappingURL=register-projection-from-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-projection-from-code.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/register-projection-from-code.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,yDAHW,MAAM,GAAG,MAAM,GACb,QAAQ,OAAO,oBAAoB,EAAE,OAAO,CAAC,CAQzD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registers a projection under a given name using a proj4 definition.
|
|
3
|
+
* This allows OpenLayers to recognize and work with custom or predefined projections.
|
|
4
|
+
*
|
|
5
|
+
* @param {string} name - The name of the projection (e.g., "EPSG:4326").
|
|
6
|
+
* @param {string | proj4.ProjectionDefinition} projection - The proj4 projection definition string or object.
|
|
7
|
+
* @param {import("ol/extent").Extent} [extent=undefined] - Optional extent for the projection. Defines the coordinate system's valid area.
|
|
8
|
+
*/
|
|
9
|
+
export default function registerProjection(name: string, projection: string | proj4.ProjectionDefinition, extent?: import("ol/extent").Extent): void;
|
|
10
|
+
import proj4 from "proj4";
|
|
11
|
+
//# sourceMappingURL=register-projection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-projection.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/register-projection.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,iDAJW,MAAM,cACN,MAAM,GAAG,MAAM,oBAAoB,WACnC,OAAO,WAAW,EAAE,MAAM,QAepC;kBAzBiB,OAAO"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adds a `select` interaction to the map.
|
|
3
|
+
*
|
|
4
|
+
* @param {EOxMap} EOxMap - Instance of EOxMap class.
|
|
5
|
+
* @param {SelectLayer} selectLayer - Layer to be selected.
|
|
6
|
+
* @param {SelectOptions | DrawOptions} options - Options for the select interaction.
|
|
7
|
+
* @returns {EOxSelectInteraction} - The created selection interaction instance.
|
|
8
|
+
*
|
|
9
|
+
* @throws Will throw an error if an interaction with the specified ID already exists.
|
|
10
|
+
*/
|
|
11
|
+
export function addSelect(EOxMap: EOxMap, selectLayer: SelectLayer, options: SelectOptions | DrawOptions): EOxSelectInteraction;
|
|
12
|
+
/**
|
|
13
|
+
* @typedef {import('../main').EOxMap} EOxMap
|
|
14
|
+
* @typedef {import("../../types").EoxLayer} EoxLayer
|
|
15
|
+
* @typedef {import("../../types").SelectLayer} SelectLayer
|
|
16
|
+
* @typedef {import("../../types").SelectOptions} SelectOptions
|
|
17
|
+
* @typedef {import("../../types").DrawOptions} DrawOptions
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Class representing the EOxSelectInteraction.
|
|
21
|
+
* Handles the selection interaction for a specified layer, including highlighting features,
|
|
22
|
+
* displaying tooltips, and panning into selected features.
|
|
23
|
+
*/
|
|
24
|
+
export class EOxSelectInteraction {
|
|
25
|
+
/**
|
|
26
|
+
* @param {EOxMap} eoxMap - Instance of the EOxMap class.
|
|
27
|
+
* @param {SelectLayer} selectLayer - Layer for selection.
|
|
28
|
+
* @param {SelectOptions} options - Options for the selection interaction.
|
|
29
|
+
*/
|
|
30
|
+
constructor(eoxMap: EOxMap, selectLayer: SelectLayer, options: SelectOptions);
|
|
31
|
+
eoxMap: import("../main").EOxMap;
|
|
32
|
+
selectLayer: import("../../types").SelectLayer;
|
|
33
|
+
options: import("../../types").SelectOptions;
|
|
34
|
+
active: boolean;
|
|
35
|
+
panIn: boolean;
|
|
36
|
+
/** @type {Array<string|number>} **/
|
|
37
|
+
selectedFids: Array<string | number>;
|
|
38
|
+
tooltip: Element;
|
|
39
|
+
selectStyleLayer: any;
|
|
40
|
+
changeSourceListener: () => void;
|
|
41
|
+
/**
|
|
42
|
+
* Sets the active state of the interaction.
|
|
43
|
+
* @param {boolean} active - Whether the interaction should be active.
|
|
44
|
+
*/
|
|
45
|
+
setActive(active: boolean): void;
|
|
46
|
+
/**
|
|
47
|
+
* Pans the map to the specified feature or extent.
|
|
48
|
+
* @param {Feature | RenderFeature | import("ol/extent").Extent} featureOrExtent - The feature or extent to pan to.
|
|
49
|
+
* @param {Object} [options] - Additional options for the panning animation.
|
|
50
|
+
*/
|
|
51
|
+
panIntoFeature: (featureOrExtent: Feature | RenderFeature | import("ol/extent").Extent, options?: any) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Highlights features by their IDs and optionally pans into their extent.
|
|
54
|
+
* @param {Array<string | number>} ids - Array of feature IDs to highlight.
|
|
55
|
+
* @param {Object} [fitOptions] - Options for panning into the highlighted features.
|
|
56
|
+
*/
|
|
57
|
+
highlightById(ids: Array<string | number>, fitOptions?: any): void;
|
|
58
|
+
/**
|
|
59
|
+
* Removes the selection interaction and associated layers from the map.
|
|
60
|
+
*/
|
|
61
|
+
remove(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Retrieves the ID of the given feature.
|
|
64
|
+
* @param {Feature | RenderFeature} feature - The feature whose ID is to be retrieved.
|
|
65
|
+
* @returns {string | number} - The ID of the feature.
|
|
66
|
+
* @throws Will throw an error if no valid ID is found.
|
|
67
|
+
*/
|
|
68
|
+
getId(feature: Feature | RenderFeature): string | number;
|
|
69
|
+
}
|
|
70
|
+
export type EOxMap = import('../main').EOxMap;
|
|
71
|
+
export type EoxLayer = import("../../types").EoxLayer;
|
|
72
|
+
export type SelectLayer = import("../../types").SelectLayer;
|
|
73
|
+
export type SelectOptions = import("../../types").SelectOptions;
|
|
74
|
+
export type DrawOptions = import("../../types").DrawOptions;
|
|
75
|
+
import Feature from "ol/Feature";
|
|
76
|
+
import RenderFeature from "ol/render/Feature";
|
|
77
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/select.js"],"names":[],"mappings":"AAoTA;;;;;;;;;GASG;AACH,kCAPW,MAAM,eACN,WAAW,WACX,aAAa,GAAG,WAAW,GACzB,oBAAoB,CAgBhC;AAlUD;;;;;;GAMG;AAEH;;;;GAIG;AACH;IACE;;;;OAIG;IACH,oBAJW,MAAM,eACN,WAAW,WACX,aAAa,EAgMvB;IA7LC,iCAAoB;IACpB,+CAA8B;IAC9B,6CAAsB;IACtB,gBAAwD;IACxD,eAAmC;IACnC,oCAAoC;IACpC,cADW,MAAM,MAAM,GAAC,MAAM,CAAC,CACT;IASpB,iBAA2C;IA2D7C,sBAA4D;IA6F5D,iCAEC;IAsBH;;;OAGG;IACH,kBAFW,OAAO,QAIjB;IAED;;;;OAIG;IACH,kCAHW,OAAO,GAAG,aAAa,GAAG,OAAO,WAAW,EAAE,MAAM,yBAU7D;IAEF;;;;OAIG;IACH,mBAHW,MAAM,MAAM,GAAG,MAAM,CAAC,0BAgChC;IAED;;OAEG;IACH,eAIC;IAED;;;;;OAKG;IACH,eAJW,OAAO,GAAG,aAAa,GACrB,MAAM,GAAG,MAAM,CAgB3B;CACF;qBAzSY,OAAO,SAAS,EAAE,MAAM;uBACxB,OAAO,aAAa,EAAE,QAAQ;0BAC9B,OAAO,aAAa,EAAE,WAAW;4BACjC,OAAO,aAAa,EAAE,aAAa;0BACnC,OAAO,aAAa,EAAE,WAAW;oBAV1B,YAAY;0BACN,mBAAmB"}
|