ol-wfst 4.1.0 → 4.2.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 (99) hide show
  1. package/README.md +801 -794
  2. package/dist/css/ol-wfst.bootstrap5.css +212 -23
  3. package/dist/css/ol-wfst.bootstrap5.min.css +1 -1
  4. package/dist/ol-wfst.js +3468 -2595
  5. package/dist/ol-wfst.js.map +1 -1
  6. package/dist/ol-wfst.min.js +6 -1
  7. package/dist/ol-wfst.min.js.map +1 -1
  8. package/dist/tsconfig.tsbuildinfo +1 -0
  9. package/lib/@enums.d.ts +16 -16
  10. package/lib/@types.d.ts +200 -200
  11. package/lib/Geoserver.d.ts +274 -267
  12. package/lib/Geoserver.d.ts.map +1 -1
  13. package/lib/WfsLayer.d.ts +52 -52
  14. package/lib/WfsLayer.d.ts.map +1 -1
  15. package/lib/WmsLayer.d.ts +68 -61
  16. package/lib/WmsLayer.d.ts.map +1 -1
  17. package/lib/defaults.d.ts +3 -3
  18. package/lib/index-umd.d.ts +3 -0
  19. package/lib/index-umd.d.ts.map +1 -0
  20. package/lib/modules/EditControlChanges.d.ts +17 -17
  21. package/lib/modules/EditFieldsModal.d.ts +18 -18
  22. package/lib/modules/EditOverlay.d.ts +7 -7
  23. package/lib/modules/LayersControl.d.ts +33 -33
  24. package/lib/modules/Uploads.d.ts +49 -49
  25. package/lib/modules/base/BaseLayer.d.ts +61 -61
  26. package/lib/modules/base/WfsSource.d.ts +47 -47
  27. package/lib/modules/base/WmsSource.d.ts +46 -46
  28. package/lib/modules/editLayer.d.ts +3 -3
  29. package/lib/modules/errors.d.ts +11 -11
  30. package/lib/modules/helpers.d.ts +6 -6
  31. package/lib/modules/i18n/en.d.ts +2 -2
  32. package/lib/modules/i18n/es.d.ts +2 -2
  33. package/lib/modules/i18n/index.d.ts +14 -14
  34. package/lib/modules/i18n/zh.d.ts +2 -2
  35. package/lib/modules/loading.d.ts +2 -2
  36. package/lib/modules/state.d.ts +21 -21
  37. package/lib/modules/styleFunction.d.ts +12 -12
  38. package/lib/myPragma.d.ts +1 -1
  39. package/lib/ol-wfst.d.ts +336 -336
  40. package/lib/ol-wfst.d.ts.map +1 -1
  41. package/lib/ol-wfst.js +2642 -2560
  42. package/lib/ol-wfst.js.map +1 -1
  43. package/lib/style/css/ol-wfst.bootstrap5.css +212 -23
  44. package/lib/style/scss/-ol-wfst.bootstrap5.scss +3 -0
  45. package/lib/style/scss/ol-wfst.scss +1 -0
  46. package/lib/tsconfig.tsbuildinfo +1 -0
  47. package/package.json +13 -12
  48. package/dist/@enums.d.ts +0 -17
  49. package/dist/@enums.d.ts.map +0 -1
  50. package/dist/@types.d.ts +0 -201
  51. package/dist/@types.d.ts.map +0 -1
  52. package/dist/Geoserver.d.ts +0 -268
  53. package/dist/Geoserver.d.ts.map +0 -1
  54. package/dist/WfsLayer.d.ts +0 -53
  55. package/dist/WfsLayer.d.ts.map +0 -1
  56. package/dist/WmsLayer.d.ts +0 -62
  57. package/dist/WmsLayer.d.ts.map +0 -1
  58. package/dist/defaults.d.ts +0 -4
  59. package/dist/defaults.d.ts.map +0 -1
  60. package/dist/modules/EditControlChanges.d.ts +0 -18
  61. package/dist/modules/EditControlChanges.d.ts.map +0 -1
  62. package/dist/modules/EditFieldsModal.d.ts +0 -19
  63. package/dist/modules/EditFieldsModal.d.ts.map +0 -1
  64. package/dist/modules/EditOverlay.d.ts +0 -8
  65. package/dist/modules/EditOverlay.d.ts.map +0 -1
  66. package/dist/modules/LayersControl.d.ts +0 -34
  67. package/dist/modules/LayersControl.d.ts.map +0 -1
  68. package/dist/modules/Uploads.d.ts +0 -50
  69. package/dist/modules/Uploads.d.ts.map +0 -1
  70. package/dist/modules/base/BaseLayer.d.ts +0 -62
  71. package/dist/modules/base/BaseLayer.d.ts.map +0 -1
  72. package/dist/modules/base/WfsSource.d.ts +0 -48
  73. package/dist/modules/base/WfsSource.d.ts.map +0 -1
  74. package/dist/modules/base/WmsSource.d.ts +0 -47
  75. package/dist/modules/base/WmsSource.d.ts.map +0 -1
  76. package/dist/modules/editLayer.d.ts +0 -4
  77. package/dist/modules/editLayer.d.ts.map +0 -1
  78. package/dist/modules/errors.d.ts +0 -12
  79. package/dist/modules/errors.d.ts.map +0 -1
  80. package/dist/modules/helpers.d.ts +0 -7
  81. package/dist/modules/helpers.d.ts.map +0 -1
  82. package/dist/modules/i18n/en.d.ts +0 -3
  83. package/dist/modules/i18n/en.d.ts.map +0 -1
  84. package/dist/modules/i18n/es.d.ts +0 -3
  85. package/dist/modules/i18n/es.d.ts.map +0 -1
  86. package/dist/modules/i18n/index.d.ts +0 -15
  87. package/dist/modules/i18n/index.d.ts.map +0 -1
  88. package/dist/modules/i18n/zh.d.ts +0 -3
  89. package/dist/modules/i18n/zh.d.ts.map +0 -1
  90. package/dist/modules/loading.d.ts +0 -3
  91. package/dist/modules/loading.d.ts.map +0 -1
  92. package/dist/modules/state.d.ts +0 -22
  93. package/dist/modules/state.d.ts.map +0 -1
  94. package/dist/modules/styleFunction.d.ts +0 -13
  95. package/dist/modules/styleFunction.d.ts.map +0 -1
  96. package/dist/myPragma.d.ts +0 -2
  97. package/dist/myPragma.d.ts.map +0 -1
  98. package/dist/ol-wfst.d.ts +0 -337
  99. package/dist/ol-wfst.d.ts.map +0 -1
