ol-wfst 2.0.0 → 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.
Files changed (41) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/README.md +93 -51
  3. package/dist/@enums.d.ts +12 -0
  4. package/dist/@enums.d.ts.map +1 -0
  5. package/dist/assets/i18n/en.d.ts +3 -0
  6. package/dist/assets/i18n/en.d.ts.map +1 -0
  7. package/dist/assets/i18n/es.d.ts +3 -0
  8. package/dist/assets/i18n/es.d.ts.map +1 -0
  9. package/dist/assets/i18n/index.d.ts +3 -0
  10. package/dist/assets/i18n/index.d.ts.map +1 -0
  11. package/dist/css/ol-wfst.bootstrap5.css +863 -0
  12. package/dist/css/ol-wfst.bootstrap5.min.css +1 -0
  13. package/dist/css/ol-wfst.css +172 -130
  14. package/dist/css/ol-wfst.min.css +1 -1
  15. package/dist/ol-wfst.d.ts +118 -82
  16. package/dist/ol-wfst.d.ts.map +1 -0
  17. package/dist/ol-wfst.js +5328 -4606
  18. package/dist/ol-wfst.js.map +1 -0
  19. package/dist/ol-wfst.min.js +16 -1
  20. package/dist/ol-wfst.min.js.map +1 -0
  21. package/dist/tsconfig.tsbuildinfo +1 -0
  22. package/lib/@enums.d.ts +12 -0
  23. package/lib/@enums.d.ts.map +1 -0
  24. package/lib/assets/i18n/en.d.ts +3 -0
  25. package/lib/assets/i18n/en.d.ts.map +1 -0
  26. package/lib/assets/i18n/es.d.ts +3 -0
  27. package/lib/assets/i18n/es.d.ts.map +1 -0
  28. package/lib/assets/i18n/index.d.ts +3 -0
  29. package/lib/assets/i18n/index.d.ts.map +1 -0
  30. package/lib/ol-wfst.d.ts +118 -82
  31. package/lib/ol-wfst.d.ts.map +1 -0
  32. package/lib/ol-wfst.js +2122 -2210
  33. package/lib/ol-wfst.js.map +1 -0
  34. package/lib/style/css/ol-gisify.css +267 -0
  35. package/lib/style/css/ol-wfst.bootstrap5.css +863 -0
  36. package/lib/style/scss/-ol-wfst.bootstrap5.scss +10 -0
  37. package/lib/{css/ol-wfst.css → style/scss/ol-wfst.scss} +4 -2
  38. package/lib/tsconfig.tsbuildinfo +1 -0
  39. package/package.json +70 -66
  40. package/dist/css/bootstrap.min.css +0 -1
  41. package/lib/css/bootstrap.min.css +0 -1
package/CHANGELOG.md CHANGED
@@ -43,4 +43,15 @@
43
43
  ## v2.0.0
44
44
  * Improved css bootstrap
45
45
  * Added option "modal" to customize modals
