ol-wfst 1.0.8 → 3.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +24 -1
  2. package/README.md +125 -48
  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 -128
  14. package/dist/css/ol-wfst.min.css +1 -1
  15. package/dist/ol-wfst.d.ts +142 -86
  16. package/dist/ol-wfst.d.ts.map +1 -0
  17. package/dist/ol-wfst.js +5327 -4595
  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 +142 -86
  31. package/lib/ol-wfst.d.ts.map +1 -0
  32. package/lib/ol-wfst.js +2123 -2200
  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} +7 -3
  38. package/lib/tsconfig.tsbuildinfo +1 -0
  39. package/package.json +70 -66
  40. package/dist/css/bootstrap-modal.min.css +0 -7
  41. package/lib/css/bootstrap-modal.min.css +0 -7
package/CHANGELOG.md CHANGED
@@ -34,4 +34,27 @@
34
34
  ## v1.0.8
35
35
  * Fixed some css
36
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
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
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@1.0.7"></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@1.0.7/dist/css/ol-wfst.min.css" />
97
- <link rel="stylesheet" href="https://unpkg.com/ol-wfst@1.0.7/dist/css/bootstrap-modal.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)
@@ -140,13 +173,15 @@ TypeScript types are shipped with the project in the dist directory and should b
140
173
  - [useLockFeature](#uselockfeature)
141
174
  - [showControl](#showcontrol)
142
175
  - [minZoom](#minzoom)
176
+ - [modal](#modal)
143
177
  - [language](#language)
178
+ - [i18n](#i18n)
144
179
  - [showUpload](#showupload)
145
180
  - [uploadFormats](#uploadformats)
146
181
  - [processUpload](#processupload)
147
- - [Parameters](#parameters-5)
182
+ - [Parameters](#parameters-4)
148
183
  - [beforeInsertFeature](#beforeinsertfeature)
149
- - [Parameters](#parameters-6)
184
+ - [Parameters](#parameters-5)
150
185
  - [LayerParams](#layerparams)
151
186
  - [name](#name)
152
187
  - [label](#label)
@@ -154,9 +189,14 @@ TypeScript types are shipped with the project in the dist directory and should b
154
189
  - [wfsStrategy](#wfsstrategy)
155
190
  - [cqlFilter](#cqlfilter)
156
191
  - [tilesBuffer](#tilesbuffer)
192
+ - [I18n](#i18n-1)
193
+ - [labels](#labels)
194
+ - [errors](#errors)
157
195
 
158
196
  ### Wfst
159
197
 
198
+ **Extends ol/control/Control~Control**
199
+
160
200
  Tiny WFST-T client to insert (drawing/uploading), modify and delete
161
201
  features on GeoServers using OpenLayers. Layers with these types
162
202
  of geometries are supported: "GeometryCollection" (in this case, you can
@@ -165,27 +205,15 @@ choose the geometry type of each element to draw), "Point", "MultiPoint",
165
205
 
166
206
  #### Parameters
167
207
 
168
- - `map` **[PluggableMap](https://openlayers.org/en/latest/apidoc/module-ol_PluggableMap-PluggableMap.html)** Instance of the created map
169
208
  - `opt_options` **[Options](#options)?** Wfst options, see [Wfst Options](#options) for more details.
170
209
 
171
- #### \_changeStateSelect
172
-
173
- Update geom Types availibles to select for this layer
174
-
175
- ##### Parameters
176
-
177
- - `layerName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
178
- - `geomDrawTypeSelected` **GeometryType** (optional, default `null`)
179
-
180
- Returns **GeometryType**
181
-
182
210
  #### activateDrawMode
183
211
 
184
212
  Activate/deactivate the draw mode
185
213
 
186
214
  ##### Parameters
187
215
 
188
- - `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))**
189
217
 
190
218
  Returns **void**
191
219
 
@@ -207,19 +235,27 @@ without checking geometry or showing modal to confirm.
207
235
  ##### Parameters
208
236
 
209
237
  - `layerName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
210
- - `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>>**
211
239
 
212
240
  Returns **void**
213
241
 
214
242
  ### Options
215
243
 
216
- **_[interface]_** - Wfst Options specified when creating a Wfst instance
244
+ **_\[interface]_** - Wfst Options specified when creating a Wfst instance
217
245
 
218
246
  Default values:
219
247
 
220
248
  ```javascript
221
249
  {
222
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
+ },
223
259
  headers: {},
224
260
  layers: null,
225
261
  evtType: 'singleclick',
@@ -227,7 +263,8 @@ Default values:
227
263
  showControl: true,
228
264
  useLockFeature: true,
229
265
  minZoom: 9,
230
- language: 'es',
266
+ language: 'en',
267
+ i18n: {...}, // according to language selection
231
268
  uploadFormats: '.geojson,.json,.kml',
232
269
  processUpload: null,
233
270
  beforeInsertFeature: null,
@@ -240,6 +277,12 @@ Url for OWS services. This endpoint will recive the WFS, WFST and WMS requests
240
277
 
241
278
  Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
242
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
+
243
286
  #### headers
244
287
 
245
288
  Url headers for GeoServer requests. You can use it to add Authorization credentials
@@ -250,7 +293,7 @@ Type: HeadersInit
250
293
 
251
294
  Layers to be loaded from the geoserver
252
295
 
253
- 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)>
254
297
 
255
298
  #### active
256
299
 
@@ -262,7 +305,7 @@ Type: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Glob
262
305
 
263
306
  The click event to allow selection of Features to be edited
264
307
 
265
- Type: (`"singleclick"` \| `"dblclick"`)
308
+ Type: (`"singleclick"` | `"dblclick"`)
266
309
 
267
310
  #### useLockFeature
268
311
 
@@ -284,11 +327,23 @@ Zoom level to hide features to prevent too much features being loaded
284
327
 
285
328
  Type: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)
286
329
 
330
+ #### modal
331
+
332
+ Modal configuration
333
+
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))?}?}
335
+
287
336
  #### language
288
337
 
289
338
  Language to be used
290
339
 
291
- Type: (`"es"` \| `"en"`)
340
+ Type: (`"es"` | `"en"`)
341
+
342
+ #### i18n
343
+
344
+ Custom translations
345
+
346
+ Type: [I18n](#i18n)
292
347
 
293
348
  #### showUpload
294
349
 
@@ -313,7 +368,7 @@ will be used to extract them.
313
368
 
314
369
  - `file` **File**
315
370
 
316
- 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>>**
317
372
 
318
373
  #### beforeInsertFeature
319
374
 
@@ -322,15 +377,15 @@ Use this to insert custom properties, modify the feature, etc.
322
377
 
323
378
  ##### Parameters
324
379
 
325
- - `feature` **Feature**
380
+ - `feature` **Feature\<Geometry>**
326
381
 
327
- Returns **Feature**
382
+ Returns **Feature\<Geometry>**
328
383
 
329
384
  ### LayerParams
330
385
 
331
- **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'>**
332
387
 
333
- **_[interface]_** - Parameters to create the layers and connect to the GeoServer
388
+ **_\[interface]_** - Parameters to create the layers and connect to the GeoServer
334
389
 
335
390
  You can use all the parameters supported by OpenLayers
336
391
 
@@ -339,7 +394,7 @@ Default values:
339
394
  ```javascript
340
395
  {
341
396
  name: null,
342
- label: (same as name),
397
+ label: null, // `name` if not provided
343
398
  mode: 'wfs',
344
399
  wfsStrategy: 'bbox',
345
400
  cqlFilter: null,
@@ -363,7 +418,7 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
363
418
 
364
419
  Mode to use in the layer
365
420
 
366
- Type: (`"wfs"` \| `"wms"`)
421
+ Type: (`"wfs"` | `"wms"`)
367
422
 
368
423
  #### wfsStrategy
369
424
 
@@ -388,13 +443,35 @@ Only works if mode is 'wms'
388
443
 
389
444
  Type: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)
390
445
 
446
+ ### I18n
447
+
448
+ **_\[interface]_** - Custom Language specified when creating a WFST instance
449
+
450
+ #### labels
451
+
452
+ Labels section
453
+
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)?}
455
+
456
+ #### errors
457
+
458
+ Errors section
459
+
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)?}
461
+
391
462
  ## TODO
392
463
 
393
- - ~~Add support to diferent layer styles~~
394
- - ~~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)
395
469
  - Add cookies to persist widget controller state
396
470
  - Geometry type _LinearRing_ support
397
471
  - Tests!
472
+ - Improve comments and documentation
473
+ - Improve interface
474
+ - Change svg imports to preserve svg structure
398
475
 
399
476
  ## License
400
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"}