package/dist/@types.d.ts DELETED
@@ -1,201 +0,0 @@
1
- import { GeometryType } from './@enums';
2
- import WfsLayer from './WfsLayer';
3
- import WmsLayer from './WmsLayer';
4
- /**
5
- * @public
6
- */
7
- export interface BaseGeoserverVendor {
8
- /**
9
- * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#cql-filter
10
- */
11
- cql_filter?: string;
12
- /**
13
- * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#sortBy
14
- */
15
- sortBy?: string;
16
- /**
17
- * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#featureid
18
- */
19
- featureid?: string;
20
- /**
21
- * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#filter
22
- */
23
- filter?: string;
24
- /**
25
- * WMS: https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#format-options
26
- * WFS: https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html#format-options
27
- */
28
- format_options?: string;
29
- /**
30
- * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#maxfeatures-and-startindex
31
- */
32
- maxFeatures?: string | number;
33
- /**
34
- * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#maxfeatures-and-startindex
35
- */
36
- startIndex?: string | number;
37
- /**
38
- * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#propertyname
39
- */
40
- propertyname?: string;
41
- /**
42
- * Add any other param
43
- */
44
- [key: string]: any;
45
- }
46
- /**
47
- * **_[interface]_** - WFS geoserver options
48
- * https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html
49
- * @public
50
- *
51
- */
52
- export interface WfsGeoserverVendor extends BaseGeoserverVendor {
53
- /**
54
- * https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html#xml-request-validation
55
- */
56
- strict?: boolean;
57
- }
58
- /**
59
- * **_[interface]_** - WMS geoserver options
60
- * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html
61
- * @public
62
- */
63
- export interface WmsGeoserverVendor extends BaseGeoserverVendor {
64
- /**
65
- * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#buffer
66
- */
67
- buffer?: string | number;
68
- /**
69
- * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#env
70
- */
71
- env?: string;
72
- /**
73
- * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#clip
74
- */
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;
104
- }
105
- export interface ExceptionGeoserver {
106
- code: string;
107
- locator: string;
108
- text: string;
109
- }
110
- /**
111
- * **_[interface]_** - Geoserver original response on DescribeFeature request
112
- * @public
113
- */
114
- export interface IGeoserverDescribeFeatureType {
115
- exceptions?: ExceptionGeoserver[];
116
- elementFormDefault: string;
117
- targetNamespace: string;
118
- targetPrefix: string;
119
- featureTypes: Array<{
120
- typeName: string;
121
- properties: Array<{
122
- name: string;
123
- nillable: boolean;
124
- maxOccurs: number;
125
- minOccurs: number;
126
- type: string;
127
- localType: string;
128
- }>;
129
- }>;
130
- /**
131
- * DescribeFeature request parsed
132
- */
133
- _parsed: {
134
- namespace: string;
135
- properties: any;
136
- geomType: GeometryType;
137
- geomField: string;
138
- };
139
- }
140
- /**
141
- * **_[interface]_**
142
- * @private
143
- */
144
- export interface IWfstLayersList {
145
- [key: string]: WfsLayer | WmsLayer;
146
- }
147
- /**
148
- * **_[interface]_**
149
- * @private
150
- */
151
- export interface IGeoserverOptions {
152
- hasTransaction?: boolean;
153
- hasLockFeature?: boolean;
154
- useLockFeature?: boolean;
155
- }
156
- /**
157
- * **_[interface]_** - Custom Language specified when creating a WFST instance
158
- * @public
159
- */
160
- export interface I18n {
161
- /** Labels section */
162
- labels?: {
163
- select?: string;
164
- addElement?: string;
165
- editElement?: string;
166
- save?: string;
167
- delete?: string;
168
- cancel?: string;
169
- apply?: string;
170
- upload?: string;
171
- editMode?: string;
172
- confirmDelete?: string;
173
- geomTypeNotSupported?: string;
174
- editFields?: string;
175
- editGeom?: string;
176
- selectDrawType?: string;
177
- uploadToLayer?: string;
178
- uploadFeatures?: string;
179
- validFeatures?: string;
180
- invalidFeatures?: string;
181
- loading?: string;
182
- toggleVisibility?: string;
183
- close?: string;
184
- };
185
- /** Errors section */
186
- errors?: {
187
- capabilities?: string;
188
- wfst?: string;
189
- layer?: string;
190
- layerNotFound?: string;
191
- layerNotVisible?: string;
192
- noValidGeometry?: string;
193
- geoserver?: string;
194
- badFormat?: string;
195
- badFile?: string;
196
- lockFeature?: string;
197
- transaction?: string;
198
- getFeatures?: string;
199
- };
200
- }
201
- //# sourceMappingURL=@types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"@types.d.ts","sourceRoot":"","sources":["../src/@types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE9B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE7B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC3D;;OAEG;IACH,MAAM,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AE;QACL,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,IAAI,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"}
@@ -1,268 +0,0 @@
1
- import BaseObject, { ObjectEvent } from 'ol/Object.js';
2
- import { Types as ObjectEventTypes } from 'ol/ObjectEventType.js';
3
- import { ProjectionLike } from 'ol/proj.js';
4
- import Circle from 'ol/geom/Circle.js';
5
- import Geometry from 'ol/geom/Geometry.js';
6
- import GeometryCollection from 'ol/geom/GeometryCollection.js';
7
- import Feature from 'ol/Feature.js';
8
- import GeoJSON from 'ol/format/GeoJSON.js';
9
- import KML from 'ol/format/KML.js';
10
- import WFS from 'ol/format/WFS.js';
11
- import { State } from 'ol/source/Source.js';
12
- import BaseEvent from 'ol/events/Event.js';
13
- import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable.js';
14
- import { EventsKey } from 'ol/events.js';
15
- import { TransactionResponse } from 'ol/format/WFS.js';
16
- import { TransactionType } from './@enums';
17
- /**
18
- * @fires change:capabilities
19
- * @extends {ol/Object~BaseObject}
20
- * @param options
21
- */
22
- export default class Geoserver extends BaseObject {
23
- protected _options: GeoserverOptions;
24
- protected _countRequests: number;
25
- protected _insertFeatures: Array<Feature<Geometry>>;
26
- protected _updateFeatures: Array<Feature<Geometry>>;
27
- protected _deleteFeatures: Array<Feature<Geometry>>;
28
- protected _formatWFS: WFS;
29
- protected _formatGeoJSON: GeoJSON;
30
- protected _formatKml: KML;
31
- protected _xs: XMLSerializer;
32
- protected state_: State;
33
- on: OnSignature<EventTypes, BaseEvent, EventsKey> & OnSignature<GeoserverEventTypes | ObjectEventTypes, ObjectEvent, EventsKey> & CombinedOnSignature<GeoserverEventTypes | ObjectEventTypes | EventTypes, EventsKey>;
34
- once: OnSignature<EventTypes, BaseEvent, EventsKey> & OnSignature<GeoserverEventTypes | ObjectEventTypes, ObjectEvent, EventsKey> & CombinedOnSignature<GeoserverEventTypes | ObjectEventTypes | EventTypes, EventsKey>;
35
- un: OnSignature<EventTypes, BaseEvent, void> & OnSignature<GeoserverEventTypes | ObjectEventTypes, ObjectEvent, void> & CombinedOnSignature<GeoserverEventTypes | ObjectEventTypes | EventTypes, void>;
36
- constructor(options: GeoserverOptions);
37
- /**
38
- *
39
- * @returns
40
- * @public
41
- */
42
- getCapabilities(): XMLDocument;
43
- /**
44
- *
45
- * @param url
46
- * @param opt_silent
47
- * @public
48
- */
49
- setUrl(url: string, opt_silent?: boolean): void;
50
- /**
51
- *
52
- * @returns
53
- */
54
- getUrl(): string;
55
- /**
56
- *
57
- * @param headers
58
- * @param opt_silent
59
- * @returns
60
- * @public
61
- */
62
- setHeaders(headers?: HeadersInit, opt_silent?: boolean): void;
63
- /**
64
- *
65
- * @returns
66
- * @public
67
- */
68
- getHeaders(): HeadersInit;
69
- /**
70
- *
71
- * @param credentials
72
- * @param opt_silent
73
- * @public
74
- */
75
- setCredentials(credentials?: RequestCredentials, opt_silent?: boolean): void;
76
- /**
77
- *
78
- * @returns
79
- * @public
80
- */
81
- getCredentials(): RequestCredentials;
82
- /**
83
- *
84
- * @returns
85
- * @public
86
- */
87
- setAdvanced(advanced?: GeoServerAdvanced, opt_silent?: boolean): void;
88
- /**
89
- *
90
- * @returns
91
- * @public
92
- */
93
- getAdvanced(): GeoServerAdvanced;
94
- /**
95
- *
96
- * @returns
97
- * @public
98
- */
99
- hasTransaction(): boolean;
100
- /**
101
- *
102
- * @returns
103
- * @public
104
- */
105
- hasLockFeature(): boolean;
106
- /**
107
- *
108
- * @returns
109
- * @public
110
- */
111
- getUseLockFeature(): boolean;
112
- /**
113
- *
114
- * @returns
115
- * @public
116
- */
117
- setUseLockFeature(useLockFeature: boolean, opt_silent?: boolean): void;
118
- /**
119
- *
120
- * @returns
121
- * @public
122
- */
123
- isLoaded(): boolean;
124
- /**
125
- *
126
- * @returns
127
- */
128
- getState(): State;
129
- /**
130
- * Get the capabilities from the GeoServer and check
131
- * all the available operations.
132
- *
133
- * @fires getcapabilities
134
- * @public
135
- */
136
- getAndUpdateCapabilities(): Promise<XMLDocument>;
137
- /**
138
- *
139
- * @private
140
- */
141
- _checkGeoserverCapabilities(): void;
142
- /**
143
- * Make the WFS Transactions
144
- *
145
- * @param transactionType
146
- * @param features
147
- * @param layerName
148
- * @private
149
- */
150
- transact(transactionType: TransactionType, features: Array<Feature<Geometry>> | Feature<Geometry>, layerName: string): Promise<TransactionResponse | false>;
151
- /**
152
- * @privatwe
153
- */
154
- _removeFeatures(features: Feature<Geometry>[]): void;
155
- /**
156
- *
157
- * @param feature
158
- * @param geom
159
- * @private
160
- */
161
- _transformCircleToPolygon(feature: Feature<Geometry>, geom: Circle): void;
162
- /**
163
- *
164
- * @param feature
165
- * @private
166
- * @param geom
167
- */
168
- _transformGeoemtryCollectionToGeometries(feature: Feature<Geometry>, geom: GeometryCollection): void;
169
- /**
170
- *
171
- * @param feature
172
- * @returns
173
- * @private
174
- */
175
- _cloneFeature(feature: Feature<Geometry>): Feature<Geometry>;
176
- /**
177
- * Lock a feature in the geoserver. Useful before editing a geometry,
178
- * to avoid changes from multiples suers
179
- *
180
- * @param featureId
181
- * @param layerName
182
- * @param retry
183
- * @public
184
- */
185
- lockFeature(featureId: string | number, layerName: string, retry?: number): Promise<string>;
186
- }
187
- /**
188
- * **_[interface]_**
189
- * @public
190
- */
191
- export interface GeoserverOptions {
192
- /**
193
- * Url for OWS services. This endpoint will recive the WFS, WFST and WMS requests
194
- *
195
- */
196
- url: string;
197
- /**
198
- * Advanced options for geoserver requests
199
- *
200
- */
201
- advanced?: GeoServerAdvanced;
202
- /**
203
- * Http headers for GeoServer requests
204
- * https://developer.mozilla.org/en-US/docs/Web/API/Request/headers
205
- *
206
- */
207
- headers?: HeadersInit;
208
- /**
209
- * Credentials for fetch requests
210
- * https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials
211
- *
212
- * Default is 'same-origin'
213
- */
214
- credentials?: RequestCredentials;
215
- /**
216
- * Use LockFeatue request on GeoServer when selecting features. Prevents a feature from being edited
217
- * through a persistent feature lock. This is not always supportedd by the GeoServer.
218
- * See https://docs.geoserver.org/stable/en/user/services/wfs/reference.html
219
- */
220
- useLockFeature?: boolean;
221
- }
222
- /**
223
- * **_[interface]_**
224
- *
225
- * * Default values:
226
- * ```javascript
227
- * {
228
- * getCapabilitiesVersion: '1.3.0',
229
- * getFeatureVersion: '1.0.0',
230
- * describeFeatureTypeVersion: '1.1.0',
231
- * lockFeatureVersion: '1.1.0',
232
- * wfsTransactionVersion: '1.1.0',
233
- * projection: 'EPSG:3857',
234
- * lockFeatureParams: {
235
- * expiry: 5,
236
- * lockId: 'Geoserver',
237
- * releaseAction: 'SOME'
238
- * }
239
- * }
240
- * @public
241
- */
242
- export interface GeoServerAdvanced {
243
- getCapabilitiesVersion?: string;
244
- getFeatureVersion?: string;
245
- lockFeatureVersion?: string;
246
- describeFeatureTypeVersion?: string;
247
- wfsTransactionVersion?: string;
248
- projection?: ProjectionLike;
249
- lockFeatureParams?: {
250
- expiry?: number | string;
251
- lockId?: string;
252
- releaseAction?: string;
253
- };
254
- }
255
- export declare enum GeoserverProperty {
256
- CAPABILITIES = "capabilities",
257
- URL = "url",
258
- HEADERS = "headers",
259
- CREDENTIALS = "credentials",
260
- ADVANCED = "advanced",
261
- HASTRASNACTION = "hasTransaction",
262
- HASLOCKFEATURE = "hasLockFeature",
263
- HASDESCRIBEFEATURETYPE = "hasDescribeFeatureType",
264
- USELOCKFEATURE = "useLockFeature",
265
- ISLOADED = "isLoaded"
266
- }
267
- export type GeoserverEventTypes = `change:${GeoserverProperty.CAPABILITIES}` | `change:${GeoserverProperty.URL}` | `change:${GeoserverProperty.HEADERS}` | `change:${GeoserverProperty.CREDENTIALS}` | `change:${GeoserverProperty.ADVANCED}` | `change:${GeoserverProperty.HASTRASNACTION}` | `change:${GeoserverProperty.HASLOCKFEATURE}` | `change:${GeoserverProperty.HASDESCRIBEFEATURETYPE}` | `change:${GeoserverProperty.USELOCKFEATURE}` | `change:${GeoserverProperty.ISLOADED}`;
268
- //# sourceMappingURL=Geoserver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Geoserver.d.ts","sourceRoot":"","sources":["../src/Geoserver.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,EAAE,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,kBAAkB,MAAM,+BAA+B,CAAC;AAC/D,OAAO,OAAO,MAAM,eAAe,CAAC;AAEpC,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,OAAO,GAAG,MAAM,kBAAkB,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAYvD,OAAO,EAAgB,eAAe,E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CAAC;KAC1B,CAAC;CACL;AAED,oBAAY,iBAAiB;IACzB,YAAY,iBAAiB;IAC7B,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,sBAAsB,2BAA2B;IACjD,cAAc,mBAAmB;IACjC,QAAQ,aAAa;CACxB;AAED,MAAM,MAAM,mBAAmB,GACzB,UAAU,iBAAiB,CAAC,YAAY,EAAE,GAC1C,UAAU,iBAAiB,CAAC,GAAG,EAAE,GACjC,UAAU,iBAAiB,CAAC,OAAO,EAAE,GACrC,UAAU,iBAAiB,CAAC,WAAW,EAAE,GACzC,UAAU,iBAAiB,CAAC,QAAQ,EAAE,GACtC,UAAU,iBAAiB,CAAC,cAAc,EAAE,GAC5C,UAAU,iBAAiB,CAAC,cAAc,EAAE,GAC5C,UAAU,iBAAiB,CAAC,sBAAsB,EAAE,GACpD,UAAU,iBAAiB,CAAC,cAAc,EAAE,GAC5C,UAAU,iBAAiB,CAAC,QAAQ,EAAE,CAAC"}
@@ -1,53 +0,0 @@
1
- import Feature from 'ol/Feature.js';
2
- import Geometry from 'ol/geom/Geometry.js';
3
- import VectorLayer from 'ol/layer/Vector.js';
4
- import BaseEvent from 'ol/events/Event.js';
5
- import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable.js';
6
- import { EventsKey } from 'ol/events.js';
7
- import { LayerRenderEventTypes } from 'ol/render/EventType.js';
8
- import { BaseLayerObjectEventTypes } from 'ol/layer/Base.js';
9
- import { ObjectEvent } from 'ol/Object.js';
10
- import RenderEvent from 'ol/render/Event.js';
11
- import BaseLayer, { BaseLayerEventTypes } from './modules/base/BaseLayer';
12
- import WfsSource from './modules/base/WfsSource';
13
- import { LayerOptions } from './ol-wfst';
14
- import { TransactionType } from './@enums';
15
- declare const WfsLayer_base: import("ts-mixer/dist/types/types").Class<any[], BaseLayer & VectorLayer<WfsSource>, typeof BaseLayer & {
16
- new (options?: import("ol/layer/BaseVector").Options<WfsSource>): VectorLayer<WfsSource>;
17
- }, false>;
18
- /**
19
- * Layer to retrieve WFS features from geoservers
20
- * https://docs.geoserver.org/stable/en/user/services/wfs/reference.html
21
- *
22
- * @fires layerRendered
23
- * @extends {ol/layer/Vector~VectorLayer}
24
- * @param options
25
- */
26
- export default class WfsLayer extends WfsLayer_base {
27
- private _loadingCount;
28
- private _loadedCount;
29
- beforeTransactFeature: (feature: Feature<Geometry>, transaction: TransactionType) => Feature<Geometry>;
30
- on: OnSignature<EventTypes, BaseEvent, EventsKey> & OnSignature<BaseLayerEventTypes | BaseLayerObjectEventTypes | 'change:source' | 'sourceready', ObjectEvent, EventsKey> & OnSignature<LayerRenderEventTypes, RenderEvent, EventsKey> & CombinedOnSignature<EventTypes | BaseLayerEventTypes | BaseLayerObjectEventTypes | 'change:source' | 'sourceready' | LayerRenderEventTypes, EventsKey>;
31
- once: OnSignature<EventTypes, BaseEvent, EventsKey> & OnSignature<BaseLayerEventTypes | BaseLayerObjectEventTypes | 'change:source' | 'sourceready', ObjectEvent, EventsKey> & OnSignature<LayerRenderEventTypes, RenderEvent, EventsKey> & CombinedOnSignature<EventTypes | BaseLayerEventTypes | BaseLayerObjectEventTypes | 'change:source' | 'sourceready' | LayerRenderEventTypes, EventsKey>;
32
- un: OnSignature<EventTypes, BaseEvent, void> & OnSignature<BaseLayerEventTypes | BaseLayerObjectEventTypes | 'change:source' | 'sourceready', ObjectEvent, void> & OnSignature<LayerRenderEventTypes, RenderEvent, void> & CombinedOnSignature<EventTypes | BaseLayerEventTypes | BaseLayerObjectEventTypes | 'change:source' | 'sourceready' | LayerRenderEventTypes, void>;
33
- constructor(options: LayerOptions);
34
- /**
35
- * @public
36
- */
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 Use `undefined` or `null` to remove the param
48
- * @param refresh
49
- */
50
- setCustomParam(paramName: string, value?: string, refresh?: boolean): URLSearchParams;
51
- }
52
- export {};
53
- //# sourceMappingURL=WfsLayer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WfsLayer.d.ts","sourceRoot":"","sources":["../src/WfsLayer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAI7C,OAAO,SAAS,EAAE,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;;;;AAG3C;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,aAAwC;IAC1E,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,YAAY,CAAK;IAElB,qBAAqB,EAAE,CAC1B,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,WAAW,EAAE,eAAe,K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Event.js';
2
- import TileLayer from 'ol/layer/Tile.js';
3
- import Geometry from 'ol/geom/Geometry.js';
4
- import Feature from 'ol/Feature.js';
5
- import BaseEvent from 'ol/events/Event.js';
6
- import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable.js';
7
- import { EventsKey } from 'ol/events.js';
8
- import { LayerRenderEventTypes } from 'ol/render/EventType.js';
9
- import { BaseLayerObjectEventTypes } from 'ol/layer/Base.js';
10
- import { ObjectEvent } from 'ol/Object.js';
11
- import RenderEvent from 'ol/render/Event.js';
12
- import WmsSource from './modules/base/WmsSource';
13
- import BaseLayer, { BaseLayerEventTypes } from './modules/base/BaseLayer';
14
- import { LayerOptions } from './ol-wfst';
15
- import { TransactionType } from './@enums';
16
- declare const WmsLayer_base: import("ts-mixer/dist/types/types").Class<any[], BaseLayer & TileLayer<WmsSource>, typeof BaseLayer & {
17
- new (options?: import("ol/layer/BaseTile").Options<WmsSource>): TileLayer<WmsSource>;
18
- }, false>;
19
- /**
20
- * Layer to retrieve WMS information from geoservers
21
- * https://docs.geoserver.org/stable/en/user/services/wms/reference.html
22
- *
23
- * @fires layerRendered
24
- * @extends {ol/layer/Tile~TileLayer}
25
- * @param options
26
- */
27
- export default class WmsLayer extends WmsLayer_base {
28
- private _loadingCount;
29
- private _loadedCount;
30
- beforeTransactFeature: (feature: Feature<Geometry>, transaction: TransactionType) => Feature<Geometry>;
31
- private _formatGeoJSON;
32
- on: OnSignature<EventTypes, BaseEvent, EventsKey> & OnSignature<BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError', ObjectEvent, EventsKey> & OnSignature<LayerRenderEventTypes, RenderEvent, EventsKey> & CombinedOnSignature<EventTypes | BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError' | LayerRenderEventTypes, EventsKey>;
33
- once: OnSignature<EventTypes, BaseEvent, EventsKey> & OnSignature<BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError', ObjectEvent, EventsKey> & OnSignature<LayerRenderEventTypes, RenderEvent, EventsKey> & CombinedOnSignature<EventTypes | BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError' | LayerRenderEventTypes, EventsKey>;
34
- un: OnSignature<EventTypes, BaseEvent, void> & OnSignature<BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError', ObjectEvent, void> & OnSignature<LayerRenderEventTypes, RenderEvent, void> & CombinedOnSignature<EventTypes | BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError' | LayerRenderEventTypes, void>;
35
- constructor(options: LayerOptions);
36
- /**
37
- * Get the features on the click area
38
- * @param evt
39
- * @returns
40
- * @private
41
- */
42
- _getFeaturesByClickEvent(evt: MapBrowserEvent<UIEvent>): Promise<Feature<Geometry>[]>;
43
- /**
44
- * @public
45
- */
46
- refresh(): void;
47
- /**
48
- * Use this to update Geoserver Wfs Vendors (https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html)
49
- * and other arguements (https://docs.geoserver.org/stable/en/user/services/wfs/reference.html)
50
- * in all the getFeature requests.
51
- *
52
- * Example: you can use this to set a cql_filter, limit the numbers of features, etc.
53
- *
54
- * @public
55
- * @param paramName
56
- * @param value
57
- * @param refresh
58
- */
59
- setCustomParam(paramName: string, value?: string, refresh?: boolean): URLSearchParams;
60
- }
61
- export {};
62
- //# sourceMappingURL=WmsLayer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WmsLayer.d.ts","sourceRoot":"","sources":["../src/WmsLayer.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAA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a,GACb,eAAe,GACf,gBAAgB,GAChB,+BAA+B,GAC/B,qBAAqB,EACvB,SAAS,CACZ,CAAC;IACE,IAAI,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,GACvD,WAAW,CACL,mBAAmB,GACnB,yBAAyB,GACzB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,+BAA+B,EACjC,WAAW,EACX,SAAS,CACZ,GACD,WAAW,CAAC,qBAAqB,EAAE,WAAW,EAAE,SAAS,CAAC,GAC1D,mBAAmB,CACb,UAAU,GACV,mBAAmB,GACnB,yBAAyB,GACzB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,+BAA+B,GAC/B,qBAAqB,EACvB,SAAS,CACZ,CAAC;IAEE,EAAE,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,GAChD,WAAW,CACL,mBAAmB,GACnB,yBAAyB,GACzB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,+BAA+B,EACjC,WAAW,EACX,IAAI,CACP,GACD,WAAW,CAAC,qBAAqB,EAAE,WAAW,EAAE,IAAI,CAAC,GACrD,mBAAmB,CACb,UAAU,GACV,mBAAmB,GACnB,yBAAyB,GACzB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,+BAA+B,GAC/B,qBAAqB,EACvB,IAAI,CACP,CAAC;gBAEM,OAAO,EAAE,YAAY;IA+CjC;;;;;OAKG;IACG,wBAAwB,CAC1B,GAAG,EAAE,eAAe,CAAC,OAAO,CAAC,GAC9B,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;IAsD/B;;OAEG;IACH,OAAO;IAYP;;;;;;;;;;;OAWG;IACH,cAAc,CACV,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,MAAa,EACpB,OAAO,UAAO,GACf,eAAe;CAarB"}
@@ -1,4 +0,0 @@
1
- import { Options } from './ol-wfst';
2
- export declare const DEFAULT_LANGUAGE = "en";
3
- export declare const getDefaultOptions: () => Options;
4
- //# sourceMappingURL=defaults.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,iBAAiB,QAAO,OAoBpC,CAAC"}
@@ -1,18 +0,0 @@
1
- import Feature from 'ol/Feature.js';
2
- import Geometry from 'ol/geom/Geometry.js';
3
- import Control from 'ol/control/Control.js';
4
- import { VectorSourceEvent } from 'ol/source/Vector.js';
5
- import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable.js';
6
- import BaseEvent from 'ol/events/Event.js';
7
- import { EventsKey } from 'ol/events.js';
8
- import { ObjectEvent } from 'ol/Object.js';
9
- import { Types as ObjectEventTypes } from 'ol/ObjectEventType.js';
10
- type ChangesEventTypes = 'cancel' | 'apply' | 'delete';
11
- export default class EditControlChangesEl extends Control {
12
- on: OnSignature<EventTypes, BaseEvent, EventsKey> & OnSignature<ChangesEventTypes, VectorSourceEvent, EventsKey> & OnSignature<ObjectEventTypes, ObjectEvent, EventsKey> & CombinedOnSignature<ChangesEventTypes | ObjectEventTypes | EventTypes, EventsKey>;
13
- once: OnSignature<EventTypes, BaseEvent, EventsKey> & OnSignature<ChangesEventTypes, VectorSourceEvent, EventsKey> & OnSignature<ObjectEventTypes, ObjectEvent, EventsKey> & CombinedOnSignature<ChangesEventTypes | ObjectEventTypes | EventTypes, EventsKey>;
14
- un: OnSignature<EventTypes, BaseEvent, void> & OnSignature<ChangesEventTypes, VectorSourceEvent, EventsKey> & OnSignature<ObjectEventTypes, ObjectEvent, void> & CombinedOnSignature<ChangesEventTypes | ObjectEventTypes | EventTypes, void>;
15
- constructor(feature: Feature<Geometry>);
16
- }
17
- export {};
18
- //# sourceMappingURL=EditControlChanges.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"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ChD,WAAW,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,SAAS,CAAC,GAC5D,WAAW,CAAC,gBAAgB,EAAE,WAAW,EAAE,IAAI,CAAC,GAChD,mBAAmB,CACf,iBAAiB,GAAG,gBAAgB,GAAG,UAAU,EACjD,IAAI,CACP,CAAC;gBAEM,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC;CA+CzC"}
@@ -1,19 +0,0 @@
1
- import Observable from 'ol/Observable.js';
2
- import Feature from 'ol/Feature.js';
3
- import Geometry from 'ol/geom/Geometry.js';
4
- import Modal from 'modal-vanilla';
5
- import { Options } from '../ol-wfst';
6
- /**
7
- * Shows a fields form in a modal window to allow changes in the properties of the feature.
8
- *
9
- * @param feature
10
- * @private
11
- */
12
- export declare class EditFieldsModal extends Observable {
13
- protected _options: Options['modal'];
14
- protected _modal: Modal;
15
- protected _feature: Feature;
16
- constructor(options: Options['modal']);
17
- show(feature: Feature<Geometry>): void;
18
- }
19
- //# sourceMappingURL=EditFieldsModal.d.ts.map