ol-wfst 4.4.0 → 5.1.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 +191 -175
- package/dist/@types.d.ts +15 -1
- 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 +8 -2
- package/dist/WfsLayer.d.ts.map +1 -1
- package/dist/WmsLayer.d.ts +32 -2
- 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 +563 -149
- 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 +23 -4
- 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 +8 -1
- 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 +251 -5
- package/dist/ol-wfst.d.ts.map +1 -1
- package/dist/ol-wfst.js +2008 -391
- 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 +15 -1
- 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 +8 -2
- package/lib/WfsLayer.d.ts.map +1 -1
- package/lib/WmsLayer.d.ts +32 -2
- 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 +23 -4
- 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 +8 -1
- 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 +251 -5
- package/lib/ol-wfst.d.ts.map +1 -1
- package/lib/ol-wfst.js +2013 -392
- package/lib/ol-wfst.js.map +1 -1
- package/lib/style/css/ol-gisify.css +563 -149
- 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 +728 -213
- 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/README.md
CHANGED
|
@@ -14,10 +14,12 @@
|
|
|
14
14
|
|
|
15
15
|
Tiny WFS-T client to insert (drawing/uploading), modify and delete features on GeoServers using [OpenLayers](https://openlayers.org/). Layers with these types of geometries are supported: _GeometryCollection_ (in this case, you can choose the geometry type of each element to draw), _Point_, _MultiPoint_, _LineString_, _MultiLineString_, _Polygon_ and _MultiPolygon_.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Supports multi-feature editing in a single transaction: select several features at once and modify both their geometry or their attributes together. The edit form inputs can be customized via hooks (`beforeShowFieldsModal`) to replace the default ones with your own — create selects, validation, prefilled values, etc.
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
Tested with OpenLayers version 5, 6, 7, 8, 9 and 10.
|
|
20
|
+
|
|
21
|
+
<img src="screenshots/example-1.jpg" alt="Selecting" style="width:50%; float:left;">
|
|
22
|
+
<img src="screenshots/example-2.jpg" alt="Editing fields" style="width:50%; float:left;">
|
|
21
23
|
|
|
22
24
|
## Usage
|
|
23
25
|
|
|
@@ -241,9 +243,9 @@ wfsLayer.getSource().on([...])
|
|
|
241
243
|
|
|
242
244
|
### Some considerations
|
|
243
245
|
|
|
244
|
-
-
|
|
245
|
-
-
|
|
246
|
-
-
|
|
246
|
+
- If the features/vertex appear to be slightly offset after adding them, check the _Number of Decimals_ in your Workplace, you may have to increment that to have a more accurete preview.
|
|
247
|
+
- You can configure a _Basic Authentication_ or an _HTTP Header Proxy Authentication_ with this client, but in some cases is recommended setting that on an reverse proxy on the backend.
|
|
248
|
+
- If you don't use a reverse proxy, remember configure [cors](https://docs.geoserver.org/latest/en/user/production/container.html#enable-cors)
|
|
247
249
|
|
|
248
250
|
## Changelog
|
|
249
251
|
|
|
@@ -258,14 +260,14 @@ See [CHANGELOG](./CHANGELOG.md) for details of changes in each release.
|
|
|
258
260
|
Load `ol-wfst.js` after OpenLayers. The available classes are `Wfst`, `Wfst.Geoserver`, `Wfst.WfsLayer` and `Wfst.WmsLayer`.
|
|
259
261
|
|
|
260
262
|
```HTML
|
|
261
|
-
<script src="https://unpkg.com/ol-wfst@
|
|
263
|
+
<script src="https://unpkg.com/ol-wfst@5.0.1"></script>
|
|
262
264
|
```
|
|
263
265
|
|
|
264
266
|
#### CSS
|
|
265
267
|
|
|
266
268
|
```HTML
|
|
267
|
-
<link rel="stylesheet" href="https://unpkg.com/ol-wfst@
|
|
268
|
-
<link rel="stylesheet" href="https://unpkg.com/ol-wfst@
|
|
269
|
+
<link rel="stylesheet" href="https://unpkg.com/ol-wfst@5.0.1/dist/css/ol-wfst.min.css" />
|
|
270
|
+
<link rel="stylesheet" href="https://unpkg.com/ol-wfst@5.0.1/dist/css/ol-wfst.bootstrap5.min.css" />
|
|
269
271
|
```
|
|
270
272
|
|
|
271
273
|
### Parcel, Webpack, etc.
|
|
@@ -304,109 +306,112 @@ TypeScript types are shipped with the project in the dist directory and should b
|
|
|
304
306
|
|
|
305
307
|
#### Table of Contents
|
|
306
308
|
|
|
307
|
-
-
|
|
308
|
-
-
|
|
309
|
-
-
|
|
310
|
-
-
|
|
311
|
-
-
|
|
312
|
-
-
|
|
313
|
-
-
|
|
314
|
-
-
|
|
315
|
-
-
|
|
316
|
-
-
|
|
317
|
-
-
|
|
318
|
-
-
|
|
319
|
-
-
|
|
320
|
-
-
|
|
321
|
-
-
|
|
322
|
-
-
|
|
323
|
-
-
|
|
324
|
-
-
|
|
325
|
-
-
|
|
326
|
-
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
-
|
|
330
|
-
-
|
|
331
|
-
|
|
332
|
-
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
-
|
|
342
|
-
|
|
343
|
-
-
|
|
344
|
-
-
|
|
345
|
-
-
|
|
346
|
-
|
|
347
|
-
-
|
|
348
|
-
|
|
349
|
-
-
|
|
350
|
-
-
|
|
351
|
-
|
|
352
|
-
-
|
|
353
|
-
-
|
|
354
|
-
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
-
|
|
358
|
-
|
|
359
|
-
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
-
|
|
363
|
-
|
|
364
|
-
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
-
|
|
368
|
-
|
|
369
|
-
-
|
|
370
|
-
-
|
|
371
|
-
-
|
|
372
|
-
-
|
|
373
|
-
-
|
|
374
|
-
-
|
|
375
|
-
-
|
|
376
|
-
-
|
|
377
|
-
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
-
|
|
381
|
-
|
|
382
|
-
-
|
|
383
|
-
-
|
|
384
|
-
-
|
|
385
|
-
-
|
|
386
|
-
-
|
|
387
|
-
-
|
|
388
|
-
|
|
389
|
-
-
|
|
390
|
-
-
|
|
391
|
-
-
|
|
392
|
-
-
|
|
393
|
-
-
|
|
394
|
-
-
|
|
395
|
-
|
|
396
|
-
-
|
|
397
|
-
|
|
398
|
-
-
|
|
399
|
-
-
|
|
400
|
-
-
|
|
401
|
-
-
|
|
402
|
-
-
|
|
403
|
-
-
|
|
404
|
-
-
|
|
405
|
-
-
|
|
406
|
-
-
|
|
407
|
-
-
|
|
408
|
-
|
|
409
|
-
-
|
|
309
|
+
- [BaseGeoserverVendor](#basegeoservervendor)
|
|
310
|
+
- [key](#key)
|
|
311
|
+
- [cql\_filter](#cql_filter)
|
|
312
|
+
- [sortBy](#sortby)
|
|
313
|
+
- [featureid](#featureid)
|
|
314
|
+
- [filter](#filter)
|
|
315
|
+
- [format\_options](#format_options)
|
|
316
|
+
- [maxFeatures](#maxfeatures)
|
|
317
|
+
- [startIndex](#startindex)
|
|
318
|
+
- [propertyname](#propertyname)
|
|
319
|
+
- [Wfst](#wfst)
|
|
320
|
+
- [Parameters](#parameters)
|
|
321
|
+
- [getLayers](#getlayers)
|
|
322
|
+
- [getLayerByName](#getlayerbyname)
|
|
323
|
+
- [Parameters](#parameters-1)
|
|
324
|
+
- [activateQueryMode](#activatequerymode)
|
|
325
|
+
- [Parameters](#parameters-2)
|
|
326
|
+
- [activateDrawMode](#activatedrawmode)
|
|
327
|
+
- [Parameters](#parameters-3)
|
|
328
|
+
- [activateEditMode](#activateeditmode)
|
|
329
|
+
- [Parameters](#parameters-4)
|
|
330
|
+
- [Geoserver](#geoserver)
|
|
331
|
+
- [Parameters](#parameters-5)
|
|
332
|
+
- [getCapabilities](#getcapabilities)
|
|
333
|
+
- [getParsedCapabilities](#getparsedcapabilities)
|
|
334
|
+
- [setUrl](#seturl)
|
|
335
|
+
- [Parameters](#parameters-6)
|
|
336
|
+
- [getUrl](#geturl)
|
|
337
|
+
- [setHeaders](#setheaders)
|
|
338
|
+
- [Parameters](#parameters-7)
|
|
339
|
+
- [getHeaders](#getheaders)
|
|
340
|
+
- [setCredentials](#setcredentials)
|
|
341
|
+
- [Parameters](#parameters-8)
|
|
342
|
+
- [getCredentials](#getcredentials)
|
|
343
|
+
- [setAdvanced](#setadvanced)
|
|
344
|
+
- [Parameters](#parameters-9)
|
|
345
|
+
- [getAdvanced](#getadvanced)
|
|
346
|
+
- [hasTransaction](#hastransaction)
|
|
347
|
+
- [hasLockFeature](#haslockfeature)
|
|
348
|
+
- [getUseLockFeature](#getuselockfeature)
|
|
349
|
+
- [setUseLockFeature](#setuselockfeature)
|
|
350
|
+
- [Parameters](#parameters-10)
|
|
351
|
+
- [isLoaded](#isloaded)
|
|
352
|
+
- [getState](#getstate)
|
|
353
|
+
- [getAndUpdateCapabilities](#getandupdatecapabilities)
|
|
354
|
+
- [\_removeFeatures](#_removefeatures)
|
|
355
|
+
- [Parameters](#parameters-11)
|
|
356
|
+
- [lockFeature](#lockfeature)
|
|
357
|
+
- [Parameters](#parameters-12)
|
|
358
|
+
- [WfsLayer](#wfslayer)
|
|
359
|
+
- [Parameters](#parameters-13)
|
|
360
|
+
- [refresh](#refresh)
|
|
361
|
+
- [setCustomParam](#setcustomparam)
|
|
362
|
+
- [Parameters](#parameters-14)
|
|
363
|
+
- [WmsLayer](#wmslayer)
|
|
364
|
+
- [Parameters](#parameters-15)
|
|
365
|
+
- [refresh](#refresh-1)
|
|
366
|
+
- [setCustomParam](#setcustomparam-1)
|
|
367
|
+
- [Parameters](#parameters-16)
|
|
368
|
+
- [Options](#options)
|
|
369
|
+
- [processUpload](#processupload)
|
|
370
|
+
- [Parameters](#parameters-17)
|
|
371
|
+
- [layers](#layers)
|
|
372
|
+
- [active](#active)
|
|
373
|
+
- [evtType](#evttype)
|
|
374
|
+
- [showControl](#showcontrol)
|
|
375
|
+
- [fullscreen](#fullscreen)
|
|
376
|
+
- [modal](#modal)
|
|
377
|
+
- [language](#language)
|
|
378
|
+
- [i18n](#i18n)
|
|
379
|
+
- [showUpload](#showupload)
|
|
380
|
+
- [uploadFormats](#uploadformats)
|
|
381
|
+
- [LayerOptions](#layeroptions)
|
|
382
|
+
- [beforeTransactFeature](#beforetransactfeature)
|
|
383
|
+
- [Parameters](#parameters-18)
|
|
384
|
+
- [name](#name)
|
|
385
|
+
- [geoserver](#geoserver-1)
|
|
386
|
+
- [label](#label)
|
|
387
|
+
- [geoserverVendor](#geoservervendor)
|
|
388
|
+
- [strategy](#strategy)
|
|
389
|
+
- [beforeShowFieldsModal](#beforeshowfieldsmodal)
|
|
390
|
+
- [GeoserverOptions](#geoserveroptions)
|
|
391
|
+
- [url](#url)
|
|
392
|
+
- [advanced](#advanced)
|
|
393
|
+
- [headers](#headers)
|
|
394
|
+
- [credentials](#credentials)
|
|
395
|
+
- [useLockFeature](#uselockfeature)
|
|
396
|
+
- [GeoServerAdvanced](#geoserveradvanced)
|
|
397
|
+
- [WfsGeoserverVendor](#wfsgeoservervendor)
|
|
398
|
+
- [strict](#strict)
|
|
399
|
+
- [WmsGeoserverVendor](#wmsgeoservervendor)
|
|
400
|
+
- [buffer](#buffer)
|
|
401
|
+
- [env](#env)
|
|
402
|
+
- [clip](#clip)
|
|
403
|
+
- [styles](#styles)
|
|
404
|
+
- [transparent](#transparent)
|
|
405
|
+
- [bgcolor](#bgcolor)
|
|
406
|
+
- [time](#time)
|
|
407
|
+
- [sld](#sld)
|
|
408
|
+
- [sld\_body](#sld_body)
|
|
409
|
+
- [IProperty](#iproperty)
|
|
410
|
+
- [IGeoserverDescribeFeatureType](#igeoserverdescribefeaturetype)
|
|
411
|
+
- [\_parsed](#_parsed)
|
|
412
|
+
- [I18n](#i18n-1)
|
|
413
|
+
- [labels](#labels)
|
|
414
|
+
- [errors](#errors)
|
|
410
415
|
|
|
411
416
|
### BaseGeoserverVendor
|
|
412
417
|
|
|
@@ -414,7 +419,7 @@ TypeScript types are shipped with the project in the dist directory and should b
|
|
|
414
419
|
|
|
415
420
|
Add any other param
|
|
416
421
|
|
|
417
|
-
####
|
|
422
|
+
#### cql\_filter
|
|
418
423
|
|
|
419
424
|
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#cql-filter>
|
|
420
425
|
|
|
@@ -438,7 +443,7 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
|
|
|
438
443
|
|
|
439
444
|
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
440
445
|
|
|
441
|
-
####
|
|
446
|
+
#### format\_options
|
|
442
447
|
|
|
443
448
|
WMS: <https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#format-options>
|
|
444
449
|
WFS: <https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html#format-options>
|
|
@@ -475,7 +480,7 @@ choose the geometry type of each element to draw), "Point", "MultiPoint",
|
|
|
475
480
|
|
|
476
481
|
#### Parameters
|
|
477
482
|
|
|
478
|
-
-
|
|
483
|
+
- `options` **[Options](#options)?** Wfst options, see [Wfst Options](#options) for more details.
|
|
479
484
|
|
|
480
485
|
#### getLayers
|
|
481
486
|
|
|
@@ -489,17 +494,29 @@ Get a layer
|
|
|
489
494
|
|
|
490
495
|
##### Parameters
|
|
491
496
|
|
|
492
|
-
-
|
|
497
|
+
- `layerName` (optional, default `''`)
|
|
493
498
|
|
|
494
499
|
Returns **([WfsLayer](#wfslayer) | [WmsLayer](#wmslayer))** 
|
|
495
500
|
|
|
501
|
+
#### activateQueryMode
|
|
502
|
+
|
|
503
|
+
Activate/deactivate the query mode: while it is active, clicking a
|
|
504
|
+
feature of the active layer shows its info in a popup instead of
|
|
505
|
+
selecting it for editing.
|
|
506
|
+
|
|
507
|
+
##### Parameters
|
|
508
|
+
|
|
509
|
+
- `bool` (optional, default `true`)
|
|
510
|
+
|
|
511
|
+
Returns **void** 
|
|
512
|
+
|
|
496
513
|
#### activateDrawMode
|
|
497
514
|
|
|
498
515
|
Activate/deactivate the draw mode
|
|
499
516
|
|
|
500
517
|
##### Parameters
|
|
501
518
|
|
|
502
|
-
-
|
|
519
|
+
- `layer` **([WfsLayer](#wfslayer) | [WmsLayer](#wmslayer) | `false`)** 
|
|
503
520
|
|
|
504
521
|
Returns **void** 
|
|
505
522
|
|
|
@@ -509,7 +526,7 @@ Activate/desactivate the edit mode
|
|
|
509
526
|
|
|
510
527
|
##### Parameters
|
|
511
528
|
|
|
512
|
-
-
|
|
529
|
+
- `bool` (optional, default `true`)
|
|
513
530
|
|
|
514
531
|
Returns **void** 
|
|
515
532
|
|
|
@@ -519,7 +536,7 @@ Returns **void** 
|
|
|
519
536
|
|
|
520
537
|
#### Parameters
|
|
521
538
|
|
|
522
|
-
-
|
|
539
|
+
- `options` **[GeoserverOptions](#geoserveroptions)** 
|
|
523
540
|
|
|
524
541
|
#### getCapabilities
|
|
525
542
|
|
|
@@ -535,8 +552,8 @@ Returns **any** 
|
|
|
535
552
|
|
|
536
553
|
##### Parameters
|
|
537
554
|
|
|
538
|
-
-
|
|
539
|
-
-
|
|
555
|
+
- `url` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
556
|
+
- `opt_silent` (optional, default `false`)
|
|
540
557
|
|
|
541
558
|
Returns **void** 
|
|
542
559
|
|
|
@@ -548,8 +565,8 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
|
|
|
548
565
|
|
|
549
566
|
##### Parameters
|
|
550
567
|
|
|
551
|
-
-
|
|
552
|
-
-
|
|
568
|
+
- `headers` **HeadersInit** (optional, default `{}`)
|
|
569
|
+
- `opt_silent` (optional, default `false`)
|
|
553
570
|
|
|
554
571
|
Returns **void** 
|
|
555
572
|
|
|
@@ -561,8 +578,8 @@ Returns **HeadersInit** 
|
|
|
561
578
|
|
|
562
579
|
##### Parameters
|
|
563
580
|
|
|
564
|
-
-
|
|
565
|
-
-
|
|
581
|
+
- `credentials` **RequestCredentials** (optional, default `null`)
|
|
582
|
+
- `opt_silent` (optional, default `false`)
|
|
566
583
|
|
|
567
584
|
Returns **void** 
|
|
568
585
|
|
|
@@ -574,8 +591,8 @@ Returns **RequestCredentials** 
|
|
|
574
591
|
|
|
575
592
|
##### Parameters
|
|
576
593
|
|
|
577
|
-
-
|
|
578
|
-
-
|
|
594
|
+
- `advanced` **[GeoServerAdvanced](#geoserveradvanced)** (optional, default `{}`)
|
|
595
|
+
- `opt_silent` (optional, default `false`)
|
|
579
596
|
|
|
580
597
|
Returns **void** 
|
|
581
598
|
|
|
@@ -599,8 +616,8 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
599
616
|
|
|
600
617
|
##### Parameters
|
|
601
618
|
|
|
602
|
-
-
|
|
603
|
-
-
|
|
619
|
+
- `useLockFeature` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
|
|
620
|
+
- `opt_silent` (optional, default `false`)
|
|
604
621
|
|
|
605
622
|
Returns **void** 
|
|
606
623
|
|
|
@@ -621,18 +638,19 @@ Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
621
638
|
|
|
622
639
|
##### Parameters
|
|
623
640
|
|
|
624
|
-
-
|
|
641
|
+
- `features` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<Feature\<Geometry>>** 
|
|
625
642
|
|
|
626
643
|
#### lockFeature
|
|
627
644
|
|
|
628
|
-
Lock
|
|
629
|
-
to avoid changes from multiples
|
|
645
|
+
Lock one or several features in the geoserver. Useful before editing,
|
|
646
|
+
to avoid changes from multiples users. Locking several features at once
|
|
647
|
+
with a single request keeps the lock covered by one LockId
|
|
630
648
|
|
|
631
649
|
##### Parameters
|
|
632
650
|
|
|
633
|
-
-
|
|
634
|
-
-
|
|
635
|
-
-
|
|
651
|
+
- `featureIds` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number) | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))>)** 
|
|
652
|
+
- `layerName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
653
|
+
- `retry` (optional, default `0`)
|
|
636
654
|
|
|
637
655
|
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** 
|
|
638
656
|
|
|
@@ -645,7 +663,7 @@ Layer to retrieve WFS features from geoservers
|
|
|
645
663
|
|
|
646
664
|
#### Parameters
|
|
647
665
|
|
|
648
|
-
-
|
|
666
|
+
- `options` **[LayerOptions](#layeroptions)** 
|
|
649
667
|
|
|
650
668
|
#### refresh
|
|
651
669
|
|
|
@@ -655,13 +673,13 @@ Use this to update Geoserver Wms Vendors (<https://docs.geoserver.org/latest/en/
|
|
|
655
673
|
and other arguements (<https://docs.geoserver.org/stable/en/user/services/wms/reference.html#getmap>)
|
|
656
674
|
in all the getMap requests.
|
|
657
675
|
|
|
658
|
-
Example: you can use this to change the style of the WMS, add a custom sld, set a
|
|
676
|
+
Example: you can use this to change the style of the WMS, add a custom sld, set a cql\_filter, etc.
|
|
659
677
|
|
|
660
678
|
##### Parameters
|
|
661
679
|
|
|
662
|
-
-
|
|
663
|
-
-
|
|
664
|
-
-
|
|
680
|
+
- `paramName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
681
|
+
- `value` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Use `undefined` or `null` to remove the param (optional, default `null`)
|
|
682
|
+
- `refresh` (optional, default `true`)
|
|
665
683
|
|
|
666
684
|
Returns **URLSearchParams** 
|
|
667
685
|
|
|
@@ -674,7 +692,7 @@ Layer to retrieve WMS information from geoservers
|
|
|
674
692
|
|
|
675
693
|
#### Parameters
|
|
676
694
|
|
|
677
|
-
-
|
|
695
|
+
- `options` **[LayerOptions](#layeroptions)** 
|
|
678
696
|
|
|
679
697
|
#### refresh
|
|
680
698
|
|
|
@@ -684,19 +702,19 @@ Use this to update Geoserver Wfs Vendors (<https://docs.geoserver.org/latest/en/
|
|
|
684
702
|
and other arguements (<https://docs.geoserver.org/stable/en/user/services/wfs/reference.html>)
|
|
685
703
|
in all the getFeature requests.
|
|
686
704
|
|
|
687
|
-
Example: you can use this to set a
|
|
705
|
+
Example: you can use this to set a cql\_filter, limit the numbers of features, etc.
|
|
688
706
|
|
|
689
707
|
##### Parameters
|
|
690
708
|
|
|
691
|
-
-
|
|
692
|
-
-
|
|
693
|
-
-
|
|
709
|
+
- `paramName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
710
|
+
- `value` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (optional, default `null`)
|
|
711
|
+
- `refresh` (optional, default `true`)
|
|
694
712
|
|
|
695
713
|
Returns **URLSearchParams** 
|
|
696
714
|
|
|
697
715
|
### Options
|
|
698
716
|
|
|
699
|
-
|
|
717
|
+
_**\[interface]**_ - Wfst Options specified when creating a Wfst instance
|
|
700
718
|
|
|
701
719
|
Default values:
|
|
702
720
|
|
|
@@ -706,6 +724,7 @@ Default values:
|
|
|
706
724
|
evtType: 'singleclick',
|
|
707
725
|
active: true,
|
|
708
726
|
showControl: true,
|
|
727
|
+
fullscreen: true,
|
|
709
728
|
language: 'en',
|
|
710
729
|
i18n: {...}, // according to language selection
|
|
711
730
|
uploadFormats: '.geojson,.json,.kml',
|
|
@@ -721,7 +740,7 @@ will be used to extract them.
|
|
|
721
740
|
|
|
722
741
|
##### Parameters
|
|
723
742
|
|
|
724
|
-
-
|
|
743
|
+
- `file` **File** 
|
|
725
744
|
|
|
726
745
|
Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<Feature\<Geometry>>** 
|
|
727
746
|
|
|
@@ -749,6 +768,12 @@ Show/hide the control map
|
|
|
749
768
|
|
|
750
769
|
Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)
|
|
751
770
|
|
|
771
|
+
#### fullscreen
|
|
772
|
+
|
|
773
|
+
Show/hide the fullscreen button on the map
|
|
774
|
+
|
|
775
|
+
Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)
|
|
776
|
+
|
|
752
777
|
#### modal
|
|
753
778
|
|
|
754
779
|
Modal configuration
|
|
@@ -782,9 +807,9 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
|
|
|
782
807
|
|
|
783
808
|
### LayerOptions
|
|
784
809
|
|
|
785
|
-
**Extends Omit\<[VectorLayerOptions](https://openlayers.org/en/latest/apidoc/module-ol_layer_Vector-VectorLayer.html)\<any>, 'source'>**
|
|
810
|
+
**Extends Omit\<[VectorLayerOptions](https://openlayers.org/en/latest/apidoc/module-ol_layer_Vector-VectorLayer.html)\<any, any>, 'source'>**
|
|
786
811
|
|
|
787
|
-
|
|
812
|
+
_**\[interface]**_ - Parameters to create the layers and connect to the GeoServer
|
|
788
813
|
|
|
789
814
|
You can use all the parameters supported by OpenLayers
|
|
790
815
|
|
|
@@ -807,8 +832,8 @@ Use this to insert custom properties, modify the feature, etc.
|
|
|
807
832
|
|
|
808
833
|
##### Parameters
|
|
809
834
|
|
|
810
|
-
-
|
|
811
|
-
-
|
|
835
|
+
- `feature` **Feature\<Geometry>** 
|
|
836
|
+
- `transaction` **TransactionType** 
|
|
812
837
|
|
|
813
838
|
Returns **Feature\<Geometry>** 
|
|
814
839
|
|
|
@@ -853,7 +878,7 @@ Type: function (field: [IProperty](#iproperty), value: [string](https://develope
|
|
|
853
878
|
|
|
854
879
|
### GeoserverOptions
|
|
855
880
|
|
|
856
|
-
|
|
881
|
+
_**\[interface]**_
|
|
857
882
|
|
|
858
883
|
#### url
|
|
859
884
|
|
|
@@ -893,9 +918,9 @@ Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Glob
|
|
|
893
918
|
|
|
894
919
|
### GeoServerAdvanced
|
|
895
920
|
|
|
896
|
-
|
|
921
|
+
_**\[interface]**_
|
|
897
922
|
|
|
898
|
-
-
|
|
923
|
+
- Default values:
|
|
899
924
|
|
|
900
925
|
```javascript
|
|
901
926
|
{
|
|
@@ -917,7 +942,7 @@ Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Glob
|
|
|
917
942
|
|
|
918
943
|
**Extends BaseGeoserverVendor**
|
|
919
944
|
|
|
920
|
-
|
|
945
|
+
_**\[interface]**_ - WFS geoserver options
|
|
921
946
|
<https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html>
|
|
922
947
|
|
|
923
948
|
#### strict
|
|
@@ -930,7 +955,7 @@ Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Glob
|
|
|
930
955
|
|
|
931
956
|
**Extends BaseGeoserverVendor**
|
|
932
957
|
|
|
933
|
-
|
|
958
|
+
_**\[interface]**_ - WMS geoserver options
|
|
934
959
|
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html>
|
|
935
960
|
|
|
936
961
|
#### buffer
|
|
@@ -985,7 +1010,7 @@ XML file which controls or enhances map layers and styling
|
|
|
985
1010
|
|
|
986
1011
|
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
987
1012
|
|
|
988
|
-
####
|
|
1013
|
+
#### sld\_body
|
|
989
1014
|
|
|
990
1015
|
A URL-encoded StyledLayerDescriptor XML document which controls or enhances map layers and styling
|
|
991
1016
|
|
|
@@ -993,11 +1018,11 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
|
|
|
993
1018
|
|
|
994
1019
|
### IProperty
|
|
995
1020
|
|
|
996
|
-
|
|
1021
|
+
_**\[interface]**_ - Geoserver original layer properties response on DescribeFeature request
|
|
997
1022
|
|
|
998
1023
|
### IGeoserverDescribeFeatureType
|
|
999
1024
|
|
|
1000
|
-
|
|
1025
|
+
_**\[interface]**_ - Geoserver original response on DescribeFeature request
|
|
1001
1026
|
|
|
1002
1027
|
#### \_parsed
|
|
1003
1028
|
|
|
@@ -1007,13 +1032,13 @@ Type: {namespace: [string](https://developer.mozilla.org/docs/Web/JavaScript/Ref
|
|
|
1007
1032
|
|
|
1008
1033
|
### I18n
|
|
1009
1034
|
|
|
1010
|
-
|
|
1035
|
+
_**\[interface]**_ - Custom Language specified when creating a WFST instance
|
|
1011
1036
|
|
|
1012
1037
|
#### labels
|
|
1013
1038
|
|
|
1014
1039
|
Labels section
|
|
1015
1040
|
|
|
1016
|
-
Type: {select: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, addElement: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, editElement: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, save: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, delete: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, cancel: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, apply: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, upload: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, editMode: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, confirmDelete: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, geomTypeNotSupported: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, editFields: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, editGeom: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, selectDrawType: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, uploadToLayer: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, uploadFeatures: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, validFeatures: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, invalidFeatures: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, loading: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, toggleVisibility: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, close: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?}
|
|
1041
|
+
Type: {select: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, selectBox: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, selectFreehand: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, query: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, featureInfo: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, addElement: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, editElement: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, save: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, delete: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, cancel: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, apply: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, upload: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, editMode: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, confirmDelete: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, confirmDeleteElements: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, geomTypeNotSupported: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, editFields: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, editGeom: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, continueLine: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, selectDrawType: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, uploadToLayer: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, uploadFeatures: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, validFeatures: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, invalidFeatures: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, loading: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, toggleVisibility: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, fullscreen: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, close: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, multipleValues: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, editElements: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, multipleEditNotice: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, geoserverLayers: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?}
|
|
1017
1042
|
|
|
1018
1043
|
#### errors
|
|
1019
1044
|
|
|
@@ -1023,17 +1048,8 @@ Type: {capabilities: [string](https://developer.mozilla.org/docs/Web/JavaScript/
|
|
|
1023
1048
|
|
|
1024
1049
|
## TODO
|
|
1025
1050
|
|
|
1026
|
-
-
|
|
1027
|
-
-
|
|
1028
|
-
-
|
|
1029
|
-
-
|
|
1030
|
-
-
|
|
1031
|
-
- Add customizables styles
|
|
1032
|
-
- Improve scss (add variables)
|
|
1033
|
-
- Add cookies to persist widget controller state
|
|
1034
|
-
- Geometry type _LinearRing_ support
|
|
1035
|
-
- Tests!
|
|
1036
|
-
- Improve comments and documentation
|
|
1037
|
-
- Improve interface
|
|
1038
|
-
- Change svg imports to preserve svg structure
|
|
1039
|
-
- Improve style on editing and drawing features
|
|
1051
|
+
- Add `Don't show again` option in the error modal
|
|
1052
|
+
- Add customizables styles
|
|
1053
|
+
- Improve scss (add variables)
|
|
1054
|
+
- Tests!
|
|
1055
|
+
- Improve comments and documentation
|