ol-wfst 3.0.4 → 3.0.5

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 CHANGED
@@ -1,67 +1,71 @@
1
- # Changelog
2
-
3
- ## v1.0.0
4
- * Module created
5
-
6
- ## v1.0.1
7
- * Improved widget controller:
8
- - Changed css style
9
- - Removed select tool
10
- - Added a visibility toggler on each layer
11
-
12
- ## v1.0.2
13
- * Added support for using different modes on each layer ('wfs' or 'wms')
14
- * Default value in layer mode is now 'wfs'
15
- * Extra Layer options can be set on each layer (styles, zindex, etc)
16
- * Improved loading indicator
17
- * Fixed the bug that did not show vertices in LineStrings
18
-
19
- ## v1.0.3
20
- * Specified the CRS in 'bbox' param
21
-
22
- ## v1.0.4
23
- * DescribeFeatureType request changed to version 1.1.0
24
-
25
- ## v1.0.5
26
- * Some minor improvements in the package configuration
27
-
28
- ## v1.0.6
29
- * Fixed bug: changed parameter typeNames to typeName on DescribeFeatureType requests
30
-
31
- ## v1.0.7
32
- * Fixed readme links
33
-
34
- ## v1.0.8
35
- * Fixed some css
36
- * Fixed bug on Open Layers 5 preventing select the features: getFeatureInfoUrl vs getGetFeatureInfoUrl
37
- * Fixed bug on Open Layers 5 when creating two Select on the same map
38
-
39
- ## v1.0.9
40
- * Fixed error notification on requesting to offlines geoservers
41
- * Fixed PeerDependencies
42
-
43
- ## v2.0.0
44
- * Improved css bootstrap
45
- * Added option "modal" to customize modals
46
- * Added option "i18n" to allow custom translations
47
-
48
- ## v3.0.0
49
- * Refactored code: class extends class ol.control.Control (breaking changes)
50
- * Added geoserverAdvanced to allow customizethe geoserver requests
51
- * Changed default projection to 'EPSG:3857'
52
- * Fixed types for recent versions of ol
53
- * Updated dependencies
54
- * Moved modal-vanilla to dependencies
55
- * Added events
56
- * Added Delete button on Edit Mode
57
- * css to scss
58
-
59
- ## v3.0.1
60
- * Fixed loading msg
61
-
62
- ## v3.0.2
63
- * Added Mandarin Chinese (zh) language
64
- * Fixed some english translations
65
-
66
- ## v3.0.3
67
- * Added _credentials_ option for fetch requests
1
+ # Changelog
2
+
3
+ ## v1.0.0
4
+ * Module created
5
+
6
+ ## v1.0.1
7
+ * Improved widget controller:
8
+ - Changed css style
9
+ - Removed select tool
10
+ - Added a visibility toggler on each layer
11
+
12
+ ## v1.0.2
13
+ * Added support for using different modes on each layer ('wfs' or 'wms')
14
+ * Default value in layer mode is now 'wfs'
15
+ * Extra Layer options can be set on each layer (styles, zindex, etc)
16
+ * Improved loading indicator
17
+ * Fixed the bug that did not show vertices in LineStrings
18
+
19
+ ## v1.0.3
20
+ * Specified the CRS in 'bbox' param
21
+
22
+ ## v1.0.4
23
+ * DescribeFeatureType request changed to version 1.1.0
24
+
25
+ ## v1.0.5
26
+ * Some minor improvements in the package configuration
27
+
28
+ ## v1.0.6
29
+ * Fixed bug: changed parameter typeNames to typeName on DescribeFeatureType requests
30
+
31
+ ## v1.0.7
32
+ * Fixed readme links
33
+
34
+ ## v1.0.8
35
+ * Fixed some css
36
+ * Fixed bug on Open Layers 5 preventing select the features: getFeatureInfoUrl vs getGetFeatureInfoUrl
37
+ * Fixed bug on Open Layers 5 when creating two Select on the same map
38
+
39
+ ## v1.0.9
40
+ * Fixed error notification on requesting to offlines geoservers
41
+ * Fixed PeerDependencies
42
+
43
+ ## v2.0.0
44
+ * Improved css bootstrap
45
+ * Added option "modal" to customize modals
46
+ * Added option "i18n" to allow custom translations
47
+
48
+ ## v3.0.0
49
+ * Refactored code: class extends class ol.control.Control (breaking changes)
50
+ * Added geoserverAdvanced to allow customizethe geoserver requests
51
+ * Changed default projection to 'EPSG:3857'
52
+ * Fixed types for recent versions of ol
53
+ * Updated dependencies
54
+ * Moved modal-vanilla to dependencies
55
+ * Added events
56
+ * Added Delete button on Edit Mode
57
+ * css to scss
58
+
59
+ ## v3.0.1
60
+ * Fixed loading msg
61
+
62
+ ## v3.0.2
63
+ * Added Mandarin Chinese (zh) language
64
+ * Fixed some english translations
65
+
66
+ ## v3.0.3
67
+ * Added _credentials_ option for fetch requests
68
+
69
+ ## v3.0.5
70
+ * Added public method to get the layers
71
+ * Fix "loading" msg on init
package/README.md CHANGED
@@ -173,12 +173,14 @@ TypeScript types are shipped with the project in the dist directory and should b
173
173
 