46
- * Added option "i18n" to allow custom translations
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
package/README.md CHANGED
@@ -15,16 +15,24 @@ See [Wfst Options](#options) for more details.
15
15
  import 'Wfst' from 'ol-wfst';
16
16
  import { Fill, Stroke, Circle, Style } from 'ol/style';
17
17
 
18
- // Css
19
- import 'ol-wfst/lib/css/ol-wfst.css';
20
- import 'ol-wfst/lib/css/bootstrap-modal.min.css'; // Do not import if you already have boostrap css
18
+ // Style
19
+ import 'ol-wfst/lib/scss/ol-wfst.css';
20
+ import 'ol-wfst/lib/scss/ol-wfst.bootstrap5.css'; // Do not import if you already have boostrap css
21
21
 
22
22
  // Optional credentials
23
23
  const password = 123456;
24
24
  const username = 'username';
25
25
 
26
- const wfst = new Wfst(map, {
26
+ const wfst = new Wfst({
27
27
  geoServerUrl: 'https://mysite.com/geoserver/myworkspace/ows',
28
+ geoServerAdvanced: {
29
+ getCapabilitiesVersion: '1.3.0',
30
+ getFeatureVersion: '1.0.0',
31
+ describeFeatureTypeVersion: '1.1.0',
32
+ lockFeatureVersion: '1.1.0',
33
+ projection: 'EPSG:3857'
34
+ },
35
+ // Maybe you wanna add this on a proxy, at the backend
28
36
  headers: { Authorization: 'Basic ' + btoa(username + ':' + password) },
29
37
  layers: [
30
38
  {
@@ -64,6 +72,22 @@ const wfst = new Wfst(map, {
64
72
  return feature;
65
73
  }
66
74
  });
75
+
76
+ // Events
77
+ wfst.on(['getCapabilities', 'getFeaturesLoaded'], function (evt) {
78
+ console.log(evt.type, evt.data);
79
+ });
80
+
81
+ wfst.on(['describeFeatureType', 'getFeature'], function (evt) {
82
+ console.log(evt.type, evt.layer, evt.data);
83
+ });
84
+
85
+ wfst.on(['modifystart', 'modifyend', 'drawstart', 'drawend'], function (evt) {
86
+ console.log(evt.type, evt);
87
+ });
88
+
89
+ map.addControl(wfst);
90
+
67
91
  ```
68
92
 
69
93
  ### Some considerations
@@ -78,8 +102,6 @@ See [CHANGELOG](./CHANGELOG.md) for details of changes in each release.
78
102
 
79
103
  ## Install
80
104
 
81
- The module uses [modal-vanilla](https://github.com/KaneCohen/modal-vanilla) as a peerDependency to show alerts, forms and messages. The Browser version has been bundled with this.
82
-
83
105
  ### Browser
84
106
 
85
107
  #### JS
@@ -87,29 +109,41 @@ The module uses [modal-vanilla](https://github.com/KaneCohen/modal-vanilla) as a
87
109
  Load `ol-wfst.js` after OpenLayers. Wfst is available as `Wfst`.
88
110
 
89
111
  ```HTML
90
- <script src="https://unpkg.com/ol-wfst@2.0.0"></script>
112
+ <script src="https://unpkg.com/ol-wfst@3.0.0"></script>
91
113
  ```
92
114
 
93
115
  #### CSS
94
116
 
95
117
  ```HTML
96
- <link rel="stylesheet" href="https://unpkg.com/ol-wfst@2.0.0/dist/css/ol-wfst.min.css" />
97
- <link rel="stylesheet" href="https://unpkg.com/ol-wfst@2.0.0/dist/css/bootstrap.min.css" />
118
+ <link rel="stylesheet" href="https://unpkg.com/ol-wfst@3.0.0/dist/css/ol-wfst.min.css" />
119
+ <link rel="stylesheet" href="https://unpkg.com/ol-wfst@3.0.0/dist/css/ol-wfst.bootstrap5.min.css" />
98
120
  ```
99
121
 
100
122
  ### Parcel, Webpack, etc.
101
123
 
102
124
  NPM package: [ol-wfst](https://www.npmjs.com/package/ol-wfst).
103
125
 
104
- #### JS
105
-
106
126
  Install the package via `npm`
107
127
 
108
- npm install ol-wfst --save-dev
128
+ npm install ol-wfst
129
+
130
+ #### JS
131
+
132
+ ```js
133
+ import Wfst from 'ol-wfst';
134
+ ```
109
135
 
110
136
  #### CSS
111
137
 
112
- The CSS files can be found in `./node_modules/ol-wfst/lib`
138
+ ```js
139
+ // scss
140
+ import 'ol-wfst/dist/scss/ol-wfst.scss';
141
+ import 'ol-wfst/dist/scss/-ol-wfst.bootstrap5.scss';
142
+
143
+ // or css
144
+ import 'ol-wfst/dist/css/ol-wfst.css';
145
+ import 'ol-wfst/dist/css/ol-wfst.bootstrap5.css';
146
+ ```
113
147
 
114
148
  ##### TypeScript type definition
115
149
 
@@ -123,16 +157,15 @@ TypeScript types are shipped with the project in the dist directory and should b
123
157
 
124
158
  - [Wfst](#wfst)
125
159
  - [Parameters](#parameters)
126
- - [\_changeStateSelect](#_changestateselect)
127
- - [Parameters](#parameters-1)
128
160
  - [activateDrawMode](#activatedrawmode)
129
- - [Parameters](#parameters-2)
161
+ - [Parameters](#parameters-1)
130
162
  - [activateEditMode](#activateeditmode)
131
- - [Parameters](#parameters-3)
163
+ - [Parameters](#parameters-2)
132
164
  - [insertFeaturesTo](#insertfeaturesto)
133
- - [Parameters](#parameters-4)
165
+ - [Parameters](#parameters-3)
134
166
  - [Options](#options)
135
167
  - [geoServerUrl](#geoserverurl)
168
+ - [geoServerAdvanced](#geoserveradvanced)
136
169
  - [headers](#headers)
137
170
  - [layers](#layers)
138
171
  - [active](#active)
@@ -146,9 +179,9 @@ TypeScript types are shipped with the project in the dist directory and should b
146
179
  - [showUpload](#showupload)
147
180
  - [uploadFormats](#uploadformats)
148
181
  - [processUpload](#processupload)
149
- - [Parameters](#parameters-5)
182
+ - [Parameters](#parameters-4)
150
183
  - [beforeInsertFeature](#beforeinsertfeature)
151
- - [Parameters](#parameters-6)
184
+ - [Parameters](#parameters-5)
152
185
  - [LayerParams](#layerparams)
153
186
  - [name](#name)
154
187
  - [label](#label)
@@ -162,6 +195,8 @@ TypeScript types are shipped with the project in the dist directory and should b
162
195
 
163
196
  ### Wfst
164
197
 
198
+ **Extends ol/control/Control~Control**
199
+
165
200
  Tiny WFST-T client to insert (drawing/uploading), modify and delete
166
201
  features on GeoServers using OpenLayers. Layers with these types
167
202
  of geometries are supported: "GeometryCollection" (in this case, you can
@@ -170,27 +205,15 @@ choose the geometry type of each element to draw), "Point", "MultiPoint",
170
205
 
171
206
  #### Parameters
172
207
 
173
- - `map` **[PluggableMap](https://openlayers.org/en/latest/apidoc/module-ol_PluggableMap-PluggableMap.html)** Instance of the created map
174
208
  - `opt_options` **[Options](#options)?** Wfst options, see [Wfst Options](#options) for more details.
175
209
 
176
- #### \_changeStateSelect
177
-
178
- Update geom Types availibles to select for this layer
179
-
180
- ##### Parameters
181
-
182
- - `layerName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
183
- - `geomDrawTypeSelected` **GeometryType** (optional, default `null`)
184
-
185
- Returns **GeometryType**
186
-
187
210
  #### activateDrawMode
188
211
 
189
212
  Activate/deactivate the draw mode
190
213
 
191
214
  ##### Parameters
192
215
 
193
- - `layerName` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \| [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean))**
216
+ - `layerName` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean))**
194
217
 
195
218
  Returns **void**
196
219
 
@@ -212,19 +235,27 @@ without checking geometry or showing modal to confirm.
212
235
  ##### Parameters
213
236
 
214
237
  - `layerName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
215
- - `features` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;Feature>**
238
+ - `features` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<Feature\<Geometry>>**
216
239
 
217
240
  Returns **void**
218
241
 
219
242
  ### Options
220
243
 
221
- **_[interface]_** - Wfst Options specified when creating a Wfst instance
244
+ **_\[interface]_** - Wfst Options specified when creating a Wfst instance
222
245
 
223
246
  Default values:
224
247
 
225
248
  ```javascript
226
249
  {
227
250
  geoServerUrl: null,
251
+ geoServerAdvanced: {
252
+ getCapabilitiesVersion: '1.3.0',
253
+ getFeatureVersion: '1.0.0',
254
+ describeFeatureTypeVersion: '1.1.0',
255
+ lockFeatureVersion: '1.1.0',
256
+ wfsTransactionVersion: '1.1.0',
257
+ projection: 'EPSG:3857'
258
+ },
228
259
  headers: {},
229
260
  layers: null,
230
261
  evtType: 'singleclick',
@@ -246,6 +277,12 @@ Url for OWS services. This endpoint will recive the WFS, WFST and WMS requests
246
277
 
247
278
  Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
248
279
 
280
+ #### geoServerAdvanced
281
+
282
+ Advanced options for geoserver requests
283
+
284
+ Type: {getCapabilitiesVersion: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, getFeatureVersion: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, lockFeatureVersion: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, describeFeatureTypeVersion: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, wfsTransactionVersion: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, projection: ProjectionLike?}
285
+
249
286
  #### headers
250
287
 
251
288
  Url headers for GeoServer requests. You can use it to add Authorization credentials
@@ -256,7 +293,7 @@ Type: HeadersInit
256
293
 
257
294
  Layers to be loaded from the geoserver
258
295
 
259
- Type: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[LayerParams](#layerparams)>
296
+ Type: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[LayerParams](#layerparams)>
260
297
 
261
298
  #### active
262
299
 
@@ -268,7 +305,7 @@ Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Glob
268
305
 
269
306
  The click event to allow selection of Features to be edited
270
307
 
271
- Type: (`"singleclick"` \| `"dblclick"`)
308
+ Type: (`"singleclick"` | `"dblclick"`)
272
309
 
273
310
  #### useLockFeature
274
311
 
@@ -294,13 +331,13 @@ Type: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
294
331
 
295
332
  Modal configuration
296
333
 
297
- Type: {animateClass: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, animateInClass: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, transition: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?, backdropTransition: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?, templates: {dialog: ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \| [HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element))?, headerClose: ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \| [HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element))?}?}
334
+ Type: {animateClass: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, animateInClass: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, transition: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?, backdropTransition: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?, templates: {dialog: ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element))?, headerClose: ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element))?}?}
298
335
 
