ol-wfst 1.0.7 → 3.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/CHANGELOG.md +26 -1
- package/README.md +125 -48
- package/dist/@enums.d.ts +12 -0
- package/dist/@enums.d.ts.map +1 -0
- package/dist/assets/i18n/en.d.ts +3 -0
- package/dist/assets/i18n/en.d.ts.map +1 -0
- package/dist/assets/i18n/es.d.ts +3 -0
- package/dist/assets/i18n/es.d.ts.map +1 -0
- package/dist/assets/i18n/index.d.ts +3 -0
- package/dist/assets/i18n/index.d.ts.map +1 -0
- package/dist/css/ol-wfst.bootstrap5.css +863 -0
- package/dist/css/ol-wfst.bootstrap5.min.css +1 -0
- package/dist/css/ol-wfst.css +172 -127
- package/dist/css/ol-wfst.min.css +1 -1
- package/dist/ol-wfst.d.ts +143 -86
- package/dist/ol-wfst.d.ts.map +1 -0
- package/dist/ol-wfst.js +5313 -4575
- package/dist/ol-wfst.js.map +1 -0
- package/dist/ol-wfst.min.js +16 -1
- package/dist/ol-wfst.min.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/lib/@enums.d.ts +12 -0
- package/lib/@enums.d.ts.map +1 -0
- package/lib/assets/i18n/en.d.ts +3 -0
- package/lib/assets/i18n/en.d.ts.map +1 -0
- package/lib/assets/i18n/es.d.ts +3 -0
- package/lib/assets/i18n/es.d.ts.map +1 -0
- package/lib/assets/i18n/index.d.ts +3 -0
- package/lib/assets/i18n/index.d.ts.map +1 -0
- package/lib/ol-wfst.d.ts +143 -86
- package/lib/ol-wfst.d.ts.map +1 -0
- package/lib/ol-wfst.js +2126 -2195
- package/lib/ol-wfst.js.map +1 -0
- package/lib/style/css/ol-gisify.css +267 -0
- package/lib/style/css/ol-wfst.bootstrap5.css +863 -0
- package/lib/style/scss/-ol-wfst.bootstrap5.scss +10 -0
- package/lib/{css/ol-wfst.css → style/scss/ol-wfst.scss} +7 -2
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +70 -66
- package/dist/css/bootstrap-modal.min.css +0 -7
- package/lib/css/bootstrap-modal.min.css +0 -7
package/dist/ol-wfst.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Geometry } from 'ol/geom';
|
|
2
2
|
import { Style } from 'ol/style';
|
|
3
3
|
import { Control } from 'ol/control';
|
|
4
4
|
import { Draw, Modify, Select, Snap } from 'ol/interaction';
|
|
5
5
|
import { EventsKey } from 'ol/events';
|
|
6
|
-
import { Feature, Overlay, PluggableMap, View } from 'ol';
|
|
6
|
+
import { Collection, Feature, Overlay, PluggableMap, View } from 'ol';
|
|
7
|
+
import { FeatureLike } from 'ol/Feature';
|
|
7
8
|
import { GeoJSON, KML, WFS } from 'ol/format';
|
|
8
9
|
import { Tile as TileLayer, Vector as VectorLayer } from 'ol/layer';
|
|
9
10
|
import { Options as VectorLayerOptions } from 'ol/layer/BaseVector';
|
|
10
|
-
import '
|
|
11
|
+
import { ProjectionLike } from 'ol/proj';
|
|
12
|
+
import { GeometryType } from './@enums';
|
|
13
|
+
import './assets/scss/-ol-wfst.bootstrap5.scss';
|
|
14
|
+
import './assets/scss/ol-wfst.scss';
|
|
11
15
|
/**
|
|
12
16
|
* Tiny WFST-T client to insert (drawing/uploading), modify and delete
|
|
13
17
|
* features on GeoServers using OpenLayers. Layers with these types
|
|
@@ -16,17 +20,25 @@ import './assets/css/ol-wfst.css';
|
|
|
16
20
|
* "LineString", "MultiLineString", "Polygon" and "MultiPolygon".
|
|
17
21
|
*
|
|
18
22
|
* @constructor
|
|
19
|
-
* @
|
|
23
|
+
* @fires getCapabilities
|
|
24
|
+
* @fires describeFeatureType
|
|
25
|
+
* @fires allDescribeFeatureTypeLoaded
|
|
26
|
+
* @fires getFeature
|
|
27
|
+
* @fires modifystart
|
|
28
|
+
* @fires modifyend
|
|
29
|
+
* @fires drawstart
|
|
30
|
+
* @fires drawend
|
|
31
|
+
* @extends {ol/control/Control~Control}
|
|
20
32
|
* @param opt_options Wfst options, see [Wfst Options](#options) for more details.
|
|
21
33
|
*/
|
|
22
|
-
export default class Wfst {
|
|
23
|
-
protected
|
|
24
|
-
protected _i18n:
|
|
25
|
-
|
|
26
|
-
|
|
34
|
+
export default class Wfst extends Control {
|
|
35
|
+
protected _options: Options;
|
|
36
|
+
protected _i18n: I18n;
|
|
37
|
+
_map: PluggableMap;
|
|
38
|
+
_view: View;
|
|
27
39
|
overlay: Overlay;
|
|
28
|
-
|
|
29
|
-
protected _mapLayers: Array<VectorLayer | TileLayer
|
|
40
|
+
_viewport: HTMLElement;
|
|
41
|
+
protected _mapLayers: Array<VectorLayer<any> | TileLayer<any>>;
|
|
30
42
|
protected _geoServerData: LayerData;
|
|
31
43
|
protected _useLockFeature: boolean;
|
|
32
44
|
protected _hasLockFeature: boolean;
|
|
@@ -34,6 +46,7 @@ export default class Wfst {
|
|
|
34
46
|
protected _geoServerCapabilities: XMLDocument;
|
|
35
47
|
protected interactionWfsSelect: Select;
|
|
36
48
|
protected interactionSelectModify: Select;
|
|
49
|
+
protected _collectionModify: Collection<any>;
|
|
37
50
|
protected interactionModify: Modify;
|
|
38
51
|
protected interactionSnap: Snap;
|
|
39
52
|
protected interactionDraw: Draw;
|
|
@@ -41,7 +54,6 @@ export default class Wfst {
|
|
|
41
54
|
protected _keyRemove: EventsKey;
|
|
42
55
|
protected _keySelect: EventsKey;
|
|
43
56
|
protected _controlApplyDiscardChanges: Control;
|
|
44
|
-
protected _controlWidgetTools: Control;
|
|
45
57
|
protected _controlWidgetToolsDiv: HTMLElement;
|
|
46
58
|
protected _formatWFS: WFS;
|
|
47
59
|
protected _formatGeoJSON: GeoJSON;
|
|
@@ -52,18 +64,22 @@ export default class Wfst {
|
|
|
52
64
|
protected _currentZoom: number;
|
|
53
65
|
protected _lastZoom: number;
|
|
54
66
|
protected _editedFeatures: Set<string>;
|
|
55
|
-
protected _editLayer: VectorLayer
|
|
67
|
+
protected _editLayer: VectorLayer<any>;
|
|
56
68
|
protected _isEditModeOn: boolean;
|
|
57
69
|
protected _isDrawModeOn: boolean;
|
|
58
|
-
protected _editFeature: Feature
|
|
59
|
-
protected _editFeatureOriginal: Feature
|
|
70
|
+
protected _editFeature: Feature<Geometry>;
|
|
71
|
+
protected _editFeatureOriginal: Feature<Geometry>;
|
|
60
72
|
protected _layerToInsertElements: string;
|
|
61
|
-
protected _insertFeatures: Array<Feature
|
|
62
|
-
protected _updateFeatures: Array<Feature
|
|
63
|
-
protected _deleteFeatures: Array<Feature
|
|
73
|
+
protected _insertFeatures: Array<Feature<Geometry>>;
|
|
74
|
+
protected _updateFeatures: Array<Feature<Geometry>>;
|
|
75
|
+
protected _deleteFeatures: Array<Feature<Geometry>>;
|
|
64
76
|
protected _modalLoading: HTMLDivElement;
|
|
65
77
|
protected _selectDraw: HTMLSelectElement;
|
|
66
|
-
constructor(
|
|
78
|
+
constructor(opt_options?: Options);
|
|
79
|
+
/**
|
|
80
|
+
* @private
|
|
81
|
+
*/
|
|
82
|
+
_onLoad(): void;
|
|
67
83
|
/**
|
|
68
84
|
* Connect to the GeoServer and retrieve metadata about the service (GetCapabilities).
|
|
69
85
|
* Get each layer specs (DescribeFeatureType) and create the layers and map controls.
|
|
@@ -74,19 +90,14 @@ export default class Wfst {
|
|
|
74
90
|
* @private
|
|
75
91
|
*/
|
|
76
92
|
_initAsyncOperations(): Promise<void>;
|
|
77
|
-
/**
|
|
78
|
-
* Creates a base control
|
|
79
|
-
*
|
|
80
|
-
* @private
|
|
81
|
-
*/
|
|
82
|
-
_createBaseControl(): void;
|
|
83
93
|
/**
|
|
84
94
|
* Get the capabilities from the GeoServer and check
|
|
85
95
|
* all the available operations.
|
|
86
96
|
*
|
|
97
|
+
* @fires capabilitiesLoaded
|
|
87
98
|
* @private
|
|
88
99
|
*/
|
|
89
|
-
_connectToGeoServerAndGetCapabilities(): Promise<
|
|
100
|
+
_connectToGeoServerAndGetCapabilities(): Promise<void>;
|
|
90
101
|
/**
|
|
91
102
|
* Request and store data layers obtained by DescribeFeatureType
|
|
92
103
|
*
|
|
@@ -117,13 +128,11 @@ export default class Wfst {
|
|
|
117
128
|
_addInteractions(): void;
|
|
118
129
|
/**
|
|
119
130
|
* Layer to store temporary the elements to be edited
|
|
120
|
-
*
|
|
121
131
|
* @private
|
|
122
132
|
*/
|
|
123
133
|
_createEditLayer(): void;
|
|
124
134
|
/**
|
|
125
135
|
* Add map handlers
|
|
126
|
-
*
|
|
127
136
|
* @private
|
|
128
137
|
*/
|
|
129
138
|
_addHandlers(): void;
|
|
@@ -133,11 +142,14 @@ export default class Wfst {
|
|
|
133
142
|
*/
|
|
134
143
|
_addMapControl(): void;
|
|
135
144
|
/**
|
|
136
|
-
* Show Loading
|
|
137
|
-
*
|
|
145
|
+
* Show Loading
|
|
138
146
|
* @private
|
|
139
147
|
*/
|
|
140
148
|
_showLoading(): void;
|
|
149
|
+
/**
|
|
150
|
+
* Hide loading
|
|
151
|
+
* @private
|
|
152
|
+
*/
|
|
141
153
|
_hideLoading(): void;
|
|
142
154
|
/**
|
|
143
155
|
* Lock a feature in the geoserver before edit
|
|
@@ -154,7 +166,7 @@ export default class Wfst {
|
|
|
154
166
|
* @param msg
|
|
155
167
|
* @private
|
|
156
168
|
*/
|
|
157
|
-
_showError(msg: string): void;
|
|
169
|
+
_showError(msg: string, originalError?: Error): void;
|
|
158
170
|
/**
|
|
159
171
|
* Make the WFS Transactions
|
|
160
172
|
*
|
|
@@ -163,39 +175,43 @@ export default class Wfst {
|
|
|
163
175
|
* @param layerName
|
|
164
176
|
* @private
|
|
165
177
|
*/
|
|
166
|
-
_transactWFS(action: string, features: Array<Feature
|
|
178
|
+
_transactWFS(action: string, features: Array<Feature<Geometry>> | Feature<Geometry>, layerName: string): Promise<void>;
|
|
167
179
|
/**
|
|
168
180
|
*
|
|
169
181
|
* @param feature
|
|
170
182
|
* @private
|
|
171
183
|
*/
|
|
172
|
-
_addFeatureToEditedList(feature:
|
|
184
|
+
_addFeatureToEditedList(feature: FeatureLike): void;
|
|
173
185
|
/**
|
|
174
186
|
*
|
|
175
187
|
* @param feature
|
|
176
188
|
* @private
|
|
177
189
|
*/
|
|
178
|
-
_removeFeatureFromEditList(feature:
|
|
190
|
+
_removeFeatureFromEditList(feature: FeatureLike): void;
|
|
179
191
|
/**
|
|
180
192
|
*
|
|
181
193
|
* @param feature
|
|
182
194
|
* @private
|
|
183
195
|
*/
|
|
184
|
-
_isFeatureEdited(feature:
|
|
196
|
+
_isFeatureEdited(feature: FeatureLike): boolean;
|
|
185
197
|
/**
|
|
186
198
|
*
|
|
187
199
|
* @param feature
|
|
188
200
|
* @private
|
|
189
201
|
*/
|
|
190
|
-
_deselectEditFeature(feature:
|
|
202
|
+
_deselectEditFeature(feature: FeatureLike): void;
|
|
191
203
|
/**
|
|
192
204
|
*
|
|
193
205
|
* @param feature
|
|
194
206
|
* @param layerName
|
|
195
207
|
* @private
|
|
196
208
|
*/
|
|
197
|
-
_restoreFeatureToLayer(feature: Feature
|
|
198
|
-
|
|
209
|
+
_restoreFeatureToLayer(feature: Feature<Geometry>, layerName?: string): void;
|
|
210
|
+
/**
|
|
211
|
+
* @private
|
|
212
|
+
* @param feature
|
|
213
|
+
*/
|
|
214
|
+
_removeFeatureFromTmpLayer(feature: Feature<Geometry>): void;
|
|
199
215
|
/**
|
|
200
216
|
* Trigger on deselecting a feature from in the Edit layer
|
|
201
217
|
*
|
|
@@ -216,13 +232,13 @@ export default class Wfst {
|
|
|
216
232
|
* @param feature
|
|
217
233
|
* @private
|
|
218
234
|
*/
|
|
219
|
-
_styleFunction(feature: Feature): Array<Style>;
|
|
235
|
+
_styleFunction(feature: Feature<Geometry>): Array<Style>;
|
|
220
236
|
/**
|
|
221
237
|
*
|
|
222
238
|
* @param feature
|
|
223
239
|
* @private
|
|
224
240
|
*/
|
|
225
|
-
_editModeOn(feature: Feature): void;
|
|
241
|
+
_editModeOn(feature: Feature<Geometry>): void;
|
|
226
242
|
/**
|
|
227
243
|
* @private
|
|
228
244
|
*/
|
|
@@ -233,7 +249,7 @@ export default class Wfst {
|
|
|
233
249
|
* @param feature
|
|
234
250
|
* @private
|
|
235
251
|
*/
|
|
236
|
-
_deleteFeature(feature: Feature
|
|
252
|
+
_deleteFeature(feature: Feature<Geometry>, confirm: boolean): void;
|
|
237
253
|
/**
|
|
238
254
|
* Add a feature to the Edit Layer to allow editing, and creates an Overlay Helper to show options
|
|
239
255
|
*
|
|
@@ -242,7 +258,7 @@ export default class Wfst {
|
|
|
242
258
|
* @param layerName
|
|
243
259
|
* @private
|
|
244
260
|
*/
|
|
245
|
-
_addFeatureToEdit(feature: Feature
|
|
261
|
+
_addFeatureToEdit(feature: Feature<Geometry>, coordinate?: any, layerName?: any): void;
|
|
246
262
|
/**
|
|
247
263
|
* Removes in the DOM the class of the tools
|
|
248
264
|
* @private
|
|
@@ -255,7 +271,7 @@ export default class Wfst {
|
|
|
255
271
|
* @param featureToInsert
|
|
256
272
|
* @private
|
|
257
273
|
*/
|
|
258
|
-
_initUploadFileModal(content: string, featuresToInsert: Array<Feature
|
|
274
|
+
_initUploadFileModal(content: string, featuresToInsert: Array<Feature<Geometry>>): void;
|
|
259
275
|
/**
|
|
260
276
|
* Parse and check geometry of uploaded files
|
|
261
277
|
*
|
|
@@ -268,6 +284,7 @@ export default class Wfst {
|
|
|
268
284
|
*
|
|
269
285
|
* @param layerName
|
|
270
286
|
* @param geomDrawTypeSelected
|
|
287
|
+
* @private
|
|
271
288
|
*/
|
|
272
289
|
_changeStateSelect(layerName: string, geomDrawTypeSelected?: GeometryType): GeometryType;
|
|
273
290
|
/**
|
|
@@ -292,20 +309,20 @@ export default class Wfst {
|
|
|
292
309
|
* @param features
|
|
293
310
|
* @public
|
|
294
311
|
*/
|
|
295
|
-
insertFeaturesTo(layerName: string, features: Array<Feature
|
|
312
|
+
insertFeaturesTo(layerName: string, features: Array<Feature<Geometry>>): void;
|
|
296
313
|
/**
|
|
297
314
|
* Shows a fields form in a modal window to allow changes in the properties of the feature.
|
|
298
315
|
*
|
|
299
316
|
* @param feature
|
|
300
317
|
* @private
|
|
301
318
|
*/
|
|
302
|
-
_initEditFieldsModal(feature: Feature): void;
|
|
319
|
+
_initEditFieldsModal(feature: Feature<Geometry>): void;
|
|
303
320
|
/**
|
|
304
321
|
* Remove the overlay helper atttached to a specify feature
|
|
305
322
|
* @param feature
|
|
306
323
|
* @private
|
|
307
324
|
*/
|
|
308
|
-
_removeOverlayHelper(feature:
|
|
325
|
+
_removeOverlayHelper(feature: FeatureLike): void;
|
|
309
326
|
}
|
|
310
327
|
/**
|
|
311
328
|
* **_[interface]_** - Wfst Options specified when creating a Wfst instance
|
|
@@ -314,6 +331,14 @@ export default class Wfst {
|
|
|
314
331
|
* ```javascript
|
|
315
332
|
* {
|
|
316
333
|
* geoServerUrl: null,
|
|
334
|
+
* geoServerAdvanced: {
|
|
335
|
+
* getCapabilitiesVersion: '1.3.0',
|
|
336
|
+
* getFeatureVersion: '1.0.0',
|
|
337
|
+
* describeFeatureTypeVersion: '1.1.0',
|
|
338
|
+
* lockFeatureVersion: '1.1.0',
|
|
339
|
+
* wfsTransactionVersion: '1.1.0',
|
|
340
|
+
* projection: 'EPSG:3857'
|
|
341
|
+
* },
|
|
317
342
|
* headers: {},
|
|
318
343
|
* layers: null,
|
|
319
344
|
* evtType: 'singleclick',
|
|
@@ -321,7 +346,8 @@ export default class Wfst {
|
|
|
321
346
|
* showControl: true,
|
|
322
347
|
* useLockFeature: true,
|
|
323
348
|
* minZoom: 9,
|
|
324
|
-
* language: '
|
|
349
|
+
* language: 'en',
|
|
350
|
+
* i18n: {...}, // according to language selection
|
|
325
351
|
* uploadFormats: '.geojson,.json,.kml',
|
|
326
352
|
* processUpload: null,
|
|
327
353
|
* beforeInsertFeature: null,
|
|
@@ -333,6 +359,17 @@ interface Options {
|
|
|
333
359
|
* Url for OWS services. This endpoint will recive the WFS, WFST and WMS requests
|
|
334
360
|
*/
|
|
335
361
|
geoServerUrl: string;
|
|
362
|
+
/**
|
|
363
|
+
* Advanced options for geoserver requests
|
|
364
|
+
*/
|
|
365
|
+
geoServerAdvanced?: {
|
|
366
|
+
getCapabilitiesVersion?: string;
|
|
367
|
+
getFeatureVersion?: string;
|
|
368
|
+
lockFeatureVersion?: string;
|
|
369
|
+
describeFeatureTypeVersion?: string;
|
|
370
|
+
wfsTransactionVersion?: string;
|
|
371
|
+
projection?: ProjectionLike;
|
|
372
|
+
};
|
|
336
373
|
/**
|
|
337
374
|
* Url headers for GeoServer requests. You can use it to add Authorization credentials
|
|
338
375
|
*/
|
|
@@ -363,10 +400,27 @@ interface Options {
|
|
|
363
400
|
* Zoom level to hide features to prevent too much features being loaded
|
|
364
401
|
*/
|
|
365
402
|
minZoom?: number;
|
|
403
|
+
/**
|
|
404
|
+
* Modal configuration
|
|
405
|
+
*/
|
|
406
|
+
modal?: {
|
|
407
|
+
animateClass?: string;
|
|
408
|
+
animateInClass?: string;
|
|
409
|
+
transition?: number;
|
|
410
|
+
backdropTransition?: number;
|
|
411
|
+
templates?: {
|
|
412
|
+
dialog?: string | HTMLElement;
|
|
413
|
+
headerClose?: string | HTMLElement;
|
|
414
|
+
};
|
|
415
|
+
};
|
|
366
416
|
/**
|
|
367
417
|
* Language to be used
|
|
368
418
|
*/
|
|
369
419
|
language?: 'es' | 'en';
|
|
420
|
+
/**
|
|
421
|
+
* Custom translations
|
|
422
|
+
*/
|
|
423
|
+
i18n?: I18n;
|
|
370
424
|
/**
|
|
371
425
|
* Show/hide the upload button
|
|
372
426
|
*/
|
|
@@ -381,12 +435,12 @@ interface Options {
|
|
|
381
435
|
* by filtering the extension. If this doesn't return features, the default function
|
|
382
436
|
* will be used to extract them.
|
|
383
437
|
*/
|
|
384
|
-
processUpload?(file: File): Array<Feature
|
|
438
|
+
processUpload?(file: File): Array<Feature<Geometry>>;
|
|
385
439
|
/**
|
|
386
440
|
* Triggered before inserting new features to the Geoserver.
|
|
387
441
|
* Use this to insert custom properties, modify the feature, etc.
|
|
388
442
|
*/
|
|
389
|
-
beforeInsertFeature?(feature: Feature): Feature
|
|
443
|
+
beforeInsertFeature?(feature: Feature<Geometry>): Feature<Geometry>;
|
|
390
444
|
}
|
|
391
445
|
/**
|
|
392
446
|
* **_[interface]_** - Parameters to create the layers and connect to the GeoServer
|
|
@@ -397,7 +451,7 @@ interface Options {
|
|
|
397
451
|
* ```javascript
|
|
398
452
|
* {
|
|
399
453
|
* name: null,
|
|
400
|
-
* label:
|
|
454
|
+
* label: null, // `name` if not provided
|
|
401
455
|
* mode: 'wfs',
|
|
402
456
|
* wfsStrategy: 'bbox',
|
|
403
457
|
* cqlFilter: null,
|
|
@@ -406,7 +460,7 @@ interface Options {
|
|
|
406
460
|
* ```
|
|
407
461
|
*
|
|
408
462
|
*/
|
|
409
|
-
interface LayerParams extends Omit<VectorLayerOptions
|
|
463
|
+
interface LayerParams extends Omit<VectorLayerOptions<any>, 'source'> {
|
|
410
464
|
/**
|
|
411
465
|
* Layer name in the GeoServer
|
|
412
466
|
*/
|
|
@@ -449,42 +503,45 @@ interface LayerData {
|
|
|
449
503
|
}
|
|
450
504
|
/**
|
|
451
505
|
* **_[interface]_** - Custom Language specified when creating a WFST instance
|
|
452
|
-
* @protected
|
|
453
506
|
*/
|
|
454
|
-
interface
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
507
|
+
interface I18n {
|
|
508
|
+
/** Labels section */
|
|
509
|
+
labels?: {
|
|
510
|
+
select?: string;
|
|
511
|
+
addElement?: string;
|
|
512
|
+
editElement?: string;
|
|
513
|
+
save?: string;
|
|
514
|
+
delete?: string;
|
|
515
|
+
cancel?: string;
|
|
516
|
+
apply?: string;
|
|
517
|
+
upload?: string;
|
|
518
|
+
editMode?: string;
|
|
519
|
+
confirmDelete?: string;
|
|
520
|
+
geomTypeNotSupported?: string;
|
|
521
|
+
editFields?: string;
|
|
522
|
+
editGeom?: string;
|
|
523
|
+
selectDrawType?: string;
|
|
524
|
+
uploadToLayer?: string;
|
|
525
|
+
uploadFeatures?: string;
|
|
526
|
+
validFeatures?: string;
|
|
527
|
+
invalidFeatures?: string;
|
|
528
|
+
loading?: string;
|
|
529
|
+
toggleVisibility?: string;
|
|
530
|
+
close?: string;
|
|
476
531
|
};
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
532
|
+
/** Errors section */
|
|
533
|
+
errors?: {
|
|
534
|
+
capabilities?: string;
|
|
535
|
+
wfst?: string;
|
|
536
|
+
layer?: string;
|
|
537
|
+
noValidGeometry?: string;
|
|
538
|
+
geoserver?: string;
|
|
539
|
+
badFormat?: string;
|
|
540
|
+
badFile?: string;
|
|
541
|
+
lockFeature?: string;
|
|
542
|
+
transaction?: string;
|
|
543
|
+
getFeatures?: string;
|
|
488
544
|
};
|
|
489
545
|
}
|
|
490
|
-
export { Options,
|
|
546
|
+
export { Options, I18n, LayerParams };
|
|
547
|
+
//# sourceMappingURL=ol-wfst.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ol-wfst.d.ts","sourceRoot":"","sources":["../src/ol-wfst.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,QAAQ,EAQX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAuC,KAAK,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;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