ol-wfst 4.3.0 → 5.0.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/README.md +240 -173
- package/dist/@types.d.ts +25 -9
- package/dist/@types.d.ts.map +1 -1
- package/dist/Geoserver.d.ts +6 -4
- package/dist/Geoserver.d.ts.map +1 -1
- package/dist/WfsLayer.d.ts +10 -6
- package/dist/WfsLayer.d.ts.map +1 -1
- package/dist/WmsLayer.d.ts +34 -4
- package/dist/WmsLayer.d.ts.map +1 -1
- package/dist/css/ol-wfst.bootstrap5.css +102 -90
- package/dist/css/ol-wfst.bootstrap5.min.css +1 -1
- package/dist/css/ol-wfst.css +432 -54
- package/dist/css/ol-wfst.min.css +1 -1
- package/dist/defaults.d.ts.map +1 -1
- package/dist/jsx-runtime.d.ts +4 -0
- package/dist/jsx-runtime.d.ts.map +1 -0
- package/dist/modules/EditControlChanges.d.ts +2 -1
- package/dist/modules/EditControlChanges.d.ts.map +1 -1
- package/dist/modules/EditFieldsModal.d.ts +10 -6
- package/dist/modules/EditFieldsModal.d.ts.map +1 -1
- package/dist/modules/EditOverlay.d.ts +1 -1
- package/dist/modules/EditOverlay.d.ts.map +1 -1
- package/dist/modules/ExtendLineOverlay.d.ts +12 -0
- package/dist/modules/ExtendLineOverlay.d.ts.map +1 -0
- package/dist/modules/LayersControl.d.ts +5 -0
- package/dist/modules/LayersControl.d.ts.map +1 -1
- package/dist/modules/QueryOverlay.d.ts +21 -0
- package/dist/modules/QueryOverlay.d.ts.map +1 -0
- package/dist/modules/base/BaseLayer.d.ts +7 -3
- package/dist/modules/base/BaseLayer.d.ts.map +1 -1
- package/dist/modules/base/WfsSource.d.ts.map +1 -1
- package/dist/modules/editLayer.d.ts.map +1 -1
- package/dist/modules/errors.d.ts +1 -1
- package/dist/modules/errors.d.ts.map +1 -1
- package/dist/modules/helpers.d.ts.map +1 -1
- package/dist/modules/i18n/en.d.ts.map +1 -1
- package/dist/modules/i18n/es.d.ts.map +1 -1
- package/dist/modules/i18n/index.d.ts.map +1 -1
- package/dist/modules/i18n/zh.d.ts.map +1 -1
- package/dist/modules/loading.d.ts.map +1 -1
- package/dist/modules/state.d.ts +9 -1
- package/dist/modules/state.d.ts.map +1 -1
- package/dist/modules/styleFunction.d.ts +36 -3
- package/dist/modules/styleFunction.d.ts.map +1 -1
- package/dist/ol-wfst.d.ts +243 -6
- package/dist/ol-wfst.d.ts.map +1 -1
- package/dist/ol-wfst.js +1855 -386
- package/dist/ol-wfst.js.map +1 -1
- package/dist/ol-wfst.min.js +3 -3
- package/dist/ol-wfst.min.js.map +1 -1
- package/lib/@types.d.ts +25 -9
- package/lib/@types.d.ts.map +1 -1
- package/lib/Geoserver.d.ts +6 -4
- package/lib/Geoserver.d.ts.map +1 -1
- package/lib/WfsLayer.d.ts +10 -6
- package/lib/WfsLayer.d.ts.map +1 -1
- package/lib/WmsLayer.d.ts +34 -4
- package/lib/WmsLayer.d.ts.map +1 -1
- package/lib/defaults.d.ts.map +1 -1
- package/lib/jsx-runtime.d.ts +4 -0
- package/lib/jsx-runtime.d.ts.map +1 -0
- package/lib/modules/EditControlChanges.d.ts +2 -1
- package/lib/modules/EditControlChanges.d.ts.map +1 -1
- package/lib/modules/EditFieldsModal.d.ts +10 -6
- package/lib/modules/EditFieldsModal.d.ts.map +1 -1
- package/lib/modules/EditOverlay.d.ts +1 -1
- package/lib/modules/EditOverlay.d.ts.map +1 -1
- package/lib/modules/ExtendLineOverlay.d.ts +12 -0
- package/lib/modules/ExtendLineOverlay.d.ts.map +1 -0
- package/lib/modules/LayersControl.d.ts +5 -0
- package/lib/modules/LayersControl.d.ts.map +1 -1
- package/lib/modules/QueryOverlay.d.ts +21 -0
- package/lib/modules/QueryOverlay.d.ts.map +1 -0
- package/lib/modules/base/BaseLayer.d.ts +7 -3
- package/lib/modules/base/BaseLayer.d.ts.map +1 -1
- package/lib/modules/base/WfsSource.d.ts.map +1 -1
- package/lib/modules/editLayer.d.ts.map +1 -1
- package/lib/modules/errors.d.ts +1 -1
- package/lib/modules/errors.d.ts.map +1 -1
- package/lib/modules/helpers.d.ts.map +1 -1
- package/lib/modules/i18n/en.d.ts.map +1 -1
- package/lib/modules/i18n/es.d.ts.map +1 -1
- package/lib/modules/i18n/index.d.ts.map +1 -1
- package/lib/modules/i18n/zh.d.ts.map +1 -1
- package/lib/modules/loading.d.ts.map +1 -1
- package/lib/modules/state.d.ts +9 -1
- package/lib/modules/state.d.ts.map +1 -1
- package/lib/modules/styleFunction.d.ts +36 -3
- package/lib/modules/styleFunction.d.ts.map +1 -1
- package/lib/ol-wfst.d.ts +243 -6
- package/lib/ol-wfst.d.ts.map +1 -1
- package/lib/ol-wfst.js +1857 -384
- package/lib/ol-wfst.js.map +1 -1
- package/lib/style/css/ol-gisify.css +432 -54
- package/lib/style/css/ol-wfst.bootstrap5.css +102 -90
- package/lib/style/scss/_variables.scss +2 -1
- package/lib/style/scss/ol-wfst.scss +441 -42
- package/package.json +3 -3
- package/dist/myPragma.d.ts +0 -2
- package/dist/myPragma.d.ts.map +0 -1
- package/lib/myPragma.d.ts +0 -2
- package/lib/myPragma.d.ts.map +0 -1
package/dist/ol-wfst.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Geometry from 'ol/geom/Geometry.js';
|
|
2
2
|
import Control from 'ol/control/Control.js';
|
|
3
3
|
import Draw from 'ol/interaction/Draw.js';
|
|
4
|
+
import DragBox from 'ol/interaction/DragBox.js';
|
|
4
5
|
import Modify from 'ol/interaction/Modify.js';
|
|
5
6
|
import Select from 'ol/interaction/Select.js';
|
|
6
7
|
import Snap from 'ol/interaction/Snap.js';
|
|
@@ -9,6 +10,8 @@ import Collection from 'ol/Collection.js';
|
|
|
9
10
|
import Feature from 'ol/Feature.js';
|
|
10
11
|
import Overlay from 'ol/Overlay.js';
|
|
11
12
|
import View from 'ol/View.js';
|
|
13
|
+
import VectorLayer from 'ol/layer/Vector.js';
|
|
14
|
+
import VectorSource from 'ol/source/Vector.js';
|
|
12
15
|
import Map from 'ol/Map.js';
|
|
13
16
|
import BaseEvent from 'ol/events/Event.js';
|
|
14
17
|
import { LoadingStrategy } from 'ol/source/Vector.js';
|
|
@@ -21,10 +24,11 @@ import WmsLayer from './WmsLayer';
|
|
|
21
24
|
import LayersControl from './modules/LayersControl';
|
|
22
25
|
import Uploads from './modules/Uploads';
|
|
23
26
|
import { TransactionType } from './@enums';
|
|
24
|
-
import { I18n, IGeoserverDescribeFeatureType, WfsGeoserverVendor, WmsGeoserverVendor } from './@types';
|
|
27
|
+
import { I18n, IGeoserverDescribeFeatureType, IProperty, WfsGeoserverVendor, WmsGeoserverVendor } from './@types';
|
|
25
28
|
import EditControlChangesEl from './modules/EditControlChanges';
|
|
26
29
|
import { EditFieldsModal } from './modules/EditFieldsModal';
|
|
27
30
|
import Geoserver from './Geoserver';
|
|
31
|
+
import ExtendLineOverlay from './modules/ExtendLineOverlay';
|
|
28
32
|
import './assets/scss/-ol-wfst.bootstrap5.scss';
|
|
29
33
|
import './assets/scss/ol-wfst.scss';
|
|
30
34
|
/**
|
|
@@ -59,16 +63,31 @@ export default class Wfst extends Control {
|
|
|
59
63
|
protected _interactionModify: Modify;
|
|
60
64
|
protected _interactionSnap: Snap;
|
|
61
65
|
protected _interactionDraw: Draw;
|
|
66
|
+
protected _interactionDragBox: DragBox;
|
|
67
|
+
protected _interactionFreehandSelect: Draw;
|
|
68
|
+
protected _keyClickQuery: EventsKey;
|
|
69
|
+
protected _queryOverlay: Overlay;
|
|
70
|
+
protected _queryOverlayId: string;
|
|
71
|
+
protected _highlightSource: VectorSource;
|
|
72
|
+
protected _highlightLayer: VectorLayer;
|
|
62
73
|
protected _keyClickWms: EventsKey | EventsKey[];
|
|
63
74
|
protected _keyRemove: EventsKey;
|
|
64
75
|
protected _keySelect: EventsKey;
|
|
76
|
+
protected _shiftPressed: boolean;
|
|
65
77
|
protected _controlApplyDiscardChanges: EditControlChangesEl;
|
|
66
78
|
protected _controlWidgetToolsDiv: HTMLElement;
|
|
79
|
+
protected _layersWidgetDiv: HTMLElement;
|
|
67
80
|
protected _selectDraw: HTMLSelectElement;
|
|
68
81
|
protected _currentZoom: number;
|
|
69
82
|
protected _lastZoom: number;
|
|
70
|
-
protected
|
|
71
|
-
protected
|
|
83
|
+
protected _hoveredFeature: Feature<Geometry>;
|
|
84
|
+
protected _keySelectBound: boolean;
|
|
85
|
+
protected _editFeaturesOriginal: {
|
|
86
|
+
[key: string]: Feature<Geometry>;
|
|
87
|
+
};
|
|
88
|
+
protected _multiOverlayId: string;
|
|
89
|
+
protected _extendOverlays: ExtendLineOverlay[];
|
|
90
|
+
protected _extendDraw: Draw;
|
|
72
91
|
protected _uploads: Uploads;
|
|
73
92
|
protected _editFields: EditFieldsModal;
|
|
74
93
|
on: OnSignature<EventTypes, BaseEvent, EventsKey> & OnSignature<WfstEventTypes, WfstEvent, EventsKey> & OnSignature<ObjectEventTypes, ObjectEvent, EventsKey> & CombinedOnSignature<WfstEventTypes | ObjectEventTypes | EventTypes, EventsKey>;
|
|
@@ -109,15 +128,108 @@ export default class Wfst extends Control {
|
|
|
109
128
|
* @private
|
|
110
129
|
*/
|
|
111
130
|
private _addInteractions;
|
|
131
|
+
/**
|
|
132
|
+
* Interactions to select features by drawing a box (DragBox) or a freehand
|
|
133
|
+
* polygon (freehand Draw lasso). The selected features are added to the
|
|
134
|
+
* edit list, keeping the same behaviour as the single click selection.
|
|
135
|
+
*
|
|
136
|
+
* @private
|
|
137
|
+
*/
|
|
138
|
+
private _addSelectionInteractions;
|
|
139
|
+
/**
|
|
140
|
+
* Whether a selection tool mode is currently usable: only outside the
|
|
141
|
+
* edit/draw modes.
|
|
142
|
+
*
|
|
143
|
+
* @param mode
|
|
144
|
+
* @private
|
|
145
|
+
*/
|
|
146
|
+
private _isSelectMode;
|
|
147
|
+
/**
|
|
148
|
+
* Enable/disable the box and freehand selection interactions according to
|
|
149
|
+
* the current selection tool and map mode.
|
|
150
|
+
*
|
|
151
|
+
* @private
|
|
152
|
+
*/
|
|
153
|
+
private _refreshSelectionInteractions;
|
|
154
|
+
/**
|
|
155
|
+
* Select the features that intersect the given polygon on the active layer
|
|
156
|
+
* and add them to the edit list. WFS features are picked from the already
|
|
157
|
+
* loaded source, while WMS features are requested to the GeoServer with a
|
|
158
|
+
* WFS GetFeature INTERSECTS filter.
|
|
159
|
+
*
|
|
160
|
+
* @param geometry
|
|
161
|
+
* @private
|
|
162
|
+
*/
|
|
163
|
+
private _selectByGeometry;
|
|
164
|
+
/**
|
|
165
|
+
* Add the given features to the edit mode:
|
|
166
|
+
* remove them from their original layer and push them into the edit
|
|
167
|
+
* collection so they can be modified/deleted like the ones selected
|
|
168
|
+
* with a single click.
|
|
169
|
+
*
|
|
170
|
+
* @param features
|
|
171
|
+
* @private
|
|
172
|
+
*/
|
|
173
|
+
private _selectFeatures;
|
|
112
174
|
/**
|
|
113
175
|
* Layer to store temporary the elements to be edited
|
|
114
176
|
* @private
|
|
115
177
|
*/
|
|
116
178
|
private _prepareEditLayer;
|
|
179
|
+
/**
|
|
180
|
+
* Create the dedicated layer used to highlight the queried feature, so
|
|
181
|
+
* the source layers keep their own rendering untouched.
|
|
182
|
+
* @private
|
|
183
|
+
*/
|
|
184
|
+
private _prepareHighlightLayer;
|
|
185
|
+
/**
|
|
186
|
+
* Listen for clicks while the query mode is active: get the clicked
|
|
187
|
+
* feature of the active layer (from the already loaded source for WFS,
|
|
188
|
+
* or through a GetFeatureInfo request for WMS), highlight it and show
|
|
189
|
+
* its attributes in a popup.
|
|
190
|
+
* @private
|
|
191
|
+
*/
|
|
192
|
+
private _addQueryInteraction;
|
|
193
|
+
/**
|
|
194
|
+
* Highlight the given feature and attach a popup with its attributes.
|
|
195
|
+
* @param feature
|
|
196
|
+
* @param layer
|
|
197
|
+
* @param coordinate
|
|
198
|
+
* @private
|
|
199
|
+
*/
|
|
200
|
+
private _showQueryResult;
|
|
201
|
+
/**
|
|
202
|
+
* Remove the query popup overlay if any.
|
|
203
|
+
* @private
|
|
204
|
+
*/
|
|
205
|
+
private _removeQueryOverlay;
|
|
206
|
+
/**
|
|
207
|
+
* Clear the highlight and remove the query popup.
|
|
208
|
+
* @private
|
|
209
|
+
*/
|
|
210
|
+
private _clearQueryResult;
|
|
211
|
+
/**
|
|
212
|
+
* Activate/deactivate the query mode: while it is active, clicking a
|
|
213
|
+
* feature of the active layer shows its info in a popup instead of
|
|
214
|
+
* selecting it for editing.
|
|
215
|
+
*
|
|
216
|
+
* @param bool
|
|
217
|
+
* @public
|
|
218
|
+
*/
|
|
219
|
+
activateQueryMode(bool?: boolean): void;
|
|
117
220
|
/**
|
|
118
221
|
* @private
|
|
119
222
|
*/
|
|
120
223
|
private _addMapEvents;
|
|
224
|
+
/**
|
|
225
|
+
* Allow panning with the middle mouse button at all times, even when the
|
|
226
|
+
* draw/freehand/box interactions are consuming the left button. The
|
|
227
|
+
* middle pointerdown is intercepted in the capture phase so OpenLayers
|
|
228
|
+
* never processes it and the active tool is not affected.
|
|
229
|
+
*
|
|
230
|
+
* @private
|
|
231
|
+
*/
|
|
232
|
+
private _addMiddleButtonPan;
|
|
121
233
|
/**
|
|
122
234
|
* Add map handlers
|
|
123
235
|
* @private
|
|
@@ -160,7 +272,7 @@ export default class Wfst extends Control {
|
|
|
160
272
|
private _onRemoveFeatureEvent;
|
|
161
273
|
/**
|
|
162
274
|
*
|
|
163
|
-
* @param
|
|
275
|
+
* @param features
|
|
164
276
|
* @private
|
|
165
277
|
*/
|
|
166
278
|
private _editModeOn;
|
|
@@ -169,9 +281,85 @@ export default class Wfst extends Control {
|
|
|
169
281
|
*/
|
|
170
282
|
private _editModeOff;
|
|
171
283
|
/**
|
|
172
|
-
*
|
|
284
|
+
* Get the first and last coordinate of every line component of a
|
|
285
|
+
* LineString/MultiLineString geometry, including the line components
|
|
286
|
+
* nested inside a GeometryCollection. Anything else returns an empty
|
|
287
|
+
* array.
|
|
288
|
+
*
|
|
289
|
+
* @param geometry
|
|
290
|
+
* @private
|
|
291
|
+
*/
|
|
292
|
+
private _getLineEndPoints;
|
|
293
|
+
/**
|
|
294
|
+
* Remove every "continue drawing" overlay and abort any active line
|
|
295
|
+
* extension draw.
|
|
296
|
+
*
|
|
297
|
+
* @private
|
|
298
|
+
*/
|
|
299
|
+
private _destroyExtendLineOverlays;
|
|
300
|
+
/**
|
|
301
|
+
* Keep the "continue drawing" overlays in sync with the current edit
|
|
302
|
+
* selection: they are only shown while editing LineString/MultiLineString
|
|
303
|
+
* features, and they are repositioned on the endpoints of each line
|
|
304
|
+
* component.
|
|
305
|
+
*
|
|
306
|
+
* @private
|
|
307
|
+
*/
|
|
308
|
+
private _syncExtendLineOverlays;
|
|
309
|
+
/**
|
|
310
|
+
* Move the "continue drawing" overlays to the current position of their
|
|
311
|
+
* line endpoints, e.g. after a vertex is dragged with the Modify
|
|
312
|
+
* interaction.
|
|
313
|
+
*
|
|
314
|
+
* @private
|
|
315
|
+
*/
|
|
316
|
+
private _updateExtendOverlayPositions;
|
|
317
|
+
/**
|
|
318
|
+
* Start drawing a continuation of a line from one of its endpoints. The
|
|
319
|
+
* sketch is anchored on the clicked vertex, so the next clicks append the
|
|
320
|
+
* new points. A double click (or clicking back on the last point) ends
|
|
321
|
+
* the drawing and merges the segment into the feature.
|
|
322
|
+
*
|
|
323
|
+
* @param feature
|
|
324
|
+
* @param side 'start' prepends the new segment, 'end' appends it
|
|
325
|
+
* @param component index of the clicked line component
|
|
326
|
+
* @private
|
|
327
|
+
*/
|
|
328
|
+
private _startExtendLineDraw;
|
|
329
|
+
/**
|
|
330
|
+
* Merge the just-drawn segment into the edited feature's line geometry and
|
|
331
|
+
* restore the editing interactions.
|
|
332
|
+
*
|
|
333
|
+
* @param feature
|
|
334
|
+
* @param side
|
|
335
|
+
* @param sketch
|
|
336
|
+
* @param component index of the extended line component
|
|
337
|
+
* @private
|
|
338
|
+
*/
|
|
339
|
+
private _mergeExtendLine;
|
|
340
|
+
/**
|
|
341
|
+
* Remove the active line extension draw and restore the interactions that
|
|
342
|
+
* were disabled while drawing.
|
|
343
|
+
*
|
|
344
|
+
* @private
|
|
345
|
+
*/
|
|
346
|
+
private _finishExtendDraw;
|
|
347
|
+
/**
|
|
348
|
+
* Send all the given features in a single WFS-T Update transaction per
|
|
349
|
+
* layer, so a multi selection is saved with only one request. The "edited"
|
|
350
|
+
* flag is cleared before transacting, so a deselect fired while the
|
|
351
|
+
* request is in flight does not trigger a duplicate transaction.
|
|
352
|
+
*
|
|
353
|
+
* @param list
|
|
354
|
+
* @returns false when there is nothing to transact or the transaction fails
|
|
355
|
+
* @private
|
|
356
|
+
*/
|
|
357
|
+
private _transactEditList;
|
|
358
|
+
/**
|
|
359
|
+
* Remove features from the edit Layer and from the Geoserver
|
|
173
360
|
*
|
|
174
361
|
* @param feature
|
|
362
|
+
* @param confirm
|
|
175
363
|
* @private
|
|
176
364
|
*/
|
|
177
365
|
private _deleteFeature;
|
|
@@ -184,6 +372,30 @@ export default class Wfst extends Control {
|
|
|
184
372
|
* @private
|
|
185
373
|
*/
|
|
186
374
|
private _addFeatureToEditMode;
|
|
375
|
+
/**
|
|
376
|
+
* Lock the whole current selection with a single LockFeature request per
|
|
377
|
+
* layer, so the transaction LockId covers all the selected features
|
|
378
|
+
*
|
|
379
|
+
* @private
|
|
380
|
+
*/
|
|
381
|
+
private _lockSelectedFeatures;
|
|
382
|
+
/**
|
|
383
|
+
* Create an EditOverlay helper and attach the edit listeners
|
|
384
|
+
*
|
|
385
|
+
* @param feature
|
|
386
|
+
* @param coordinate
|
|
387
|
+
* @param id
|
|
388
|
+
* @private
|
|
389
|
+
*/
|
|
390
|
+
private _createEditOverlay;
|
|
391
|
+
/**
|
|
392
|
+
* Sync the edit overlay helpers with the current selection: a single
|
|
393
|
+
* per-feature overlay while a feature is selected, or a unique overlay
|
|
394
|
+
* centered between all the selected features when editing several at once
|
|
395
|
+
*
|
|
396
|
+
* @private
|
|
397
|
+
*/
|
|
398
|
+
private _syncEditOverlays;
|
|
187
399
|
/**
|
|
188
400
|
* Activate/deactivate the draw mode
|
|
189
401
|
*
|
|
@@ -198,6 +410,21 @@ export default class Wfst extends Control {
|
|
|
198
410
|
* @public
|
|
199
411
|
*/
|
|
200
412
|
activateEditMode(bool?: boolean): void;
|
|
413
|
+
/**
|
|
414
|
+
* Reset the cursor and remove the hover style of the last hovered feature
|
|
415
|
+
* @private
|
|
416
|
+
*/
|
|
417
|
+
private _clearHoverState;
|
|
418
|
+
/**
|
|
419
|
+
* Change the map cursor while in edit mode: `move` when the pointer is
|
|
420
|
+
* over an editable vertex and `copy` when it is over a segment (where a
|
|
421
|
+
* new vertex can be inserted), mirroring the Modify interaction hit
|
|
422
|
+
* tolerance.
|
|
423
|
+
*
|
|
424
|
+
* @param evt
|
|
425
|
+
* @private
|
|
426
|
+
*/
|
|
427
|
+
private _updateEditCursor;
|
|
201
428
|
/**
|
|
202
429
|
* Remove the overlay helper atttached to a specify feature
|
|
203
430
|
* @param feature
|
|
@@ -215,6 +442,7 @@ export default class Wfst extends Control {
|
|
|
215
442
|
* evtType: 'singleclick',
|
|
216
443
|
* active: true,
|
|
217
444
|
* showControl: true,
|
|
445
|
+
* fullscreen: true,
|
|
218
446
|
* language: 'en',
|
|
219
447
|
* i18n: {...}, // according to language selection
|
|
220
448
|
* uploadFormats: '.geojson,.json,.kml',
|
|
@@ -239,6 +467,10 @@ interface Options {
|
|
|
239
467
|
* Show/hide the control map
|
|
240
468
|
*/
|
|
241
469
|
showControl?: boolean;
|
|
470
|
+
/**
|
|
471
|
+
* Show/hide the fullscreen button on the map
|
|
472
|
+
*/
|
|
473
|
+
fullscreen?: boolean;
|
|
242
474
|
/**
|
|
243
475
|
* Modal configuration
|
|
244
476
|
*/
|
|
@@ -292,7 +524,7 @@ interface Options {
|
|
|
292
524
|
* }
|
|
293
525
|
* ```
|
|
294
526
|
*/
|
|
295
|
-
interface LayerOptions extends Omit<VectorLayerOptions<any>, 'source'> {
|
|
527
|
+
interface LayerOptions extends Omit<VectorLayerOptions<any, any>, 'source'> {
|
|
296
528
|
/**
|
|
297
529
|
* Layer name in the GeoServer
|
|
298
530
|
*/
|
|
@@ -320,6 +552,11 @@ interface LayerOptions extends Omit<VectorLayerOptions<any>, 'source'> {
|
|
|
320
552
|
* Use this to insert custom properties, modify the feature, etc.
|
|
321
553
|
*/
|
|
322
554
|
beforeTransactFeature?(feature: Feature<Geometry>, transaction: TransactionType): Feature<Geometry>;
|
|
555
|
+
/**
|
|
556
|
+
* Hook to customize the html elements showed in the fields modal
|
|
557
|
+
* Return `null` to hide the field from the modal
|
|
558
|
+
*/
|
|
559
|
+
beforeShowFieldsModal?: (field: IProperty, value: string, formElement: HTMLElement) => HTMLElement | string | null;
|
|
323
560
|
}
|
|
324
561
|
declare class WfstEvent extends BaseEvent {
|
|
325
562
|
data: IGeoserverDescribeFeatureType;
|
package/dist/ol-wfst.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ol-wfst.d.ts","sourceRoot":"","sources":["../src/ol-wfst.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"ol-wfst.d.ts","sourceRoot":"","sources":["../src/ol-wfst.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAI3C,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAE5C,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAO1C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,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