@eox/layercontrol 1.10.1 → 1.11.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-layercontrol.js +903 -744
- package/dist/eox-layercontrol.umd.cjs +144 -139
- package/package.json +5 -5
- package/src/components/add-layers.js +6 -6
- package/src/components/layer-config.js +26 -20
- package/src/components/layer-datetime.js +23 -6
- package/src/components/layer-group.js +9 -9
- package/src/components/layer-legend.js +3 -3
- package/src/components/layer-list.js +9 -9
- package/src/components/layer-tools.js +44 -9
- package/src/components/layer.js +38 -15
- package/src/components/optional-list.js +5 -5
- package/src/components/tools-items.js +12 -6
- package/src/helpers/clean-json-input.js +1 -1
- package/src/helpers/create-sortable.js +8 -0
- package/src/helpers/get-legend-config.js +16 -1
- package/src/helpers/handle-datetime-update.js +31 -5
- package/src/helpers/is-layer-visible-based-on-zoom-state.js +2 -2
- package/src/helpers/is-layer-zoom-state-req.js +2 -2
- package/src/helpers/update-geozarr-band.js +18 -126
- package/src/helpers/update-url.js +3 -3
- package/src/main.js +33 -17
- package/src/methods/add-layer/add-layer.js +7 -0
- package/src/methods/add-layer/wms-search-url.js +1 -1
- package/src/methods/layer/first-updated.js +47 -26
- package/src/methods/layer-config/apply-updated-styles.js +8 -5
- package/src/methods/layer-config/data-change.js +1 -1
- package/src/methods/optional-list/add-to-list.js +1 -1
- package/types/components/add-layers.d.ts +6 -6
- package/types/components/add-layers.d.ts.map +1 -1
- package/types/components/layer-config.d.ts +3 -3
- package/types/components/layer-config.d.ts.map +1 -1
- package/types/components/layer-datetime.d.ts +3 -3
- package/types/components/layer-datetime.d.ts.map +1 -1
- package/types/components/layer-group.d.ts +9 -9
- package/types/components/layer-group.d.ts.map +1 -1
- package/types/components/layer-legend.d.ts +3 -3
- package/types/components/layer-legend.d.ts.map +1 -1
- package/types/components/layer-list.d.ts +9 -9
- package/types/components/layer-list.d.ts.map +1 -1
- package/types/components/layer-tools.d.ts +6 -6
- package/types/components/layer-tools.d.ts.map +1 -1
- package/types/components/layer.d.ts +9 -14
- package/types/components/layer.d.ts.map +1 -1
- package/types/components/optional-list.d.ts +5 -5
- package/types/components/optional-list.d.ts.map +1 -1
- package/types/components/tools-items.d.ts +5 -5
- package/types/components/tools-items.d.ts.map +1 -1
- package/types/helpers/clean-json-input.d.ts +1 -1
- package/types/helpers/clean-json-input.d.ts.map +1 -1
- package/types/helpers/create-sortable.d.ts.map +1 -1
- package/types/helpers/get-legend-config.d.ts.map +1 -1
- package/types/helpers/handle-datetime-update.d.ts +5 -2
- package/types/helpers/handle-datetime-update.d.ts.map +1 -1
- package/types/helpers/is-layer-visible-based-on-zoom-state.d.ts +2 -2
- package/types/helpers/is-layer-visible-based-on-zoom-state.d.ts.map +1 -1
- package/types/helpers/is-layer-zoom-state-req.d.ts +2 -2
- package/types/helpers/is-layer-zoom-state-req.d.ts.map +1 -1
- package/types/helpers/update-geozarr-band.d.ts +3 -21
- package/types/helpers/update-geozarr-band.d.ts.map +1 -1
- package/types/helpers/update-url.d.ts +4 -4
- package/types/helpers/update-url.d.ts.map +1 -1
- package/types/main.d.ts +15 -11
- package/types/main.d.ts.map +1 -1
- package/types/methods/add-layer/add-layer.d.ts.map +1 -1
- package/types/methods/add-layer/wms-search-url.d.ts +1 -1
- package/types/methods/add-layer/wms-search-url.d.ts.map +1 -1
- package/types/methods/layer/first-updated.d.ts +3 -2
- package/types/methods/layer/first-updated.d.ts.map +1 -1
- package/types/methods/layer-config/apply-updated-styles.d.ts +2 -2
- package/types/methods/layer-config/apply-updated-styles.d.ts.map +1 -1
- package/types/methods/layer-config/data-change.d.ts +1 -1
package/src/main.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
layerListChangeMethod,
|
|
10
10
|
} from "./methods/layercontrol";
|
|
11
11
|
import eoxStyle from "@eox/ui/style.css?inline";
|
|
12
|
-
import { addCommonStylesheet } from "@eox/elements-utils";
|
|
12
|
+
import { addCommonStylesheet, dispatchElementEvent } from "@eox/elements-utils";
|
|
13
13
|
|
|
14
14
|
addCommonStylesheet();
|
|
15
15
|
|
|
@@ -43,6 +43,10 @@ addCommonStylesheet();
|
|
|
43
43
|
* Usage: `import { updateVectorLayerStyle } from "@eox/layercontrol";`
|
|
44
44
|
*
|
|
45
45
|
* @element eox-layercontrol
|
|
46
|
+
* @fires {CustomEvent} layerchange - Fired when layers in the map change
|
|
47
|
+
* @fires {CustomEvent} layerConfig:change - Fired when layer configuration changes
|
|
48
|
+
* @fires {CustomEvent} datetime:updated - Fired when datetime is updated for a layer
|
|
49
|
+
* @fires {CustomEvent<import("@eox/elements-utils").EOxActivityDetail>} eox:activity - Fires on genuine user interactions, wrapping the original event for analytics tracking.
|
|
46
50
|
*/
|
|
47
51
|
export class EOxLayerControl extends LitElement {
|
|
48
52
|
// Define static properties for the component
|
|
@@ -84,14 +88,14 @@ export class EOxLayerControl extends LitElement {
|
|
|
84
88
|
* Query selector of an `eox-map` (`String`, passed as an attribute or property)
|
|
85
89
|
* or an `eox-map` DOM element (`HTMLElement`, passed as property)
|
|
86
90
|
*
|
|
87
|
-
* @type {
|
|
91
|
+
* @type {string | HTMLElement}
|
|
88
92
|
*/
|
|
89
93
|
this.for = "eox-map";
|
|
90
94
|
|
|
91
95
|
/**
|
|
92
96
|
* Layer id property
|
|
93
97
|
*
|
|
94
|
-
* @type {
|
|
98
|
+
* @type {string}
|
|
95
99
|
*/
|
|
96
100
|
this.idProperty = "id";
|
|
97
101
|
|
|
@@ -106,63 +110,63 @@ export class EOxLayerControl extends LitElement {
|
|
|
106
110
|
/**
|
|
107
111
|
* Layer title property
|
|
108
112
|
*
|
|
109
|
-
* @type {
|
|
113
|
+
* @type {string}
|
|
110
114
|
*/
|
|
111
115
|
this.titleProperty = "title";
|
|
112
116
|
|
|
113
117
|
/**
|
|
114
118
|
* Show layer state based on zoom level or not
|
|
115
119
|
*
|
|
116
|
-
* @type {
|
|
120
|
+
* @type {boolean}
|
|
117
121
|
*/
|
|
118
122
|
this.showLayerZoomState = false;
|
|
119
123
|
|
|
120
124
|
/**
|
|
121
125
|
* Layer tools
|
|
122
126
|
*
|
|
123
|
-
* @type {Array<
|
|
127
|
+
* @type {Array<string>}
|
|
124
128
|
*/
|
|
125
129
|
this.tools = ["info", "opacity", "datetime", "config", "remove", "sort"];
|
|
126
130
|
|
|
127
131
|
/**
|
|
128
132
|
* Enable-disable external layer
|
|
129
133
|
*
|
|
130
|
-
* @type {
|
|
134
|
+
* @type {boolean}
|
|
131
135
|
*/
|
|
132
136
|
this.addExternalLayers = false;
|
|
133
137
|
|
|
134
138
|
/**
|
|
135
139
|
* Render the element without additional styles
|
|
136
140
|
*
|
|
137
|
-
* @type {
|
|
141
|
+
* @type {boolean}
|
|
138
142
|
*/
|
|
139
143
|
this.unstyled = false;
|
|
140
144
|
|
|
141
145
|
/**
|
|
142
146
|
* Overrides elements current CSS.
|
|
143
147
|
*
|
|
144
|
-
* @type {
|
|
148
|
+
* @type {string}
|
|
145
149
|
*/
|
|
146
150
|
this.styleOverride = "";
|
|
147
151
|
|
|
148
152
|
/**
|
|
149
153
|
* If enabled, the tools section will be rendered as list.
|
|
150
154
|
*
|
|
151
|
-
* @type {
|
|
155
|
+
* @type {boolean}
|
|
152
156
|
*/
|
|
153
157
|
this.toolsAsList = false;
|
|
154
158
|
|
|
155
159
|
/**
|
|
156
160
|
* If enabled, exclusive layers (marked with the property `layerControlExclusive`) will be globally exclusive (default: exclusive within their layer group).
|
|
157
161
|
*
|
|
158
|
-
* @type {
|
|
162
|
+
* @type {boolean}
|
|
159
163
|
*/
|
|
160
164
|
this.globallyExclusiveLayers = false;
|
|
161
165
|
|
|
162
166
|
/**
|
|
163
167
|
* If enabled, toggling the layer visibility will also open/close the layer tools.
|
|
164
168
|
*
|
|
165
|
-
* @type {
|
|
169
|
+
* @type {boolean}
|
|
166
170
|
*/
|
|
167
171
|
this.toolsAutoExpand = false;
|
|
168
172
|
|
|
@@ -208,11 +212,19 @@ export class EOxLayerControl extends LitElement {
|
|
|
208
212
|
*/
|
|
209
213
|
#handleLayerControlLayerListChange(evt) {
|
|
210
214
|
layerListChangeMethod(evt, this);
|
|
215
|
+
const isUser = Boolean(
|
|
216
|
+
evt.detail &&
|
|
217
|
+
!("activity" in evt.detail && evt.detail.activity === false),
|
|
218
|
+
);
|
|
211
219
|
/**
|
|
212
220
|
* A generic layer change event; could be a layer visibility, group length updates and others.
|
|
213
221
|
* Passes the changed layer in the `detail`.
|
|
214
222
|
*/
|
|
215
|
-
this
|
|
223
|
+
dispatchElementEvent(this, "layerchange", {
|
|
224
|
+
detail: evt.detail,
|
|
225
|
+
activity: isUser,
|
|
226
|
+
action: "layerchange",
|
|
227
|
+
});
|
|
216
228
|
}
|
|
217
229
|
|
|
218
230
|
/**
|
|
@@ -220,9 +232,11 @@ export class EOxLayerControl extends LitElement {
|
|
|
220
232
|
* @param {CustomEvent} evt
|
|
221
233
|
*/
|
|
222
234
|
#handleLayerConfigChange(evt) {
|
|
223
|
-
this
|
|
224
|
-
|
|
225
|
-
|
|
235
|
+
dispatchElementEvent(this, "layerConfig:change", {
|
|
236
|
+
detail: evt.detail,
|
|
237
|
+
activity: evt.detail?.isUser !== false,
|
|
238
|
+
action: "layerConfig:change",
|
|
239
|
+
});
|
|
226
240
|
}
|
|
227
241
|
|
|
228
242
|
render() {
|
|
@@ -275,7 +289,9 @@ export class EOxLayerControl extends LitElement {
|
|
|
275
289
|
.colormapRegistry=${this.colormapRegistry}
|
|
276
290
|
.customEditorInterfaces=${this.customEditorInterfaces}
|
|
277
291
|
@changed=${this.#handleLayerControlLayerListChange}
|
|
278
|
-
@datetime:updated=${(
|
|
292
|
+
@datetime:updated=${(
|
|
293
|
+
/** @type {CustomEvent & { isUser?: boolean }} */ evt,
|
|
294
|
+
) => handleDatetimeUpdate(evt, this, evt.isUser === true)}
|
|
279
295
|
@layerConfig:change=${this.#handleLayerConfigChange}
|
|
280
296
|
></eox-layercontrol-layer-list>
|
|
281
297
|
`,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { cleanJSONInput } from "../../helpers";
|
|
2
|
+
import { emitActivity, findHost } from "@eox/elements-utils";
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Handles the addition of one or multiple layers to the map based on the input.
|
|
@@ -27,6 +28,12 @@ const addLayer = (EoxLayerControlAddLayers) => {
|
|
|
27
28
|
|
|
28
29
|
// Resetting `jsonInput` with null value and re-rendering the component
|
|
29
30
|
EoxLayerControlAddLayers.jsonInput = null;
|
|
31
|
+
const root =
|
|
32
|
+
findHost(EoxLayerControlAddLayers, "eox-layercontrol") ||
|
|
33
|
+
EoxLayerControlAddLayers;
|
|
34
|
+
emitActivity(root, "add:layer", {
|
|
35
|
+
layers: layers.data,
|
|
36
|
+
});
|
|
30
37
|
EoxLayerControlAddLayers.requestUpdate();
|
|
31
38
|
};
|
|
32
39
|
|
|
@@ -5,7 +5,7 @@ import { detectMapURLType, fetchCapabilities } from "../../helpers";
|
|
|
5
5
|
* It utilizes the provided instance to process the URL input for WMS or XYZ layers.
|
|
6
6
|
*
|
|
7
7
|
* @param {import("../../components/add-layers").EOxLayerControlAddLayers} EoxLayerControlAddLayers - Instance of EOxLayerControlAddLayers.
|
|
8
|
-
* @
|
|
8
|
+
* @returns {Promise<{"Name": string} | false>} - An object with layer information if URL type is XYZ, otherwise false.
|
|
9
9
|
*/
|
|
10
10
|
export default async function wmsSearchURL(EoxLayerControlAddLayers) {
|
|
11
11
|
// Get the URL input from the EOxLayerControlAddLayers instance
|
|
@@ -2,12 +2,15 @@ import {
|
|
|
2
2
|
isLayerVisibleBasedOnZoomState,
|
|
3
3
|
isLayerZoomStateRequired,
|
|
4
4
|
} from "../../helpers";
|
|
5
|
+
import { dispatchElementEvent } from "@eox/elements-utils";
|
|
6
|
+
import { unByKey } from "ol/Observable.js";
|
|
5
7
|
|
|
6
8
|
/**
|
|
7
9
|
* Check and update layer zoom visibility at beginning
|
|
8
|
-
* and
|
|
10
|
+
* and subscribe to layer/view changes for the current connection.
|
|
9
11
|
*
|
|
10
12
|
* @param {import("../../components/layer").EOxLayerControlLayer} EOxLayerControlLayer - Instance of EOxLayerControlLayer
|
|
13
|
+
* @returns {() => void} Releases all subscriptions for this connection.
|
|
11
14
|
*/
|
|
12
15
|
const firstUpdatedMethod = (EOxLayerControlLayer) => {
|
|
13
16
|
/**
|
|
@@ -41,37 +44,55 @@ const firstUpdatedMethod = (EOxLayerControlLayer) => {
|
|
|
41
44
|
// if visibilityChanged trigger UI update
|
|
42
45
|
if (visibilityChanged) {
|
|
43
46
|
EOxLayerControlLayer.requestUpdate();
|
|
44
|
-
EOxLayerControlLayer
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
dispatchElementEvent(EOxLayerControlLayer, "change:resolution", {
|
|
48
|
+
bubbles: true,
|
|
49
|
+
composed: false,
|
|
50
|
+
activity: false,
|
|
51
|
+
});
|
|
47
52
|
}
|
|
48
53
|
};
|
|
49
54
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
) {
|
|
56
|
-
updateLayerZoomVisibility();
|
|
57
|
-
|
|
58
|
-
// Initialize change:resolution event ones
|
|
59
|
-
EOxLayerControlLayer.map
|
|
60
|
-
.getView()
|
|
61
|
-
.on("change:resolution", () => updateLayerZoomVisibility());
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// Listen for dynamic property changes (e.g. GeoZarr layerDatetime, layerConfig, timeControlValues)
|
|
65
|
-
EOxLayerControlLayer.layer?.on?.("propertychange", (e) => {
|
|
66
|
-
const propEvent = /** @type {import("ol/Object").ObjectEvent} */ (e);
|
|
55
|
+
/** @type {import("ol/events").EventsKey | undefined} */
|
|
56
|
+
let resolutionKey;
|
|
57
|
+
const subscribeView = () => {
|
|
58
|
+
if (resolutionKey) unByKey(resolutionKey);
|
|
59
|
+
resolutionKey = undefined;
|
|
67
60
|
if (
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
61
|
+
EOxLayerControlLayer.map &&
|
|
62
|
+
isLayerZoomStateRequired(
|
|
63
|
+
EOxLayerControlLayer.layer,
|
|
64
|
+
EOxLayerControlLayer.showLayerZoomState,
|
|
65
|
+
)
|
|
71
66
|
) {
|
|
72
|
-
EOxLayerControlLayer.
|
|
67
|
+
resolutionKey = EOxLayerControlLayer.map
|
|
68
|
+
.getView()
|
|
69
|
+
.on("change:resolution", updateLayerZoomVisibility);
|
|
73
70
|
}
|
|
74
|
-
|
|
71
|
+
if (EOxLayerControlLayer.map) updateLayerZoomVisibility();
|
|
72
|
+
};
|
|
73
|
+
subscribeView();
|
|
74
|
+
const viewKey = EOxLayerControlLayer.map?.on?.("change:view", subscribeView);
|
|
75
|
+
|
|
76
|
+
// Listen for dynamic property changes (e.g. GeoZarr layerDatetime, layerConfig, timeControlValues)
|
|
77
|
+
const propertyKey = EOxLayerControlLayer.layer?.on?.(
|
|
78
|
+
"propertychange",
|
|
79
|
+
(e) => {
|
|
80
|
+
const propEvent = /** @type {import("ol/Object").ObjectEvent} */ (e);
|
|
81
|
+
if (
|
|
82
|
+
propEvent.key === "layerDatetime" ||
|
|
83
|
+
propEvent.key === "layerConfig" ||
|
|
84
|
+
propEvent.key === "timeControlValues"
|
|
85
|
+
) {
|
|
86
|
+
EOxLayerControlLayer.requestUpdate();
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
return () => {
|
|
92
|
+
if (resolutionKey) unByKey(resolutionKey);
|
|
93
|
+
if (viewKey) unByKey(viewKey);
|
|
94
|
+
if (propertyKey) unByKey(propertyKey);
|
|
95
|
+
};
|
|
75
96
|
};
|
|
76
97
|
|
|
77
98
|
export default firstUpdatedMethod;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { getGeoZarrBandRange, updateGeoZarrBand } from "../../helpers";
|
|
2
|
+
import { syncMinMaxFormValues } from "@eox/elements-utils";
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
|
-
* @param {Record<string,
|
|
5
|
+
* @param {Record<string,any>} jsonformOutput
|
|
5
6
|
* @param { import("ol/layer/Layer").default} layer
|
|
6
7
|
* @param { import("../../components/layer-config").EOxLayerControlLayerConfig['layerConfig']} layerConfig
|
|
7
8
|
* */
|
|
@@ -52,10 +53,12 @@ export default async function (jsonformOutput, layer, layerConfig) {
|
|
|
52
53
|
layerConfig?.schema?.properties?.max !== undefined;
|
|
53
54
|
|
|
54
55
|
if (hasMinMaxStyle) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
syncMinMaxFormValues(
|
|
57
|
+
jsonformOutput,
|
|
58
|
+
layerConfig?.schema?.properties,
|
|
59
|
+
targetMin,
|
|
60
|
+
targetMax,
|
|
61
|
+
);
|
|
59
62
|
updatedValues.min = targetMin;
|
|
60
63
|
updatedValues.max = targetMax;
|
|
61
64
|
if (styles?.variables) {
|
|
@@ -8,7 +8,7 @@ import XYZ_ol from "ol/source/XYZ.js";
|
|
|
8
8
|
* @param {{[key: string]: any}} data - The updated data to be applied to the layer.
|
|
9
9
|
* @param {Function} tileUrlFunc - The function generating the tile URL for the layer.
|
|
10
10
|
* @param {import("../../components/layer-config").EOxLayerControlLayerConfig} EOxLayerControlLayerConfig - Instance of EOxLayerControlLayer.
|
|
11
|
-
* @
|
|
11
|
+
* @returns {Function} - New function generating the tile URL for the layer.
|
|
12
12
|
*/
|
|
13
13
|
const dataChangeMethod = (data, tileUrlFunc, EOxLayerControlLayerConfig) => {
|
|
14
14
|
let newTileUrlFunc = tileUrlFunc; // Placeholder for the updated tile URL function.
|
|
@@ -28,7 +28,7 @@ const addToListMethod = (EOxLayerControlOptionalList) => {
|
|
|
28
28
|
selectedLayer?.set("layerControlOptional", false);
|
|
29
29
|
selectedLayer?.setVisible(true);
|
|
30
30
|
EOxLayerControlOptionalList.dispatchEvent(
|
|
31
|
-
new CustomEvent("changed", { bubbles: true }),
|
|
31
|
+
new CustomEvent("changed", { bubbles: true, detail: selectedLayer }),
|
|
32
32
|
);
|
|
33
33
|
|
|
34
34
|
// Update related components
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* to validate and process the input for adding layers dynamically to the map.
|
|
7
7
|
*
|
|
8
8
|
* @element eox-layercontrol-add-layers
|
|
9
|
-
* @
|
|
9
|
+
* @augments LitElement
|
|
10
10
|
*/
|
|
11
11
|
export class EOxLayerControlAddLayers extends LitElement {
|
|
12
12
|
static properties: {
|
|
@@ -24,13 +24,13 @@ export class EOxLayerControlAddLayers extends LitElement {
|
|
|
24
24
|
/**
|
|
25
25
|
* State for URL Input for WMS/XYZ URLs
|
|
26
26
|
*
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {string}
|
|
28
28
|
*/
|
|
29
29
|
urlInput: string;
|
|
30
30
|
/**
|
|
31
31
|
* State for JSON Textarea - For EOxMap JSON
|
|
32
32
|
*
|
|
33
|
-
* @type {
|
|
33
|
+
* @type {string}
|
|
34
34
|
*/
|
|
35
35
|
jsonInput: string;
|
|
36
36
|
/**
|
|
@@ -42,7 +42,7 @@ export class EOxLayerControlAddLayers extends LitElement {
|
|
|
42
42
|
/**
|
|
43
43
|
* Loader state when search is triggered
|
|
44
44
|
*
|
|
45
|
-
* @type {
|
|
45
|
+
* @type {boolean}
|
|
46
46
|
*/
|
|
47
47
|
searchLoad: boolean;
|
|
48
48
|
/**
|
|
@@ -60,13 +60,13 @@ export class EOxLayerControlAddLayers extends LitElement {
|
|
|
60
60
|
/**
|
|
61
61
|
* Render the element without additional styles
|
|
62
62
|
*
|
|
63
|
-
* @type {
|
|
63
|
+
* @type {boolean}
|
|
64
64
|
*/
|
|
65
65
|
unstyled: boolean;
|
|
66
66
|
/**
|
|
67
67
|
* Renders the element without a shadow root
|
|
68
68
|
*
|
|
69
|
-
* @type {
|
|
69
|
+
* @type {boolean}
|
|
70
70
|
*/
|
|
71
71
|
noShadow: boolean;
|
|
72
72
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-layers.d.ts","sourceRoot":"","sources":["../../src/components/add-layers.js"],"names":[],"mappings":"AAaA;;;;;;;;;GASG;AACH;IAEE;;;;;;;;;;;MAIE;IAEF;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"add-layers.d.ts","sourceRoot":"","sources":["../../src/components/add-layers.js"],"names":[],"mappings":"AAaA;;;;;;;;;GASG;AACH;IAEE;;;;;;;;;;;MAIE;IAEF;;;;OAIG;IACH,UAFU,MAAM,CAEA;IAEhB;;;;OAIG;IACH,WAFU,MAAM,CAEC;IAEjB;;;;OAIG;IACH,MAFU,KAAK,GAAG,MAAM,GAAG,IAAI,CAEnB;IAEZ;;;;OAIG;IACH,YAFU,OAAO,CAEE;IAEnB;;;;OAIG;IACH,iBAFU,OAAO,kBAAkB,EAAE,mBAAmB,CAEjC;IAKrB;;;;OAIG;IACH,YAAkB;IAElB;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAiEvB;;;OAGG;IACH,+CA+IC;;CAaF;2BAzTyC,KAAK"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
*
|
|
13
13
|
* @element eox-layercontrol-layerconfig
|
|
14
|
-
* @
|
|
14
|
+
* @augments LitElement
|
|
15
15
|
*/
|
|
16
16
|
export class EOxLayerControlLayerConfig extends LitElement {
|
|
17
17
|
static properties: {
|
|
@@ -46,13 +46,13 @@ export class EOxLayerControlLayerConfig extends LitElement {
|
|
|
46
46
|
/**
|
|
47
47
|
* Render the element without additional styles
|
|
48
48
|
*
|
|
49
|
-
* @type {
|
|
49
|
+
* @type {boolean}
|
|
50
50
|
*/
|
|
51
51
|
unstyled: boolean;
|
|
52
52
|
/**
|
|
53
53
|
* Renders the element without a shadow root
|
|
54
54
|
*
|
|
55
|
-
* @type {
|
|
55
|
+
* @type {boolean}
|
|
56
56
|
*/
|
|
57
57
|
noShadow: boolean;
|
|
58
58
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer-config.d.ts","sourceRoot":"","sources":["../../src/components/layer-config.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layer-config.d.ts","sourceRoot":"","sources":["../../src/components/layer-config.js"],"names":[],"mappings":"AAOA;;;;;;IAMI;AAEJ;;;;;;;GAOG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;MAOE;IA0BA;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAEjB;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;;;;;;;;OAWG;IACH,aATU;QACN,MAAM,EAAE,MAAM,CAAC,MAAM,EAAC,GAAG,CAAC,CAAC;QAC3B,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;QAC3B,KAAK,CAAC,EAAE,OAAO,oBAAoB,EAAE,KAAK,CAAC;QAC3C,MAAM,CAAC,EAAE,iBAAiB,GAAG,iBAAiB,EAAE,CAAC;QACpD,CAAI,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KAClB,CAEkB;IAEvB;;OAEG;IACH,8DAqHS;QAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAAE,oBArHwB;IAEjE;;;;;;OAMG;IACH,8BAAgC;IAEhC;;;;OAIG;IACH,kBAFU,MAAM,CAAC,MAAM,EAAC,MAAM,EAAE,CAAC,CAEL;IA0N9B;;OAEG;IACH,+CA0EC;;CA8BF;gCA9aY,OAAO,CAAC,OAAO,gBAAgB,EAAE,YAAY,CAAC,GAAG;IACvD,OAAO,CAAC,EAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAA,KAAK,EAAE,MAAM,GAAC,MAAM,GAAC,OAAO,CAAA;KAAC,CAAA;IACnD,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAA;CACtB;2BAZ+B,KAAK"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
*
|
|
6
6
|
* @element eox-layercontrol-layer-datetime
|
|
7
|
-
* @
|
|
7
|
+
* @augments LitElement
|
|
8
8
|
*/
|
|
9
9
|
export class EOxLayerControlLayerDatetime extends LitElement {
|
|
10
10
|
static properties: {
|
|
@@ -24,13 +24,13 @@ export class EOxLayerControlLayerDatetime extends LitElement {
|
|
|
24
24
|
/**
|
|
25
25
|
* Render the element without additional styles
|
|
26
26
|
*
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {boolean}
|
|
28
28
|
*/
|
|
29
29
|
unstyled: boolean;
|
|
30
30
|
/**
|
|
31
31
|
* Renders the element without a shadow root
|
|
32
32
|
*
|
|
33
|
-
* @type {
|
|
33
|
+
* @type {boolean}
|
|
34
34
|
*/
|
|
35
35
|
noShadow: boolean;
|
|
36
36
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer-datetime.d.ts","sourceRoot":"","sources":["../../src/components/layer-datetime.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH;IAEE;;;;;;;;;;;;;MAKE;IAKA;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"layer-datetime.d.ts","sourceRoot":"","sources":["../../src/components/layer-datetime.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH;IAEE;;;;;;;;;;;;;MAKE;IAKA;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;;;;;;;;;;OAaG;IACH,eAXU;QACL,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,WAAW,EAAE,MAAM,GAAC,MAAM,CAAC;QAC3B,aAAa,EAAE,CAAC,MAAM,GAAC,MAAM,CAAC,EAAE,CAAC;QACjC,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,sBAAsB,CAAC,EAAE,MAAM,CAAC;KACjC,CAEqB;IAEzB;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IA4EnB;;OAEG;IACH,+CA2CC;;CAIF;2BA3LgC,KAAK"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Handles rendering a layer control group with expandable details containing layers.
|
|
4
4
|
*
|
|
5
5
|
* @element eox-layercontrol-layer-group
|
|
6
|
-
* @
|
|
6
|
+
* @augments LitElement
|
|
7
7
|
*/
|
|
8
8
|
export class EOxLayerControlLayerGroup extends LitElement {
|
|
9
9
|
static properties: {
|
|
@@ -63,7 +63,7 @@ export class EOxLayerControlLayerGroup extends LitElement {
|
|
|
63
63
|
/**
|
|
64
64
|
* The layer id property
|
|
65
65
|
*
|
|
66
|
-
* @type {
|
|
66
|
+
* @type {string}
|
|
67
67
|
*/
|
|
68
68
|
idProperty: string;
|
|
69
69
|
/**
|
|
@@ -75,13 +75,13 @@ export class EOxLayerControlLayerGroup extends LitElement {
|
|
|
75
75
|
/**
|
|
76
76
|
* The layer title property
|
|
77
77
|
*
|
|
78
|
-
* @type {
|
|
78
|
+
* @type {string}
|
|
79
79
|
*/
|
|
80
80
|
titleProperty: string;
|
|
81
81
|
/**
|
|
82
82
|
* Show layer state based on zoom level or not
|
|
83
83
|
*
|
|
84
|
-
* @type {
|
|
84
|
+
* @type {boolean}
|
|
85
85
|
*/
|
|
86
86
|
showLayerZoomState: boolean;
|
|
87
87
|
/**
|
|
@@ -93,31 +93,31 @@ export class EOxLayerControlLayerGroup extends LitElement {
|
|
|
93
93
|
/**
|
|
94
94
|
* Render the element without additional styles
|
|
95
95
|
*
|
|
96
|
-
* @type {
|
|
96
|
+
* @type {boolean}
|
|
97
97
|
*/
|
|
98
98
|
unstyled: boolean;
|
|
99
99
|
/**
|
|
100
100
|
* Renders the element without a shadow root
|
|
101
101
|
*
|
|
102
|
-
* @type {
|
|
102
|
+
* @type {boolean}
|
|
103
103
|
*/
|
|
104
104
|
noShadow: boolean;
|
|
105
105
|
/**
|
|
106
106
|
* If enabled, the tools section will be rendered as list.
|
|
107
107
|
*
|
|
108
|
-
* @type {
|
|
108
|
+
* @type {boolean}
|
|
109
109
|
*/
|
|
110
110
|
toolsAsList: boolean;
|
|
111
111
|
/**
|
|
112
112
|
* If enabled, toggling the layer visibility will also open/close the layer tools.
|
|
113
113
|
*
|
|
114
|
-
* @type {
|
|
114
|
+
* @type {boolean}
|
|
115
115
|
*/
|
|
116
116
|
toolsAutoExpand: boolean;
|
|
117
117
|
/**
|
|
118
118
|
* If enabled, exclusive layers (marked with the property `layerControlExclusive`) will be globally exclusive (default: exclusive within their layer group).
|
|
119
119
|
*
|
|
120
|
-
* @type {
|
|
120
|
+
* @type {boolean}
|
|
121
121
|
*/
|
|
122
122
|
globallyExclusiveLayers: boolean;
|
|
123
123
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer-group.d.ts","sourceRoot":"","sources":["../../src/components/layer-group.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiBE;IAKA;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAEjB;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"layer-group.d.ts","sourceRoot":"","sources":["../../src/components/layer-group.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiBE;IAKA;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAEjB;;;;OAIG;IACH,YAFU,MAAM,CAEM;IAEtB;;;;OAIG;IACH,KAHU,OAAO,IAAI,EAAE,GAAG,CAGX;IAEf;;;;OAIG;IACH,eAFU,MAAM,CAEY;IAE5B;;;;OAIG;IACH,oBAFU,OAAO,CAEc;IAE/B;;;;OAIG;IACH,OAFU,KAAK,CAAC,MAAM,CAAC,CAER;IAEf;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,aAFU,OAAO,CAEO;IAExB;;;;OAIG;IACH,iBAFU,OAAO,CAEW;IAE5B;;;;OAIG;IACH,yBAFU,OAAO,CAEmB;IAEpC;;;;;;OAMG;IACH,8BAAgC;IAChC,sBAA4B;IAY9B;;OAEG;IACH,+CAoFC;;CA2BF;2BAzPyC,KAAK"}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* `EOxLayerControlLayerLegend` is a component that handles creating a legend from a range of colors & the domain of the color values.
|
|
18
18
|
*
|
|
19
19
|
* @element eox-layercontrol-layer-datetime
|
|
20
|
-
* @
|
|
20
|
+
* @augments LitElement
|
|
21
21
|
*/
|
|
22
22
|
export class EOxLayerControlLayerLegend extends LitElement {
|
|
23
23
|
static properties: {
|
|
@@ -37,13 +37,13 @@ export class EOxLayerControlLayerLegend extends LitElement {
|
|
|
37
37
|
/**
|
|
38
38
|
* Render the element without additional styles
|
|
39
39
|
*
|
|
40
|
-
* @type {
|
|
40
|
+
* @type {boolean}
|
|
41
41
|
*/
|
|
42
42
|
unstyled: boolean;
|
|
43
43
|
/**
|
|
44
44
|
* Renders the element without a shadow root
|
|
45
45
|
*
|
|
46
|
-
* @type {
|
|
46
|
+
* @type {boolean}
|
|
47
47
|
*/
|
|
48
48
|
noShadow: boolean;
|
|
49
49
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer-legend.d.ts","sourceRoot":"","sources":["../../src/components/layer-legend.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;IAcI;AAEJ;;;;;GAKG;AACH;IAEE;;;;;;;;;;;;;MAKE;IAKA;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"layer-legend.d.ts","sourceRoot":"","sources":["../../src/components/layer-legend.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;IAcI;AAEJ;;;;;GAKG;AACH;IAEE;;;;;;;;;;;;;MAKE;IAKA;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAcnB;;;;QAII;IACJ,uBAHW,YAAY,GAAG,YAAY,EAAE,EAmBvC;IA9BD,mBAWW,YAAY,GAAG,YAAY,EAAE,CAHvC;IA+BD,qBAYC;IAED;;OAEG;IACH,+CA2CC;;CAmBF;;;;2BA9KY;IACR,MAAM,EAAC,GAAiD,CAAC,QAAQ,CAAC,CAAA;IAClE,KAAK,CAAC,EAAC,MAAM,CAAC;IACd,KAAK,EAAC,MAAM,EAAE,CAAC;IACf,KAAK,CAAC,EAAC,MAAM,CAAC;IACd,UAAU,CAAC,EAAC,GAAiD,CAAC,YAAY,CAAC,CAAA;IAC3E,KAAK,CAAC,EAAC,GAAiD,CAAC,OAAO,CAAC,CAAA;IACjE,UAAU,CAAC,EAAC,GAAiD,CAAC,YAAY,CAAC,CAAA;IAC3E,SAAS,CAAC,EAAC,GAAiD,CAAC,WAAW,CAAC,CAAA;IACzE,QAAQ,CAAC,EAAC,GAAiD,CAAC,UAAU,CAAC,CAAA;CACxE;2BAhB2C,KAAK"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* EOxLayerControlLayerList: Manages a list of layers within the EOx Layer Control.
|
|
3
3
|
*
|
|
4
4
|
* @element eox-layercontrol-layer-list
|
|
5
|
-
* @
|
|
5
|
+
* @augments LitElement
|
|
6
6
|
*/
|
|
7
7
|
export class EOxLayerControlLayerList extends LitElement {
|
|
8
8
|
static properties: {
|
|
@@ -55,7 +55,7 @@ export class EOxLayerControlLayerList extends LitElement {
|
|
|
55
55
|
/**
|
|
56
56
|
* The layer id property
|
|
57
57
|
*
|
|
58
|
-
* @type {
|
|
58
|
+
* @type {string}
|
|
59
59
|
*/
|
|
60
60
|
idProperty: string;
|
|
61
61
|
/**
|
|
@@ -81,43 +81,43 @@ export class EOxLayerControlLayerList extends LitElement {
|
|
|
81
81
|
/**
|
|
82
82
|
* The layer title property
|
|
83
83
|
*
|
|
84
|
-
* @type {
|
|
84
|
+
* @type {string}
|
|
85
85
|
*/
|
|
86
86
|
titleProperty: string;
|
|
87
87
|
/**
|
|
88
88
|
* Show layer state based on zoom level or not
|
|
89
89
|
*
|
|
90
|
-
* @type {
|
|
90
|
+
* @type {boolean}
|
|
91
91
|
*/
|
|
92
92
|
showLayerZoomState: boolean;
|
|
93
93
|
/**
|
|
94
94
|
* Render the element without additional styles
|
|
95
95
|
*
|
|
96
|
-
* @type {
|
|
96
|
+
* @type {boolean}
|
|
97
97
|
*/
|
|
98
98
|
unstyled: boolean;
|
|
99
99
|
/**
|
|
100
100
|
* Renders the element without a shadow root
|
|
101
101
|
*
|
|
102
|
-
* @type {
|
|
102
|
+
* @type {boolean}
|
|
103
103
|
*/
|
|
104
104
|
noShadow: boolean;
|
|
105
105
|
/**
|
|
106
106
|
* If enabled, the tools section will be rendered as list.
|
|
107
107
|
*
|
|
108
|
-
* @type {
|
|
108
|
+
* @type {boolean}
|
|
109
109
|
*/
|
|
110
110
|
toolsAsList: boolean;
|
|
111
111
|
/**
|
|
112
112
|
* If enabled, toggling the layer visibility will also open/close the layer tools.
|
|
113
113
|
*
|
|
114
|
-
* @type {
|
|
114
|
+
* @type {boolean}
|
|
115
115
|
*/
|
|
116
116
|
toolsAutoExpand: boolean;
|
|
117
117
|
/**
|
|
118
118
|
* If enabled, exclusive layers (marked with the property `layerControlExclusive`) will be globally exclusive (default: exclusive within their layer group).
|
|
119
119
|
*
|
|
120
|
-
* @type {
|
|
120
|
+
* @type {boolean}
|
|
121
121
|
*/
|
|
122
122
|
globallyExclusiveLayers: boolean;
|
|
123
123
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer-list.d.ts","sourceRoot":"","sources":["../../src/components/layer-list.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiBE;IAKA;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"layer-list.d.ts","sourceRoot":"","sources":["../../src/components/layer-list.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiBE;IAKA;;;;OAIG;IACH,YAFU,MAAM,CAEM;IAEtB;;;;;OAKG;IACH,QAHU,OAAO,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,EAAE,KAAK,GAAG,OAAO,UAAU,EAAE,KAAK,CAAC,CAGpE;IAElB;;;;;OAKG;IACH,KAHU,OAAO,IAAI,EAAE,GAAG,CAGX;IAEf;;;;OAIG;IACH,OAFU,KAAK,CAAC,MAAM,CAAC,CAED;IAEtB;;;;OAIG;IACH,eAFU,MAAM,CAEY;IAE5B;;;;OAIG;IACH,oBAFU,OAAO,CAEc;IAE/B;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,aAFU,OAAO,CAEO;IAExB;;;;OAIG;IACH,iBAFU,OAAO,CAEW;IAE5B;;;;OAIG;IACH,yBAFU,OAAO,CAEmB;IAEpC;;;;;;OAMG;IACH,8BAAgC;IAChC,sBAA4B;IAG9B;;OAEG;IACH,qBAEC;IASD;;;OAGG;IACH,+CA4EC;;CAqCF;2BAlQgC,KAAK"}
|