299
336
  #### language
300
337
 
301
338
  Language to be used
302
339
 
303
- Type: (`"es"` \| `"en"`)
340
+ Type: (`"es"` | `"en"`)
304
341
 
305
342
  #### i18n
306
343
 
@@ -331,7 +368,7 @@ will be used to extract them.
331
368
 
332
369
  - `file` **File**
333
370
 
334
- Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;Feature>**
371
+ Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<Feature\<Geometry>>**
335
372
 
336
373
  #### beforeInsertFeature
337
374
 
@@ -340,15 +377,15 @@ Use this to insert custom properties, modify the feature, etc.
340
377
 
341
378
  ##### Parameters
342
379
 
343
- - `feature` **Feature**
380
+ - `feature` **Feature\<Geometry>**
344
381
 
345
- Returns **Feature**
382
+ Returns **Feature\<Geometry>**
346
383
 
347
384
  ### LayerParams
348
385
 
349
- **Extends Omit&lt;[VectorLayerOptions](https://openlayers.org/en/latest/apidoc/module-ol_layer_Vector-VectorLayer.html), 'source'>**
386
+ **Extends Omit\<[VectorLayerOptions](https://openlayers.org/en/latest/apidoc/module-ol_layer_Vector-VectorLayer.html)\<any>, 'source'>**
350
387
 
351
- **_[interface]_** - Parameters to create the layers and connect to the GeoServer
388
+ **_\[interface]_** - Parameters to create the layers and connect to the GeoServer
352
389
 
353
390
  You can use all the parameters supported by OpenLayers
354
391
 
@@ -357,7 +394,7 @@ Default values:
357
394
  ```javascript
358
395
  {
359
396
  name: null,
360
- label: (same as name),
397
+ label: null, // `name` if not provided
361
398
  mode: 'wfs',
362
399
  wfsStrategy: 'bbox',
363
400
  cqlFilter: null,
@@ -381,7 +418,7 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
381
418
 
382
419
  Mode to use in the layer
383
420
 
384
- Type: (`"wfs"` \| `"wms"`)
421
+ Type: (`"wfs"` | `"wms"`)
385
422
 
386
423
  #### wfsStrategy
387
424
 
@@ -408,28 +445,33 @@ Type: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
408
445
 
409
446
  ### I18n
410
447
 
411
- **_[interface]_** - Custom Language specified when creating a WFST instance
448
+ **_\[interface]_** - Custom Language specified when creating a WFST instance
412
449
 
413
450
  #### labels
414
451
 
415
452
  Labels section
416
453
 
417
- 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)}
454
+ 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)?}
418
455
 
419
456
  #### errors
420
457
 
421
458
  Errors section
422
459
 
423
- Type: {capabilities: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), wfst: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), layer: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), noValidGeometry: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), geoserver: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), badFormat: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), badFile: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), lockFeature: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), transaction: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), getFeatures: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}
460
+ Type: {capabilities: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, wfst: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, layer: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, noValidGeometry: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, geoserver: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, badFormat: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, badFile: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, lockFeature: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, transaction: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?, getFeatures: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?}
424
461
 
425
462
  ## TODO
426
463
 
427
- - ~~Add support to diferent layer styles~~
428
- - ~~Improve widget controller: visibility toggle~~
464
+ - \~~Add support to diferent layer styles~~
465
+ - \~~Improve widget controller: visibility toggle~~
466
+ - \~~Add events~~
467
+ - Add customizables styles
468
+ - Improve scss (add variables)
429
469
  - Add cookies to persist widget controller state
430
470
  - Geometry type _LinearRing_ support
431
471
  - Tests!
432
472
  - Improve comments and documentation
473
+ - Improve interface
474
+ - Change svg imports to preserve svg structure
433
475
 
434
476
  ## License
435
477
 
@@ -0,0 +1,12 @@
1
+ export declare enum GeometryType {
2
+ Point = "Point",
3
+ LineString = "LineString",
4
+ LinearRing = "LinearRing",
5
+ Polygon = "Polygon",
6
+ MultiPoint = "MultiPoint",
7
+ MultiLineString = "MultiLineString",
8
+ MultiPolygon = "MultiPolygon",
9
+ GeometryCollection = "GeometryCollection",
10
+ Circle = "Circle"
11
+ }
12
+ //# sourceMappingURL=@enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"@enums.d.ts","sourceRoot":"","sources":["../src/@enums.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACpB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,kBAAkB,uBAAuB;IACzC,MAAM,WAAW;CACpB"}
@@ -0,0 +1,3 @@
1
+ import { I18n } from '../../ol-wfst';
2
+ export declare const en: I18n;
3
+ //# sourceMappingURL=en.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/assets/i18n/en.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,EAAE,EAAE,IAsChB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { I18n } from '../../ol-wfst';
2
+ export declare const es: I18n;
3
+ //# sourceMappingURL=es.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/assets/i18n/es.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,EAAE,EAAE,IAuChB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './es';
2
+ export * from './en';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/i18n/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC"}