ol-wfst 4.0.0 → 4.0.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/README.md +221 -127
- package/dist/@types.d.ts +32 -0
- package/dist/@types.d.ts.map +1 -1
- package/dist/WfsLayer.d.ts +15 -2
- package/dist/WfsLayer.d.ts.map +1 -1
- package/dist/WmsLayer.d.ts +16 -3
- package/dist/WmsLayer.d.ts.map +1 -1
- package/dist/modules/{Modes/baseLayer.d.ts → base/BaseLayer.d.ts} +1 -1
- package/dist/modules/base/BaseLayer.d.ts.map +1 -0
- package/dist/modules/base/WfsSource.d.ts +48 -0
- package/dist/modules/base/WfsSource.d.ts.map +1 -0
- package/dist/modules/base/WmsSource.d.ts +47 -0
- package/dist/modules/base/WmsSource.d.ts.map +1 -0
- package/dist/modules/errors.d.ts.map +1 -1
- package/dist/ol-wfst.js +78 -321
- package/dist/ol-wfst.js.map +1 -1
- package/dist/ol-wfst.min.js +1 -1
- package/dist/ol-wfst.min.js.map +1 -1
- package/lib/@types.d.ts +32 -0
- package/lib/@types.d.ts.map +1 -1
- package/lib/WfsLayer.d.ts +15 -2
- package/lib/WfsLayer.d.ts.map +1 -1
- package/lib/WmsLayer.d.ts +16 -3
- package/lib/WmsLayer.d.ts.map +1 -1
- package/lib/index-es.js +74 -317
- package/lib/index-es.js.map +1 -1
- package/lib/modules/{Modes/baseLayer.d.ts → base/BaseLayer.d.ts} +1 -1
- package/lib/modules/base/BaseLayer.d.ts.map +1 -0
- package/lib/modules/base/WfsSource.d.ts +48 -0
- package/lib/modules/base/WfsSource.d.ts.map +1 -0
- package/lib/modules/base/WmsSource.d.ts +47 -0
- package/lib/modules/base/WmsSource.d.ts.map +1 -0
- package/lib/modules/errors.d.ts.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/modules/Modes/WfsSource.d.ts +0 -60
- package/dist/modules/Modes/WfsSource.d.ts.map +0 -1
- package/dist/modules/Modes/WmsSource.d.ts +0 -82
- package/dist/modules/Modes/WmsSource.d.ts.map +0 -1
- package/dist/modules/Modes/baseLayer.d.ts.map +0 -1
- package/dist/modules/Modes/baseSource.d.ts +0 -103
- package/dist/modules/Modes/baseSource.d.ts.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/lib/modules/Modes/WfsSource.d.ts +0 -60
- package/lib/modules/Modes/WfsSource.d.ts.map +0 -1
- package/lib/modules/Modes/WmsSource.d.ts +0 -82
- package/lib/modules/Modes/WmsSource.d.ts.map +0 -1
- package/lib/modules/Modes/baseLayer.d.ts.map +0 -1
- package/lib/modules/Modes/baseSource.d.ts +0 -103
- package/lib/modules/Modes/baseSource.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -48,74 +48,72 @@ const geoserver = {
|
|
|
48
48
|
headers: { Authorization: 'Basic ' + btoa(username + ':' + password) }
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
radius: 7,
|
|
64
|
-
fill: new Fill({
|
|
65
|
-
color: '#000000'
|
|
66
|
-
}),
|
|
67
|
-
stroke: new Stroke({
|
|
68
|
-
color: [255, 0, 0],
|
|
69
|
-
width: 2
|
|
70
|
-
})
|
|
71
|
-
})
|
|
51
|
+
const wfsLayer = new WfsLayer({
|
|
52
|
+
name: 'myPointsLayer', // Name of the layer on the GeoServer
|
|
53
|
+
label: 'Photos', // Optional Label to be displayed in the controller
|
|
54
|
+
geoserver: geoserver,
|
|
55
|
+
zIndex: 99,
|
|
56
|
+
|
|
57
|
+
// WfsLayers need a custom style
|
|
58
|
+
style: new Style({
|
|
59
|
+
image: new Circle({
|
|
60
|
+
radius: 7,
|
|
61
|
+
fill: new Fill({
|
|
62
|
+
color: '#000000'
|
|
72
63
|
}),
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
maxFeatures: 500
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
beforeTransactFeature: function (feature, transactionType) {
|
|
81
|
-
if (transactionType === 'insert') {
|
|
82
|
-
// Maybe add a custom value o perform an action before insert features
|
|
83
|
-
feature.set('customProperty', 'customValue', true);
|
|
84
|
-
} else if (transactionType === 'update') {
|
|
85
|
-
// ... //
|
|
86
|
-
} else if (transactionType === 'delete') {
|
|
87
|
-
// .. //
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
return feature;
|
|
91
|
-
}
|
|
92
|
-
}),
|
|
93
|
-
|
|
94
|
-
// WMS Layer
|
|
95
|
-
new WmsLayer({
|
|
96
|
-
name: 'myMultiGeometryLayer',
|
|
97
|
-
label: 'Other elements',
|
|
98
|
-
geoserver: geoserver,
|
|
99
|
-
// See [geoserverVendor](#geoservervendor) for more details.
|
|
100
|
-
geoserverVendor: {
|
|
101
|
-
cql_filter: 'id > 50',
|
|
102
|
-
buffer: 50,
|
|
103
|
-
maxFeatures: 500
|
|
104
|
-
},
|
|
105
|
-
beforeTransactFeature: function (feature, transactionType) {
|
|
106
|
-
if (transactionType === 'insert') {
|
|
107
|
-
// Maybe add a custom value o perform an action before insert features
|
|
108
|
-
feature.set('customProperty', 'customValue', true);
|
|
109
|
-
} else if (transactionType === 'update') {
|
|
110
|
-
// ... //
|
|
111
|
-
} else if (transactionType === 'delete') {
|
|
112
|
-
// .. //
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
return feature;
|
|
116
|
-
}
|
|
64
|
+
stroke: new Stroke({
|
|
65
|
+
color: [255, 0, 0],
|
|
66
|
+
width: 2
|
|
67
|
+
})
|
|
117
68
|
})
|
|
118
|
-
|
|
69
|
+
}),
|
|
70
|
+
|
|
71
|
+
// See [geoserverVendor](#geoservervendor) for more details.
|
|
72
|
+
geoserverVendor: {
|
|
73
|
+
cql_filter: 'id > 50',
|
|
74
|
+
maxFeatures: 500
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
beforeTransactFeature: function (feature, transactionType) {
|
|
78
|
+
if (transactionType === 'insert') {
|
|
79
|
+
// Maybe add a custom value o perform an action before insert features
|
|
80
|
+
feature.set('customProperty', 'customValue', true);
|
|
81
|
+
} else if (transactionType === 'update') {
|
|
82
|
+
// ... //
|
|
83
|
+
} else if (transactionType === 'delete') {
|
|
84
|
+
// .. //
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return feature;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
const wmsLayer = new WmsLayer({
|
|
92
|
+
name: 'myMultiGeometryLayer',
|
|
93
|
+
label: 'Other elements',
|
|
94
|
+
geoserver: geoserver,
|
|
95
|
+
// See [geoserverVendor](#geoservervendor) for more details.
|
|
96
|
+
geoserverVendor: {
|
|
97
|
+
cql_filter: 'id > 50',
|
|
98
|
+
buffer: 50,
|
|
99
|
+
maxFeatures: 500
|
|
100
|
+
},
|
|
101
|
+
beforeTransactFeature: function (feature, transactionType) {
|
|
102
|
+
if (transactionType === 'insert') {
|
|
103
|
+
// Maybe add a custom value o perform an action before insert features
|
|
104
|
+
feature.set('customProperty', 'customValue', true);
|
|
105
|
+
} else if (transactionType === 'update') {
|
|
106
|
+
// ... //
|
|
107
|
+
} else if (transactionType === 'delete') {
|
|
108
|
+
// .. //
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return feature;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
const wfst = new Wfst({
|
|
116
|
+
layers: [wfsLayer, wmsLayer],
|
|
119
117
|
language: 'en',
|
|
120
118
|
showUpload: true
|
|
121
119
|
});
|
|
@@ -123,6 +121,16 @@ const wfst = new Wfst({
|
|
|
123
121
|
map.addControl(wfst);
|
|
124
122
|
```
|
|
125
123
|
|
|
124
|
+
### Useful methods
|
|
125
|
+
|
|
126
|
+
See \[#wfsSource]
|
|
127
|
+
|
|
128
|
+
```js
|
|
129
|
+
|
|
130
|
+
wmsLayer.setCustomParam('cql_filter',(`id = 28`);
|
|
131
|
+
wmsLayer.setCustomParam('env', `tags=true`);
|
|
132
|
+
```
|
|
133
|
+
|
|
126
134
|
### Adding features programatically
|
|
127
135
|
|
|
128
136
|
```js
|
|
@@ -259,6 +267,16 @@ TypeScript types are shipped with the project in the dist directory and should b
|
|
|
259
267
|
|
|
260
268
|
#### Table of Contents
|
|
261
269
|
|
|
270
|
+
- [BaseGeoserverVendor](#basegeoservervendor)
|
|
271
|
+
- [key](#key)
|
|
272
|
+
- [cql_filter](#cql_filter)
|
|
273
|
+
- [sortBy](#sortby)
|
|
274
|
+
- [featureid](#featureid)
|
|
275
|
+
- [filter](#filter)
|
|
276
|
+
- [format_options](#format_options)
|
|
277
|
+
- [maxFeatures](#maxfeatures)
|
|
278
|
+
- [startIndex](#startindex)
|
|
279
|
+
- [propertyname](#propertyname)
|
|
262
280
|
- [Wfst](#wfst)
|
|
263
281
|
- [Parameters](#parameters)
|
|
264
282
|
- [getLayers](#getlayers)
|
|
@@ -296,12 +314,16 @@ TypeScript types are shipped with the project in the dist directory and should b
|
|
|
296
314
|
- [WfsLayer](#wfslayer)
|
|
297
315
|
- [Parameters](#parameters-11)
|
|
298
316
|
- [refresh](#refresh)
|
|
317
|
+
- [setCustomParam](#setcustomparam)
|
|
318
|
+
- [Parameters](#parameters-12)
|
|
299
319
|
- [WmsLayer](#wmslayer)
|
|
300
|
-
- [Parameters](#parameters-
|
|
320
|
+
- [Parameters](#parameters-13)
|
|
301
321
|
- [refresh](#refresh-1)
|
|
322
|
+
- [setCustomParam](#setcustomparam-1)
|
|
323
|
+
- [Parameters](#parameters-14)
|
|
302
324
|
- [Options](#options)
|
|
303
325
|
- [processUpload](#processupload)
|
|
304
|
-
- [Parameters](#parameters-
|
|
326
|
+
- [Parameters](#parameters-15)
|
|
305
327
|
- [layers](#layers)
|
|
306
328
|
- [active](#active)
|
|
307
329
|
- [evtType](#evttype)
|
|
@@ -313,7 +335,7 @@ TypeScript types are shipped with the project in the dist directory and should b
|
|
|
313
335
|
- [uploadFormats](#uploadformats)
|
|
314
336
|
- [LayerOptions](#layeroptions)
|
|
315
337
|
- [beforeTransactFeature](#beforetransactfeature)
|
|
316
|
-
- [Parameters](#parameters-
|
|
338
|
+
- [Parameters](#parameters-16)
|
|
317
339
|
- [name](#name)
|
|
318
340
|
- [geoserver](#geoserver-1)
|
|
319
341
|
- [label](#label)
|
|
@@ -326,27 +348,79 @@ TypeScript types are shipped with the project in the dist directory and should b
|
|
|
326
348
|
- [credentials](#credentials)
|
|
327
349
|
- [useLockFeature](#uselockfeature)
|
|
328
350
|
- [GeoServerAdvanced](#geoserveradvanced)
|
|
329
|
-
- [BaseGeoserverVendor](#basegeoservervendor)
|
|
330
|
-
- [cql_filter](#cql_filter)
|
|
331
|
-
- [sortBy](#sortby)
|
|
332
|
-
- [featureid](#featureid)
|
|
333
|
-
- [filter](#filter)
|
|
334
|
-
- [format_options](#format_options)
|
|
335
|
-
- [maxFeatures](#maxfeatures)
|
|
336
|
-
- [startIndex](#startindex)
|
|
337
|
-
- [propertyname](#propertyname)
|
|
338
351
|
- [WfsGeoserverVendor](#wfsgeoservervendor)
|
|
339
352
|
- [strict](#strict)
|
|
340
353
|
- [WmsGeoserverVendor](#wmsgeoservervendor)
|
|
341
354
|
- [buffer](#buffer)
|
|
342
355
|
- [env](#env)
|
|
343
356
|
- [clip](#clip)
|
|
357
|
+
- [styles](#styles)
|
|
358
|
+
- [transparent](#transparent)
|
|
359
|
+
- [bgcolor](#bgcolor)
|
|
360
|
+
- [time](#time)
|
|
361
|
+
- [sld](#sld)
|
|
362
|
+
- [sld_body](#sld_body)
|
|
344
363
|
- [IGeoserverDescribeFeatureType](#igeoserverdescribefeaturetype)
|
|
345
364
|
- [\_parsed](#_parsed)
|
|
346
365
|
- [I18n](#i18n-1)
|
|
347
366
|
- [labels](#labels)
|
|
348
367
|
- [errors](#errors)
|
|
349
368
|
|
|
369
|
+
### BaseGeoserverVendor
|
|
370
|
+
|
|
371
|
+
#### key
|
|
372
|
+
|
|
373
|
+
Add any other param
|
|
374
|
+
|
|
375
|
+
#### cql_filter
|
|
376
|
+
|
|
377
|
+
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#cql-filter>
|
|
378
|
+
|
|
379
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
380
|
+
|
|
381
|
+
#### sortBy
|
|
382
|
+
|
|
383
|
+
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#sortBy>
|
|
384
|
+
|
|
385
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
386
|
+
|
|
387
|
+
#### featureid
|
|
388
|
+
|
|
389
|
+
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#featureid>
|
|
390
|
+
|
|
391
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
392
|
+
|
|
393
|
+
#### filter
|
|
394
|
+
|
|
395
|
+
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#filter>
|
|
396
|
+
|
|
397
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
398
|
+
|
|
399
|
+
#### format_options
|
|
400
|
+
|
|
401
|
+
WMS: <https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#format-options>
|
|
402
|
+
WFS: <https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html#format-options>
|
|
403
|
+
|
|
404
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
405
|
+
|
|
406
|
+
#### maxFeatures
|
|
407
|
+
|
|
408
|
+
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#maxfeatures-and-startindex>
|
|
409
|
+
|
|
410
|
+
Type: ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))
|
|
411
|
+
|
|
412
|
+
#### startIndex
|
|
413
|
+
|
|
414
|
+
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#maxfeatures-and-startindex>
|
|
415
|
+
|
|
416
|
+
Type: ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))
|
|
417
|
+
|
|
418
|
+
#### propertyname
|
|
419
|
+
|
|
420
|
+
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#propertyname>
|
|
421
|
+
|
|
422
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
423
|
+
|
|
350
424
|
### Wfst
|
|
351
425
|
|
|
352
426
|
**Extends ol/control/[Control](https://openlayers.org/en/latest/apidoc/module-ol_control_Control-Control.html)~[Control](https://openlayers.org/en/latest/apidoc/module-ol_control_Control-Control.html)**
|
|
@@ -521,6 +595,22 @@ Layer to retrieve WFS features from geoservers
|
|
|
521
595
|
|
|
522
596
|
#### refresh
|
|
523
597
|
|
|
598
|
+
#### setCustomParam
|
|
599
|
+
|
|
600
|
+
Use this to update Geoserver Wms Vendors (<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html>)
|
|
601
|
+
and other arguements (<https://docs.geoserver.org/stable/en/user/services/wms/reference.html#getmap>)
|
|
602
|
+
in all the getMap requests.
|
|
603
|
+
|
|
604
|
+
Example: you can use this to change the style of the WMS, add a custom sld, set a cql_filter, etc.
|
|
605
|
+
|
|
606
|
+
##### Parameters
|
|
607
|
+
|
|
608
|
+
- `paramName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
609
|
+
- `value` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (optional, default `null`)
|
|
610
|
+
- `refresh` (optional, default `true`)
|
|
611
|
+
|
|
612
|
+
Returns **URLSearchParams** 
|
|
613
|
+
|
|
524
614
|
### WmsLayer
|
|
525
615
|
|
|
526
616
|
**Extends ol/layer/Tile~[TileLayer](https://openlayers.org/en/latest/apidoc/module-ol_layer_Tile-TileLayer.html)**
|
|
@@ -534,6 +624,22 @@ Layer to retrieve WMS information from geoservers
|
|
|
534
624
|
|
|
535
625
|
#### refresh
|
|
536
626
|
|
|
627
|
+
#### setCustomParam
|
|
628
|
+
|
|
629
|
+
Use this to update Geoserver Wfs Vendors (<https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html>)
|
|
630
|
+
and other arguements (<https://docs.geoserver.org/stable/en/user/services/wfs/reference.html>)
|
|
631
|
+
in all the getFeature requests.
|
|
632
|
+
|
|
633
|
+
Example: you can use this to set a cql_filter, limit the numbers of features, etc.
|
|
634
|
+
|
|
635
|
+
##### Parameters
|
|
636
|
+
|
|
637
|
+
- `paramName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
638
|
+
- `value` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (optional, default `null`)
|
|
639
|
+
- `refresh` (optional, default `true`)
|
|
640
|
+
|
|
641
|
+
Returns **URLSearchParams** 
|
|
642
|
+
|
|
537
643
|
### Options
|
|
538
644
|
|
|
539
645
|
**_\[interface]_** - Wfst Options specified when creating a Wfst instance
|
|
@@ -746,92 +852,81 @@ Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Glob
|
|
|
746
852
|
}
|
|
747
853
|
```
|
|
748
854
|
|
|
749
|
-
###
|
|
750
|
-
|
|
751
|
-
#### cql_filter
|
|
752
|
-
|
|
753
|
-
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#cql-filter>
|
|
754
|
-
|
|
755
|
-
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
756
|
-
|
|
757
|
-
#### sortBy
|
|
758
|
-
|
|
759
|
-
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#sortBy>
|
|
760
|
-
|
|
761
|
-
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
762
|
-
|
|
763
|
-
#### featureid
|
|
855
|
+
### WfsGeoserverVendor
|
|
764
856
|
|
|
765
|
-
|
|
857
|
+
**Extends BaseGeoserverVendor**
|
|
766
858
|
|
|
767
|
-
|
|
859
|
+
**_\[interface]_** - WFS geoserver options
|
|
860
|
+
<https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html>
|
|
768
861
|
|
|
769
|
-
####
|
|
862
|
+
#### strict
|
|
770
863
|
|
|
771
|
-
<https://docs.geoserver.org/latest/en/user/services/
|
|
864
|
+
<https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html#xml-request-validation>
|
|
772
865
|
|
|
773
|
-
Type: [
|
|
866
|
+
Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)
|
|
774
867
|
|
|
775
|
-
|
|
868
|
+
### WmsGeoserverVendor
|
|
776
869
|
|
|
777
|
-
|
|
778
|
-
WFS: <https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html#format-options>
|
|
870
|
+
**Extends BaseGeoserverVendor**
|
|
779
871
|
|
|
780
|
-
|
|
872
|
+
**_\[interface]_** - WMS geoserver options
|
|
873
|
+
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html>
|
|
781
874
|
|
|
782
|
-
####
|
|
875
|
+
#### buffer
|
|
783
876
|
|
|
784
|
-
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#
|
|
877
|
+
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#buffer>
|
|
785
878
|
|
|
786
879
|
Type: ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number))
|
|
787
880
|
|
|
788
|
-
####
|
|
881
|
+
#### env
|
|
789
882
|
|
|
790
|
-
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#
|
|
883
|
+
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#env>
|
|
791
884
|
|
|
792
|
-
Type:
|
|
885
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
793
886
|
|
|
794
|
-
####
|
|
887
|
+
#### clip
|
|
795
888
|
|
|
796
|
-
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#
|
|
889
|
+
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#clip>
|
|
797
890
|
|
|
798
891
|
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
799
892
|
|
|
800
|
-
|
|
893
|
+
#### styles
|
|
801
894
|
|
|
802
|
-
|
|
895
|
+
Styles in which layers are to be rendered.
|
|
896
|
+
Value is a comma-separated list of style names, or empty if default styling is required.
|
|
897
|
+
Style names may be empty in the list, to use default layer styling.
|
|
803
898
|
|
|
804
|
-
|
|
805
|
-
<https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html>
|
|
899
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
806
900
|
|
|
807
|
-
####
|
|
901
|
+
#### transparent
|
|
808
902
|
|
|
809
|
-
|
|
903
|
+
Whether the map background should be transparent. Values are true or false. Default is false
|
|
810
904
|
|
|
811
905
|
Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)
|
|
812
906
|
|
|
813
|
-
|
|
907
|
+
#### bgcolor
|
|
814
908
|
|
|
815
|
-
|
|
909
|
+
Background color for the map image. Value is in the form RRGGBB. Default is FFFFFF (white).
|
|
816
910
|
|
|
817
|
-
|
|
818
|
-
<https://docs.geoserver.org/latest/en/user/services/wms/vendor.html>
|
|
911
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
819
912
|
|
|
820
|
-
####
|
|
913
|
+
#### time
|
|
821
914
|
|
|
822
|
-
|
|
915
|
+
Time value or range for map data.
|
|
916
|
+
See [Time Support in GeoServer WMS](https://docs.geoserver.org/stable/en/user/services/wms/time.html#wms-time) for more information.
|
|
823
917
|
|
|
824
|
-
Type:
|
|
918
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
825
919
|
|
|
826
|
-
####
|
|
920
|
+
#### sld
|
|
827
921
|
|
|
828
|
-
|
|
922
|
+
A URL referencing a [StyledLayerDescriptor](https://docs.geoserver.org/stable/en/user/styling/index.html#styling)
|
|
923
|
+
XML file which controls or enhances map layers and styling
|
|
829
924
|
|
|
830
925
|
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
831
926
|
|
|
832
|
-
####
|
|
927
|
+
#### sld_body
|
|
833
928
|
|
|
834
|
-
|
|
929
|
+
A URL-encoded StyledLayerDescriptor XML document which controls or enhances map layers and styling
|
|
835
930
|
|
|
836
931
|
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
837
932
|
|
|
@@ -866,7 +961,6 @@ Type: {capabilities: [string](https://developer.mozilla.org/docs/Web/JavaScript/
|
|
|
866
961
|
- \~~Add support to diferent layer styles~~
|
|
867
962
|
- \~~Improve widget controller: visibility toggle~~
|
|
868
963
|
- \~~Add events~~
|
|
869
|
-
- Add WfsSource and WmsSource to Documentation
|
|
870
964
|
- Add `Don't show again` option in the error modal
|
|
871
965
|
- Allow selection of multiples features and bulk edit
|
|
872
966
|
- Add customizables styles
|
package/dist/@types.d.ts
CHANGED
|
@@ -38,6 +38,10 @@ export interface BaseGeoserverVendor {
|
|
|
38
38
|
* https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#propertyname
|
|
39
39
|
*/
|
|
40
40
|
propertyname?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Add any other param
|
|
43
|
+
*/
|
|
44
|
+
[key: string]: any;
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
43
47
|
* **_[interface]_** - WFS geoserver options
|
|
@@ -69,6 +73,34 @@ export interface WmsGeoserverVendor extends BaseGeoserverVendor {
|
|
|
69
73
|
* https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#clip
|
|
70
74
|
*/
|
|
71
75
|
clip?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Styles in which layers are to be rendered.
|
|
78
|
+
* Value is a comma-separated list of style names, or empty if default styling is required.
|
|
79
|
+
* Style names may be empty in the list, to use default layer styling.
|
|
80
|
+
*/
|
|
81
|
+
styles?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Whether the map background should be transparent. Values are true or false. Default is false
|
|
84
|
+
*/
|
|
85
|
+
transparent?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Background color for the map image. Value is in the form RRGGBB. Default is FFFFFF (white).
|
|
88
|
+
*/
|
|
89
|
+
bgcolor?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Time value or range for map data.
|
|
92
|
+
* See [Time Support in GeoServer WMS](https://docs.geoserver.org/stable/en/user/services/wms/time.html#wms-time) for more information.
|
|
93
|
+
*/
|
|
94
|
+
time?: string;
|
|
95
|
+
/**
|
|
96
|
+
* A URL referencing a [StyledLayerDescriptor](https://docs.geoserver.org/stable/en/user/styling/index.html#styling)
|
|
97
|
+
* XML file which controls or enhances map layers and styling
|
|
98
|
+
*/
|
|
99
|
+
sld?: string;
|
|
100
|
+
/**
|
|
101
|
+
* A URL-encoded StyledLayerDescriptor XML document which controls or enhances map layers and styling
|
|
102
|
+
*/
|
|
103
|
+
sld_body?: string;
|
|
72
104
|
}
|
|
73
105
|
/**
|
|
74
106
|
* **_[interface]_** - Geoserver original response on DescribeFeature request
|
package/dist/@types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"@types.d.ts","sourceRoot":"","sources":["../src/@types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MA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I,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACL"}
|
package/dist/WfsLayer.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import { LayerRenderEventTypes } from 'ol/render/EventType';
|
|
|
8
8
|
import { BaseLayerObjectEventTypes } from 'ol/layer/Base';
|
|
9
9
|
import { ObjectEvent } from 'ol/Object';
|
|
10
10
|
import RenderEvent from 'ol/render/Event';
|
|
11
|
-
import BaseLayer, { BaseLayerEventTypes } from './modules/
|
|
12
|
-
import WfsSource from './modules/
|
|
11
|
+
import BaseLayer, { BaseLayerEventTypes } from './modules/base/BaseLayer';
|
|
12
|
+
import WfsSource from './modules/base/WfsSource';
|
|
13
13
|
import { LayerOptions } from './ol-wfst';
|
|
14
14
|
import { TransactionType } from './@enums';
|
|
15
15
|
declare const WfsLayer_base: import("ts-mixer/dist/types/types").Class<any[], BaseLayer & VectorLayer<WfsSource>, typeof BaseLayer & {
|
|
@@ -35,6 +35,19 @@ export default class WfsLayer extends WfsLayer_base {
|
|
|
35
35
|
* @public
|
|
36
36
|
*/
|
|
37
37
|
refresh(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Use this to update Geoserver Wms Vendors (https://docs.geoserver.org/latest/en/user/services/wms/vendor.html)
|
|
40
|
+
* and other arguements (https://docs.geoserver.org/stable/en/user/services/wms/reference.html#getmap)
|
|
41
|
+
* in all the getMap requests.
|
|
42
|
+
*
|
|
43
|
+
* Example: you can use this to change the style of the WMS, add a custom sld, set a cql_filter, etc.
|
|
44
|
+
*
|
|
45
|
+
* @public
|
|
46
|
+
* @param paramName
|
|
47
|
+
* @param value
|
|
48
|
+
* @param refresh
|
|
49
|
+
*/
|
|
50
|
+
setCustomParam(paramName: string, value?: string, refresh?: boolean): URLSearchParams;
|
|
38
51
|
}
|
|
39
52
|
export {};
|
|
40
53
|
//# sourceMappingURL=WfsLayer.d.ts.map
|
package/dist/WfsLayer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WfsLayer.d.ts","sourceRoot":"","sources":["../src/WfsLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAI1C,OAAO,SAAS,EAAE,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"WfsLayer.d.ts","sourceRoot":"","sources":["../src/WfsLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC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GACD,WAAW,CAAC,qBAAqB,EAAE,WAAW,EAAE,SAAS,CAAC,GAC1D,mBAAmB,CACb,UAAU,GACV,mBAAmB,GACnB,yBAAyB,GACzB,eAAe,GACf,qBAAqB,EACvB,SAAS,CACZ,CAAC;IAEE,EAAE,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,GAChD,WAAW,CACP,mBAAmB,GAAG,yBAAyB,GAAG,eAAe,EACjE,WAAW,EACX,IAAI,CACP,GACD,WAAW,CAAC,qBAAqB,EAAE,WAAW,EAAE,IAAI,CAAC,GACrD,mBAAmB,CACb,UAAU,GACV,mBAAmB,GACnB,yBAAyB,GACzB,eAAe,GACf,qBAAqB,EACvB,IAAI,CACP,CAAC;gBAEM,OAAO,EAAE,YAAY;IAoDjC;;OAEG;IACH,OAAO;IAMP;;;;;;;;;;;OAWG;IACH,cAAc,CACV,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,MAAa,EACpB,OAAO,UAAO,GACf,eAAe;CAWrB"}
|
package/dist/WmsLayer.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import { LayerRenderEventTypes } from 'ol/render/EventType';
|
|
|
8
8
|
import { BaseLayerObjectEventTypes } from 'ol/layer/Base';
|
|
9
9
|
import { ObjectEvent } from 'ol/Object';
|
|
10
10
|
import RenderEvent from 'ol/render/Event';
|
|
11
|
-
import WmsSource from './modules/
|
|
12
|
-
import BaseLayer, { BaseLayerEventTypes } from './modules/
|
|
11
|
+
import WmsSource from './modules/base/WmsSource';
|
|
12
|
+
import BaseLayer, { BaseLayerEventTypes } from './modules/base/BaseLayer';
|
|
13
13
|
import { LayerOptions } from './ol-wfst';
|
|
14
14
|
import { TransactionType } from './@enums';
|
|
15
15
|
declare const WmsLayer_base: import("ts-mixer/dist/types/types").Class<any[], BaseLayer & TileLayer<WmsSource>, typeof BaseLayer & {
|
|
@@ -38,11 +38,24 @@ export default class WmsLayer extends WmsLayer_base {
|
|
|
38
38
|
* @returns
|
|
39
39
|
* @private
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
_getFeaturesByClickEvent(evt: MapBrowserEvent<UIEvent>): Promise<Feature<Geometry>[]>;
|
|
42
42
|
/**
|
|
43
43
|
* @public
|
|
44
44
|
*/
|
|
45
45
|
refresh(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Use this to update Geoserver Wfs Vendors (https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html)
|
|
48
|
+
* and other arguements (https://docs.geoserver.org/stable/en/user/services/wfs/reference.html)
|
|
49
|
+
* in all the getFeature requests.
|
|
50
|
+
*
|
|
51
|
+
* Example: you can use this to set a cql_filter, limit the numbers of features, etc.
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
* @param paramName
|
|
55
|
+
* @param value
|
|
56
|
+
* @param refresh
|
|
57
|
+
*/
|
|
58
|
+
setCustomParam(paramName: string, value?: string, refresh?: boolean): URLSearchParams;
|
|
46
59
|
}
|
|
47
60
|
export {};
|
|
48
61
|
//# sourceMappingURL=WmsLayer.d.ts.map
|
package/dist/WmsLayer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WmsLayer.d.ts","sourceRoot":"","sources":["../src/WmsLayer.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAE9C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,WAAW,E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;IACH,cAAc,CACV,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,MAAa,EACpB,OAAO,UAAO,GACf,eAAe;CAarB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Feature } from 'ol';
|
|
2
2
|
import { Geometry } from 'ol/geom';
|
|
3
3
|
import { TransactionResponse } from 'ol/format/WFS';
|
|
4
|
+
import Layer from 'ol/layer/Base';
|
|
4
5
|
import Geoserver from '../../Geoserver';
|
|
5
6
|
import { IGeoserverDescribeFeatureType } from '../../@types';
|
|
6
7
|
import { TransactionType } from '../../@enums';
|
|
7
|
-
import Layer from 'ol/layer/Base';
|
|
8
8
|
/**
|
|
9
9
|
* Base class from which all layer types are derived.
|
|
10
10
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseLayer.d.ts","sourceRoot":"","sources":["../../../src/modules/base/BaseLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,MAAM,eAAe,CAAC;AAElC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAgB,eAAe,EAAE,MAAM,cAAc,CAAC;AAI7D;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,KAAK;IACxC;;OAEG;IACH,KAAK,IAAI,IAAI;IAYb;;;;OAIG;IACG,+BAA+B,IAAI,OAAO,CAAC,IAAI,CAAC;IAqDtD;;;OAGG;IACH,eAAe,IAAI,OAAO;IAI1B;;;;;OAKG;IACG,gBAAgB,CAClB,IAAI,EAAE,eAAe,EACrB,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,OAAO,CAAC,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