174
174
  - [Wfst](#wfst)
175
175
  - [Parameters](#parameters)
176
- - [activateDrawMode](#activatedrawmode)
176
+ - [getLayers](#getlayers)
177
177
  - [Parameters](#parameters-1)
178
- - [activateEditMode](#activateeditmode)
178
+ - [activateDrawMode](#activatedrawmode)
179
179
  - [Parameters](#parameters-2)
180
- - [insertFeaturesTo](#insertfeaturesto)
180
+ - [activateEditMode](#activateeditmode)
181
181
  - [Parameters](#parameters-3)
182
+ - [insertFeaturesTo](#insertfeaturesto)
183
+ - [Parameters](#parameters-4)
182
184
  - [Options](#options)
183
185
  - [geoServerUrl](#geoserverurl)
184
186
  - [geoServerAdvanced](#geoserveradvanced)
@@ -196,9 +198,9 @@ TypeScript types are shipped with the project in the dist directory and should b
196
198
  - [showUpload](#showupload)
197
199
  - [uploadFormats](#uploadformats)
198
200
  - [processUpload](#processupload)
199
- - [Parameters](#parameters-4)
200
- - [beforeInsertFeature](#beforeinsertfeature)
201
201
  - [Parameters](#parameters-5)
202
+ - [beforeInsertFeature](#beforeinsertfeature)
203
+ - [Parameters](#parameters-6)
202
204
  - [LayerParams](#layerparams)
203
205
  - [name](#name)
204
206
  - [label](#label)
@@ -206,6 +208,8 @@ TypeScript types are shipped with the project in the dist directory and should b
206
208
  - [wfsStrategy](#wfsstrategy)
207
209
  - [cqlFilter](#cqlfilter)
208
210
  - [tilesBuffer](#tilesbuffer)
211
+ - [WfstLayer](#wfstlayer)
212
+ - [IWfstLayersList](#iwfstlayerslist)
209
213
  - [I18n](#i18n-1)
210
214
  - [labels](#labels)
211
215
  - [errors](#errors)
@@ -224,6 +228,17 @@ choose the geometry type of each element to draw), "Point", "MultiPoint",
224
228
 
225
229
  - `opt_options` **[Options](#options)?** Wfst options, see [Wfst Options](#options) for more details.
226
230
 
231
+ #### getLayers
232
+
233
+ Gat all the layers in the ol-wfst instance
234
+ If a name is provided, only returns that layer
235
+
236
+ ##### Parameters
237
+
238
+ - `layerName` (optional, default `''`)
239
+
240
+ Returns **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[WfstLayer](#wfstlayer)> | [WfstLayer](#wfstlayer))**
241
+
227
242
  #### activateDrawMode
228
243
 
229
244
  Activate/deactivate the draw mode
@@ -470,6 +485,16 @@ Only works if mode is 'wms'
470
485
 
471
486
  Type: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)
472
487
 
488
+ ### WfstLayer
489
+
490
+ **_\[type]_** - Supported layers
491
+
492
+ Type: (VectorLayer\<any> | TileLayer\<any>)
493
+
494
+ ### IWfstLayersList
495
+
496
+ **_\[interface]_** - Custom Language specified when creating a WFST instance
497
+
473
498
  ### I18n
474
499
 
475
500
  **_\[interface]_** - Custom Language specified when creating a WFST instance