ol-wfst 4.1.1 → 4.3.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.
- package/LICENSE.md +1 -1
- package/README.md +10 -11
- package/dist/@enums.d.ts +16 -16
- package/dist/@types.d.ts +200 -200
- package/dist/Geoserver.d.ts +274 -274
- package/dist/Geoserver.d.ts.map +1 -1
- package/dist/WfsLayer.d.ts +52 -52
- package/dist/WfsLayer.d.ts.map +1 -1
- package/dist/WmsLayer.d.ts +68 -61
- package/dist/WmsLayer.d.ts.map +1 -1
- package/dist/css/ol-wfst.bootstrap5.css +227 -38
- package/dist/css/ol-wfst.bootstrap5.min.css +1 -1
- package/dist/css/ol-wfst.css +24 -39
- package/dist/css/ol-wfst.min.css +1 -1
- package/dist/defaults.d.ts +3 -3
- package/dist/index-umd.d.ts +3 -0
- package/dist/index-umd.d.ts.map +1 -0
- package/dist/modules/EditControlChanges.d.ts +17 -17
- package/dist/modules/EditFieldsModal.d.ts +18 -18
- package/dist/modules/EditOverlay.d.ts +7 -7
- package/dist/modules/LayersControl.d.ts +37 -33
- package/dist/modules/LayersControl.d.ts.map +1 -1
- package/dist/modules/Uploads.d.ts +49 -49
- package/dist/modules/base/BaseLayer.d.ts +61 -61
- package/dist/modules/base/WfsSource.d.ts +48 -47
- package/dist/modules/base/WfsSource.d.ts.map +1 -1
- package/dist/modules/base/WmsSource.d.ts +46 -46
- package/dist/modules/editLayer.d.ts +3 -3
- package/dist/modules/errors.d.ts +11 -11
- package/dist/modules/helpers.d.ts +6 -6
- package/dist/modules/i18n/en.d.ts +2 -2
- package/dist/modules/i18n/es.d.ts +2 -2
- package/dist/modules/i18n/index.d.ts +14 -14
- package/dist/modules/i18n/zh.d.ts +2 -2
- package/dist/modules/loading.d.ts +2 -2
- package/dist/modules/state.d.ts +21 -21
- package/dist/modules/styleFunction.d.ts +12 -12
- package/dist/myPragma.d.ts +1 -1
- package/dist/ol-wfst.d.ts +334 -336
- package/dist/ol-wfst.d.ts.map +1 -1
- package/dist/ol-wfst.js +2656 -2599
- package/dist/ol-wfst.js.map +1 -1
- package/dist/ol-wfst.min.js +3 -3
- package/dist/ol-wfst.min.js.map +1 -1
- package/lib/@enums.d.ts +16 -16
- package/lib/@types.d.ts +200 -200
- package/lib/Geoserver.d.ts +274 -274
- package/lib/Geoserver.d.ts.map +1 -1
- package/lib/WfsLayer.d.ts +52 -52
- package/lib/WfsLayer.d.ts.map +1 -1
- package/lib/WmsLayer.d.ts +68 -61
- package/lib/WmsLayer.d.ts.map +1 -1
- package/lib/defaults.d.ts +3 -3
- package/lib/index-umd.d.ts +3 -0
- package/lib/index-umd.d.ts.map +1 -0
- package/lib/modules/EditControlChanges.d.ts +17 -17
- package/lib/modules/EditFieldsModal.d.ts +18 -18
- package/lib/modules/EditOverlay.d.ts +7 -7
- package/lib/modules/LayersControl.d.ts +37 -33
- package/lib/modules/LayersControl.d.ts.map +1 -1
- package/lib/modules/Uploads.d.ts +49 -49
- package/lib/modules/base/BaseLayer.d.ts +61 -61
- package/lib/modules/base/WfsSource.d.ts +48 -47
- package/lib/modules/base/WfsSource.d.ts.map +1 -1
- package/lib/modules/base/WmsSource.d.ts +46 -46
- package/lib/modules/editLayer.d.ts +3 -3
- package/lib/modules/errors.d.ts +11 -11
- package/lib/modules/helpers.d.ts +6 -6
- package/lib/modules/i18n/en.d.ts +2 -2
- package/lib/modules/i18n/es.d.ts +2 -2
- package/lib/modules/i18n/index.d.ts +14 -14
- package/lib/modules/i18n/zh.d.ts +2 -2
- package/lib/modules/loading.d.ts +2 -2
- package/lib/modules/state.d.ts +21 -21
- package/lib/modules/styleFunction.d.ts +12 -12
- package/lib/myPragma.d.ts +1 -1
- package/lib/ol-wfst.d.ts +334 -336
- package/lib/ol-wfst.d.ts.map +1 -1
- package/lib/ol-wfst.js +2651 -2593
- package/lib/ol-wfst.js.map +1 -1
- package/lib/style/css/ol-gisify.css +24 -39
- package/lib/style/css/ol-wfst.bootstrap5.css +227 -38
- package/lib/style/scss/-ol-wfst.bootstrap5.scss +3 -0
- package/lib/style/scss/ol-wfst.scss +81 -58
- package/package.json +15 -16
- package/CHANGELOG.md +0 -123
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
</a>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
|
-
Tiny
|
|
15
|
+
Tiny WFS-T client to insert (drawing/uploading), modify and delete features on GeoServers using [OpenLayers](https://openlayers.org/). Layers with these types of geometries are supported: _GeometryCollection_ (in this case, you can choose the geometry type of each element to draw), _Point_, _MultiPoint_, _LineString_, _MultiLineString_, _Polygon_ and _MultiPolygon_.
|
|
16
16
|
|
|
17
|
-
Tested with OpenLayers version 5, 6 and
|
|
17
|
+
Tested with OpenLayers version 5, 6, 7, 8 and 9.
|
|
18
18
|
|
|
19
19
|
<img src="screenshots/example-1.jpg" alt="Drawing" style="width:50%; float:left;">
|
|
20
20
|
<img src="screenshots/example-2.jpg" alt="Editing fields" style="width:50%; float:left;">
|
|
@@ -126,8 +126,7 @@ map.addControl(wfst);
|
|
|
126
126
|
See \[#wfsSource]
|
|
127
127
|
|
|
128
128
|
```js
|
|
129
|
-
|
|
130
|
-
wmsLayer.setCustomParam('cql_filter',(`id = 28`);
|
|
129
|
+
wmsLayer.setCustomParam('cql_filter', `id = 28`);
|
|
131
130
|
wmsLayer.setCustomParam('env', `tags=true`);
|
|
132
131
|
```
|
|
133
132
|
|
|
@@ -221,14 +220,14 @@ See [CHANGELOG](./CHANGELOG.md) for details of changes in each release.
|
|
|
221
220
|
Load `ol-wfst.js` after OpenLayers. The available classes are `Wfst`, `Wfst.Geoserver`, `Wfst.WfsLayer` and `Wfst.WmsLayer`.
|
|
222
221
|
|
|
223
222
|
```HTML
|
|
224
|
-
<script src="https://unpkg.com/ol-wfst@4.
|
|
223
|
+
<script src="https://unpkg.com/ol-wfst@4.3.0"></script>
|
|
225
224
|
```
|
|
226
225
|
|
|
227
226
|
#### CSS
|
|
228
227
|
|
|
229
228
|
```HTML
|
|
230
|
-
<link rel="stylesheet" href="https://unpkg.com/ol-wfst@4.
|
|
231
|
-
<link rel="stylesheet" href="https://unpkg.com/ol-wfst@4.
|
|
229
|
+
<link rel="stylesheet" href="https://unpkg.com/ol-wfst@4.3.0/dist/css/ol-wfst.min.css" />
|
|
230
|
+
<link rel="stylesheet" href="https://unpkg.com/ol-wfst@4.3.0/dist/css/ol-wfst.bootstrap5.min.css" />
|
|
232
231
|
```
|
|
233
232
|
|
|
234
233
|
### Parcel, Webpack, etc.
|
|
@@ -428,7 +427,7 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
|
|
|
428
427
|
|
|
429
428
|
**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)**
|
|
430
429
|
|
|
431
|
-
Tiny
|
|
430
|
+
Tiny WFS-T client to insert (drawing/uploading), modify and delete
|
|
432
431
|
features on GeoServers using OpenLayers. Layers with these types
|
|
433
432
|
of geometries are supported: "GeometryCollection" (in this case, you can
|
|
434
433
|
choose the geometry type of each element to draw), "Point", "MultiPoint",
|
|
@@ -973,9 +972,9 @@ Type: {capabilities: [string](https://developer.mozilla.org/docs/Web/JavaScript/
|
|
|
973
972
|
|
|
974
973
|
## TODO
|
|
975
974
|
|
|
976
|
-
-
|
|
977
|
-
-
|
|
978
|
-
-
|
|
975
|
+
- ~~Add support to diferent layer styles~~
|
|
976
|
+
- ~~Improve widget controller: visibility toggle~~
|
|
977
|
+
- ~~Add events~~
|
|
979
978
|
- Add `Don't show again` option in the error modal
|
|
980
979
|
- Allow selection of multiples features and bulk edit
|
|
981
980
|
- Add customizables styles
|
package/dist/@enums.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
export declare enum TransactionType {
|
|
13
|
-
Insert = "insert",
|
|
14
|
-
Delete = "delete",
|
|
15
|
-
Update = "update"
|
|
16
|
-
}
|
|
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
|
+
export declare enum TransactionType {
|
|
13
|
+
Insert = "insert",
|
|
14
|
+
Delete = "delete",
|
|
15
|
+
Update = "update"
|
|
16
|
+
}
|
|
17
17
|
//# sourceMappingURL=@enums.d.ts.map
|
package/dist/@types.d.ts
CHANGED
|
@@ -1,201 +1,201 @@
|
|
|
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
|
-
}
|
|
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
201
|
//# sourceMappingURL=@types.d.ts.map
|