@eox/layercontrol 1.3.0 → 1.3.1

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,7 +1,11 @@
1
1
  {
2
2
  "name": "@eox/layercontrol",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
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
11
  "@types/lodash.throttle": "^4.1.9",
@@ -102,6 +102,22 @@ export class EOxLayerControlLayerTools extends LitElement {
102
102
  return this.noShadow ? this : super.createRenderRoot();
103
103
  }
104
104
 
105
+ /**
106
+ * Bubbles up the layerConfig:change event with the updated jsonform value and layer reference.
107
+ * @param {CustomEvent} evt
108
+ */
109
+ #handleLayerConfigChange(evt) {
110
+ this.dispatchEvent(
111
+ new CustomEvent("layerConfig:change", {
112
+ bubbles: true,
113
+ detail: {
114
+ jsonformValue: evt.detail.jsonformValue,
115
+ layer: evt.detail.layer,
116
+ },
117
+ }),
118
+ );
119
+ }
120
+
105
121
  // Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
106
122
  _removeButton = (icon) => removeButton(this, icon);
107
123
 
@@ -153,6 +169,7 @@ export class EOxLayerControlLayerTools extends LitElement {
153
169
  .unstyled=${this.unstyled}
154
170
  .customEditorInterfaces=${this.customEditorInterfaces}
155
171
  @changed=${() => this.requestUpdate()}
172
+ @layerConfig:change=${this.#handleLayerConfigChange}
156
173
  ></eox-layercontrol-layerconfig>
157
174
  `,
158
175
  )}
@@ -1 +1 @@
1
- {"version":3,"file":"layer-tools.d.ts","sourceRoot":"","sources":["../../../../src/components/layer-tools.js"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;MAQE;IAKA;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAEjB;;;;OAIG;IACH,OAFU,KAAK,CAAC,MAAM,CAAC,CAER;IAEf;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,qBAAwB;IAQtB,kBAAwE;IAG1E;;;;;;OAMG;IACH,8BAAgC;IAWlC,oEAAmD;IAGnD,kEAA8D;IAE9D;;;;;;OAMG;IACH,gBAHW,MAAM,gBACJ,OAAO,KAAK,EAAE,kBAAkB,CAEe;IAE5D,uEA4EE;IAEF,+CAwDC;;CAyDF;2BAtTyC,KAAK"}
1
+ {"version":3,"file":"layer-tools.d.ts","sourceRoot":"","sources":["../../../../src/components/layer-tools.js"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;MAQE;IAKA;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAEjB;;;;OAIG;IACH,OAFU,KAAK,CAAC,MAAM,CAAC,CAER;IAEf;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,qBAAwB;IAQtB,kBAAwE;IAG1E;;;;;;OAMG;IACH,8BAAgC;IA2BlC,oEAAmD;IAGnD,kEAA8D;IAE9D;;;;;;OAMG;IACH,gBAHW,MAAM,gBACJ,OAAO,KAAK,EAAE,kBAAkB,CAEe;IAE5D,uEA6EE;IAEF,+CAwDC;;CAyDF;2BAvUyC,KAAK"}
@@ -43,9 +43,22 @@
43
43
  * - Reprojection through [proj4](https://github.com/proj4js/proj4js)
44
44
  *
45
45
  * @element eox-map
46
+ *
47
+ * @fires {CustomEvent} clusterSelect - A cluster is selected
48
+ * @fires {CustomEvent} loadend - The map has finished loading
49
+ * @fires {CustomEvent} mapmounted - The map has been successfully mounted
50
+ * @fires {CustomEvent} select - A feature is selected
46
51
  */
47
52
  export class EOxMap extends LitElement {
48
53
  static get properties(): {
54
+ map: {
55
+ attribute: boolean;
56
+ state: boolean;
57
+ };
58
+ config: {
59
+ attribute: boolean;
60
+ type: ObjectConstructor;
61
+ };
49
62
  center: {
50
63
  attribute: boolean;
51
64
  type: ArrayConstructor;
@@ -54,40 +67,55 @@ export class EOxMap extends LitElement {
54
67
  attribute: boolean;
55
68
  type: ArrayConstructor;
56
69
  };
57
- preventScroll: {
58
- attribute: string;
59
- type: BooleanConstructor;
70
+ zoom: {
71
+ attribute: boolean;
72
+ type: NumberConstructor;
60
73
  };
61
- config: {
74
+ animationOptions: {
62
75
  attribute: boolean;
63
76
  type: ObjectConstructor;
64
77
  };
65
- sync: {
66
- attribute: string;
67
- type: StringConstructor;
78
+ controls: {
79
+ attribute: boolean;
80
+ type: ObjectConstructor;
68
81
  };
69
- projection: {
70
- attribute: string;
71
- type: StringConstructor;
82
+ interactions: {
83
+ attribute: boolean;
84
+ type: ObjectConstructor;
72
85
  };
73
- map: {
86
+ lonLatCenter: {
74
87
  attribute: boolean;
75
- state: boolean;
88
+ type: ArrayConstructor;
76
89
  };
77
- intersections: {
90
+ lonLatExtent: {
91
+ attribute: boolean;
92
+ type: ArrayConstructor;
93
+ };
94
+ mapControls: {
78
95
  attribute: boolean;
79
96
  state: boolean;
80
97
  type: ObjectConstructor;
81
98
  };
99
+ preventScroll: {
100
+ attribute: string;
101
+ type: BooleanConstructor;
102
+ };
103
+ projection: {
104
+ attribute: string;
105
+ type: StringConstructor;
106
+ };
82
107
  selectInteractions: {
83
108
  attribute: boolean;
84
109
  state: boolean;
85
110
  type: ObjectConstructor;
86
111
  };
87
- mapControls: {
112
+ sync: {
113
+ attribute: string;
114
+ type: StringConstructor;
115
+ };
116
+ zoomExtent: {
88
117
  attribute: boolean;
89
- state: boolean;
90
- type: ObjectConstructor;
118
+ type: ArrayConstructor;
91
119
  };
92
120
  };
93
121
  /**
@@ -129,18 +157,34 @@ export class EOxMap extends LitElement {
129
157
  /**
130
158
  * Gets the current center coordinates of the map.
131
159
  *
160
+ * @type {Array<number>}
132
161
  * @returns {Array<number>} The current center of the map.
133
162
  */
134
163
  get center(): Array<number>;
164
+ /**
165
+ * Sets the configuration for the map.
166
+ *
167
+ * @param {ConfigObject} config - The configuration object.
168
+ */
169
+ set config(config: ConfigObject);
170
+ /**
171
+ * Gets the current configuration of the map.
172
+ *
173
+ * @type {ConfigObject}
174
+ * @returns {ConfigObject} The map's configuration object.
175
+ */
176
+ get config(): ConfigObject;
135
177
  /**
136
178
  * Gets the current center of the map in longitude and latitude.
137
179
  *
180
+ * @type {Array<number>}
138
181
  * @returns {Array<number>} The geographic center [longitude, latitude].
139
182
  */
140
183
  get lonLatCenter(): Array<number>;
141
184
  /**
142
185
  * Gets the current extent of the map in longitude and latitude.
143
186
  *
187
+ * @type {Array<number>}
144
188
  * @returns {Array<number>} The geographic extent [minLon, minLat, maxLon, maxLat].
145
189
  */
146
190
  get lonLatExtent(): Array<number>;
@@ -153,6 +197,7 @@ export class EOxMap extends LitElement {
153
197
  /**
154
198
  * Gets the current zoom level of the map.
155
199
  *
200
+ * @type {number}
156
201
  * @returns {number} The current zoom level.
157
202
  */
158
203
  get zoom(): number;
@@ -171,6 +216,7 @@ export class EOxMap extends LitElement {
171
216
  /**
172
217
  * Gets the current map controls.
173
218
  *
219
+ * @type {ControlDictionary}
174
220
  * @returns {ControlDictionary} The current controls applied to the map.
175
221
  */
176
222
  get controls(): ControlDictionary;
@@ -181,8 +227,9 @@ export class EOxMap extends LitElement {
181
227
  */
182
228
  set layers(layers: Array<EoxLayer>);
183
229
  /**
184
- * Gets the current layers of the map.
230
+ * Gets the current layers of the map
185
231
  *
232
+ * @type {Array<EoxLayer>} Some [Test](test)
186
233
  * @returns {Array<EoxLayer>} The current layers applied to the map.
187
234
  */
188
235
  get layers(): Array<EoxLayer>;
@@ -195,21 +242,10 @@ export class EOxMap extends LitElement {
195
242
  /**
196
243
  * Gets the current scroll interaction state.
197
244
  *
245
+ * @type {boolean}
198
246
  * @returns {boolean} `true` if scroll interactions are prevented, `false` otherwise.
199
247
  */
200
248
  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
249
  /**
214
250
  * Sets animation options for map view changes.
215
251
  *
@@ -219,6 +255,7 @@ export class EOxMap extends LitElement {
219
255
  /**
220
256
  * Gets the current animation options.
221
257
  *
258
+ * @type {EOxAnimationOptions}
222
259
  * @returns {EOxAnimationOptions} The current animation options for the map.
223
260
  */
224
261
  get animationOptions(): EOxAnimationOptions;
@@ -231,6 +268,7 @@ export class EOxMap extends LitElement {
231
268
  /**
232
269
  * Gets the current map projection.
233
270
  *
271
+ * @type {ProjectionLike}
234
272
  * @returns {ProjectionLike} The map's projection code.
235
273
  */
236
274
  get projection(): ProjectionLike;
@@ -243,6 +281,7 @@ export class EOxMap extends LitElement {
243
281
  /**
244
282
  * Gets the current sync state of the map.
245
283
  *
284
+ * @type {string}
246
285
  * @returns {string} The ID of the map that this map is synced with.
247
286
  */
248
287
  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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