ol-wfst 3.0.5 → 4.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.
- package/CHANGELOG.md +18 -1
- package/LICENSE.md +21 -0
- package/README.md +640 -196
- package/dist/@enums.d.ts +5 -0
- package/dist/@enums.d.ts.map +1 -1
- package/dist/@types.d.ts +195 -0
- package/dist/@types.d.ts.map +1 -0
- package/dist/Geoserver.d.ts +260 -0
- package/dist/Geoserver.d.ts.map +1 -0
- package/dist/WfsLayer.d.ts +53 -0
- package/dist/WfsLayer.d.ts.map +1 -0
- package/dist/WmsLayer.d.ts +61 -0
- package/dist/WmsLayer.d.ts.map +1 -0
- package/dist/css/ol-wfst.css +19 -18
- package/dist/css/ol-wfst.min.css +1 -1
- package/dist/defaults.d.ts +4 -0
- package/dist/defaults.d.ts.map +1 -0
- package/dist/modules/EditControlChanges.d.ts +18 -0
- package/dist/modules/EditControlChanges.d.ts.map +1 -0
- package/dist/modules/EditFieldsModal.d.ts +18 -0
- package/dist/modules/EditFieldsModal.d.ts.map +1 -0
- package/dist/modules/EditOverlay.d.ts +7 -0
- package/dist/modules/EditOverlay.d.ts.map +1 -0
- package/dist/modules/LayersControl.d.ts +35 -0
- package/dist/modules/LayersControl.d.ts.map +1 -0
- package/dist/modules/Uploads.d.ts +47 -0
- package/dist/modules/Uploads.d.ts.map +1 -0
- package/dist/modules/base/BaseLayer.d.ts +62 -0
- package/dist/modules/base/BaseLayer.d.ts.map +1 -0
- package/dist/modules/base/WfsSource.d.ts +48 -0
- package/dist/modules/base/WfsSource.d.ts.map +1 -0
- package/dist/modules/base/WmsSource.d.ts +47 -0
- package/dist/modules/base/WmsSource.d.ts.map +1 -0
- package/dist/modules/editLayer.d.ts +4 -0
- package/dist/modules/editLayer.d.ts.map +1 -0
- package/dist/modules/errors.d.ts +11 -0
- package/dist/modules/errors.d.ts.map +1 -0
- package/dist/modules/helpers.d.ts +7 -0
- package/dist/modules/helpers.d.ts.map +1 -0
- package/dist/{assets → modules}/i18n/en.d.ts +0 -0
- package/dist/modules/i18n/en.d.ts.map +1 -0
- package/dist/{assets → modules}/i18n/es.d.ts +0 -0
- package/dist/modules/i18n/es.d.ts.map +1 -0
- package/dist/modules/i18n/index.d.ts +15 -0
- package/dist/modules/i18n/index.d.ts.map +1 -0
- package/dist/{assets → modules}/i18n/zh.d.ts +0 -0
- package/dist/modules/i18n/zh.d.ts.map +1 -0
- package/dist/modules/loading.d.ts +3 -0
- package/dist/modules/loading.d.ts.map +1 -0
- package/dist/modules/state.d.ts +22 -0
- package/dist/modules/state.d.ts.map +1 -0
- package/dist/modules/styleFunction.d.ts +13 -0
- package/dist/modules/styleFunction.d.ts.map +1 -0
- package/dist/myPragma.d.ts +2 -0
- package/dist/myPragma.d.ts.map +1 -0
- package/dist/ol-wfst.d.ts +83 -326
- package/dist/ol-wfst.d.ts.map +1 -1
- package/dist/ol-wfst.js +6126 -5139
- package/dist/ol-wfst.js.map +1 -1
- package/dist/ol-wfst.min.js +1 -15
- package/dist/ol-wfst.min.js.map +1 -1
- package/lib/@enums.d.ts +5 -0
- package/lib/@enums.d.ts.map +1 -1
- package/lib/@types.d.ts +195 -0
- package/lib/@types.d.ts.map +1 -0
- package/lib/Geoserver.d.ts +260 -0
- package/lib/Geoserver.d.ts.map +1 -0
- package/lib/WfsLayer.d.ts +53 -0
- package/lib/WfsLayer.d.ts.map +1 -0
- package/lib/WmsLayer.d.ts +61 -0
- package/lib/WmsLayer.d.ts.map +1 -0
- package/lib/defaults.d.ts +4 -0
- package/lib/defaults.d.ts.map +1 -0
- package/lib/index-es.js +2765 -0
- package/lib/index-es.js.map +1 -0
- package/lib/modules/EditControlChanges.d.ts +18 -0
- package/lib/modules/EditControlChanges.d.ts.map +1 -0
- package/lib/modules/EditFieldsModal.d.ts +18 -0
- package/lib/modules/EditFieldsModal.d.ts.map +1 -0
- package/lib/modules/EditOverlay.d.ts +7 -0
- package/lib/modules/EditOverlay.d.ts.map +1 -0
- package/lib/modules/LayersControl.d.ts +35 -0
- package/lib/modules/LayersControl.d.ts.map +1 -0
- package/lib/modules/Uploads.d.ts +47 -0
- package/lib/modules/Uploads.d.ts.map +1 -0
- package/lib/modules/base/BaseLayer.d.ts +62 -0
- package/lib/modules/base/BaseLayer.d.ts.map +1 -0
- package/lib/modules/base/WfsSource.d.ts +48 -0
- package/lib/modules/base/WfsSource.d.ts.map +1 -0
- package/lib/modules/base/WmsSource.d.ts +47 -0
- package/lib/modules/base/WmsSource.d.ts.map +1 -0
- package/lib/modules/editLayer.d.ts +4 -0
- package/lib/modules/editLayer.d.ts.map +1 -0
- package/lib/modules/errors.d.ts +11 -0
- package/lib/modules/errors.d.ts.map +1 -0
- package/lib/modules/helpers.d.ts +7 -0
- package/lib/modules/helpers.d.ts.map +1 -0
- package/lib/{assets → modules}/i18n/en.d.ts +0 -0
- package/lib/modules/i18n/en.d.ts.map +1 -0
- package/lib/{assets → modules}/i18n/es.d.ts +0 -0
- package/lib/modules/i18n/es.d.ts.map +1 -0
- package/lib/modules/i18n/index.d.ts +15 -0
- package/lib/modules/i18n/index.d.ts.map +1 -0
- package/lib/{assets → modules}/i18n/zh.d.ts +0 -0
- package/lib/modules/i18n/zh.d.ts.map +1 -0
- package/lib/modules/loading.d.ts +3 -0
- package/lib/modules/loading.d.ts.map +1 -0
- package/lib/modules/state.d.ts +22 -0
- package/lib/modules/state.d.ts.map +1 -0
- package/lib/modules/styleFunction.d.ts +13 -0
- package/lib/modules/styleFunction.d.ts.map +1 -0
- package/lib/myPragma.d.ts +2 -0
- package/lib/myPragma.d.ts.map +1 -0
- package/lib/ol-wfst.d.ts +83 -326
- package/lib/ol-wfst.d.ts.map +1 -1
- package/lib/style/css/ol-gisify.css +19 -18
- package/lib/style/scss/_variables.scss +17 -0
- package/lib/style/scss/ol-wfst.scss +31 -28
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -5
- package/dist/assets/i18n/en.d.ts.map +0 -1
- package/dist/assets/i18n/es.d.ts.map +0 -1
- package/dist/assets/i18n/index.d.ts +0 -4
- package/dist/assets/i18n/index.d.ts.map +0 -1
- package/dist/assets/i18n/zh.d.ts.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/lib/assets/i18n/en.d.ts.map +0 -1
- package/lib/assets/i18n/es.d.ts.map +0 -1
- package/lib/assets/i18n/index.d.ts +0 -4
- package/lib/assets/i18n/index.d.ts.map +0 -1
- package/lib/assets/i18n/zh.d.ts.map +0 -1
- package/lib/ol-wfst.js +0 -2276
- package/lib/ol-wfst.js.map +0 -1
package/dist/css/ol-wfst.css
CHANGED
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
padding: 8px;
|
|
27
27
|
height: 38px;
|
|
28
28
|
width: 38px;
|
|
29
|
-
color: #ffffff;
|
|
30
29
|
font-size: 12px;
|
|
31
30
|
background: #ffffff;
|
|
32
31
|
border: 1px solid #b3b3b3;
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
.ol-wfst--edit-button:active {
|
|
43
|
-
background: #
|
|
42
|
+
background: #fafafa;
|
|
44
43
|
transform: translateY(1px);
|
|
45
44
|
}
|
|
46
45
|
|
|
@@ -62,8 +61,8 @@
|
|
|
62
61
|
border: 1px solid #969696;
|
|
63
62
|
border-top: 0;
|
|
64
63
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.529);
|
|
65
|
-
border-radius: 0 0
|
|
66
|
-
padding: 10px
|
|
64
|
+
border-radius: 0 0 4px 4px;
|
|
65
|
+
padding: 10px;
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
.ol-wfst--changes-control-el {
|
|
@@ -86,7 +85,7 @@
|
|
|
86
85
|
bottom: 10px;
|
|
87
86
|
background-color: #fff;
|
|
88
87
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.42);
|
|
89
|
-
border: 1px solid
|
|
88
|
+
border: 1px solid rgba(169, 169, 169, 0.7333333333);
|
|
90
89
|
border-radius: 4px;
|
|
91
90
|
}
|
|
92
91
|
|
|
@@ -95,21 +94,26 @@
|
|
|
95
94
|
color: #d43f3a;
|
|
96
95
|
}
|
|
97
96
|
|
|
97
|
+
.ol-wfst--layer-not-visible {
|
|
98
|
+
opacity: 0.5 !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ol-wfst--layer-not-visible {
|
|
102
|
+
font-style: italic;
|
|
103
|
+
}
|
|
104
|
+
|
|
98
105
|
.wfst--layer-control {
|
|
99
106
|
position: relative;
|
|
100
|
-
|
|
101
|
-
padding: 2px 4px;
|
|
102
|
-
margin-bottom: 3px;
|
|
107
|
+
padding: 5px 10px;
|
|
103
108
|
}
|
|
104
109
|
|
|
105
110
|
.wfst--layer-control.ol-wfst--selected-on {
|
|
106
|
-
background-color: rgba(
|
|
107
|
-
border: 1px solid rgba(0, 0, 0, 0.22) !important;
|
|
111
|
+
background-color: rgba(240, 223, 0, 0.6) !important;
|
|
108
112
|
}
|
|
109
113
|
|
|
110
114
|
.wfst--layer-control:hover,
|
|
111
115
|
.wfst--layer-control:active {
|
|
112
|
-
background-color: #
|
|
116
|
+
background-color: #f5f5f5;
|
|
113
117
|
}
|
|
114
118
|
|
|
115
119
|
.wfst--layer-control input[type=radio] {
|
|
@@ -126,7 +130,7 @@
|
|
|
126
130
|
|
|
127
131
|
.ol-wfst--tools-control-btn:hover,
|
|
128
132
|
.ol-wfst--tools-control-btn:active {
|
|
129
|
-
background-color: #
|
|
133
|
+
background-color: #f5f5f5;
|
|
130
134
|
opacity: 0.95;
|
|
131
135
|
}
|
|
132
136
|
|
|
@@ -155,7 +159,8 @@
|
|
|
155
159
|
.wfst--tools-control--head {
|
|
156
160
|
background: #dddddd;
|
|
157
161
|
padding: 10px;
|
|
158
|
-
border-bottom: 1px solid
|
|
162
|
+
border-bottom: 1px solid rgba(169, 169, 169, 0.7333333333);
|
|
163
|
+
border-radius: 4px 4px 0 0;
|
|
159
164
|
}
|
|
160
165
|
|
|
161
166
|
.wfst--tools-control--head > * {
|
|
@@ -201,13 +206,9 @@
|
|
|
201
206
|
cursor: pointer;
|
|
202
207
|
}
|
|
203
208
|
|
|
204
|
-
.wfst--tools-control--select-layers {
|
|
205
|
-
padding: 10px 10px 5px;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
209
|
.wfst--tools-control--select-layers label {
|
|
209
210
|
position: absolute;
|
|
210
|
-
left:
|
|
211
|
+
left: 30px;
|
|
211
212
|
right: 0;
|
|
212
213
|
cursor: pointer;
|
|
213
214
|
}
|
package/dist/css/ol-wfst.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ol-wfst--input-field-container{display:inline-block;margin-bottom:10px;padding:5px;width:49%}.ol-wfst--input-field-label{display:block;font-weight:500;margin-bottom:4px}.ol-wfst--input-field-input{padding:5px;width:100%}.ol-wfst--edit-button-cnt{display:inline-block;margin:0 5px}.ol-wfst--edit-button{background:#fff;border:1px solid #b3b3b3;border-radius:50%;box-shadow:0 2px 8px rgba(0,0,0,.42);
|
|
1
|
+
.ol-wfst--input-field-container{display:inline-block;margin-bottom:10px;padding:5px;width:49%}.ol-wfst--input-field-label{display:block;font-weight:500;margin-bottom:4px}.ol-wfst--input-field-input{padding:5px;width:100%}.ol-wfst--edit-button-cnt{display:inline-block;margin:0 5px}.ol-wfst--edit-button{background:#fff;border:1px solid #b3b3b3;border-radius:50%;box-shadow:0 2px 8px rgba(0,0,0,.42);cursor:pointer;font-size:12px;height:38px;outline:0;padding:8px;width:38px}.ol-wfst--edit-button:hover{background:#f5f5f5}.ol-wfst--edit-button:active{background:#fafafa;transform:translateY(1px)}.ol-wfst--edit-button img{fill:#333;height:20px;width:20px}.ol-wfst--changes-control{background:#ff6161;border:1px solid #969696;border-radius:0 0 4px 4px;border-top:0;box-shadow:0 1px 4px rgba(0,0,0,.529);left:50%;max-width:290px;padding:10px;position:absolute;right:0;top:0;transform:translateX(-50%);width:90%}.ol-wfst--changes-control-el{text-align:center}.ol-wfst--changes-control-el button{margin:0 5px}.ol-wfst--changes-control-id{color:#fff;font-size:12px;margin-bottom:10px}.ol-wfst--tools-control{background-color:#fff;border:1px solid hsla(0,0%,66%,.733);border-radius:4px;bottom:10px;box-shadow:0 1px 4px rgba(0,0,0,.42);left:10px;position:absolute}.btn.btn-third{color:#d43f3a;float:left}.ol-wfst--layer-not-visible{font-style:italic;opacity:.5!important}.wfst--layer-control{padding:5px 10px;position:relative}.wfst--layer-control.ol-wfst--selected-on{background-color:rgba(240,223,0,.6)!important}.wfst--layer-control:active,.wfst--layer-control:hover{background-color:#f5f5f5}.wfst--layer-control input[type=radio]{display:none}.ol-wfst--tools-control-btn.wfst--active{background-color:#ffed00!important;opacity:1}.ol-wfst--tools-control-btn:active,.ol-wfst--tools-control-btn:hover{background-color:#f5f5f5;opacity:.95}.ol-wfst--tools-control-btn:active{transform:translateY(1px)}.ol-wfst--tools-control-btn{background:#fff;border:1px solid silver;border-radius:4px;cursor:pointer;display:inline-block;height:32px;outline:0;text-align:center;vertical-align:middle;width:40px}.ol-wfst--tools-control-btn img{height:20px;width:20px}.wfst--tools-control--head{background:#ddd;border-bottom:1px solid hsla(0,0%,66%,.733);border-radius:4px 4px 0 0;padding:10px}.wfst--tools-control--head>*{display:inline-block}.ol-wfst--tools-control-draw-cnt:not(:first-child){margin-left:6px}.ol-wfst--tools-control-btn-upload{padding:3px}.wfst--tools-control--select-draw{background:#f7f7f7;border:1px solid silver;border-left:0;border-radius:4px;border-radius:0 4px 4px 0;cursor:pointer;font-size:.9em;height:32px;opacity:.5;outline:0;padding:0 3px;pointer-events:none;vertical-align:middle}.ol-wfst--tools-control-btn-draw{border-radius:4px 0 0 4px;opacity:.7}.draw-mode .wfst--tools-control--select-draw{background:#fffab5;opacity:1;pointer-events:inherit}.wfst--tools-control--head label{cursor:pointer}.wfst--tools-control--select-layers label{cursor:pointer;left:30px;position:absolute;right:0}#ol-wfst--upload{display:none;visibility:hidden}.ol-wfst--tools-control--loading{display:none;position:absolute;top:-25px}.ol-wfst--tools-control--loading.ol-wfst--tools-control--loading-show{display:block}.ol-wfst--tools-control-visible{display:inline-block}.ol-wfst--tools-control-visible img{height:14px;width:14px}.ol-wfst--tools-control-visible-btn{cursor:pointer;opacity:.6}.ol-wfst--tools-control-visible-btn:hover{opacity:.9}.wfst--layer-control{opacity:.7}.wfst--layer-control.ol-wfst--visible-on{opacity:1}.ol-wfst--visible-btn-on{display:none}.ol-wfst--visible-btn-off,.ol-wfst--visible-on .ol-wfst--visible-btn-on{display:block}.ol-wfst--visible-on .ol-wfst--visible-btn-off{display:none}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Feature } from 'ol';
|
|
2
|
+
import { Geometry } from 'ol/geom';
|
|
3
|
+
import { Control } from 'ol/control';
|
|
4
|
+
import { VectorSourceEvent } from 'ol/source/Vector';
|
|
5
|
+
import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable';
|
|
6
|
+
import BaseEvent from 'ol/events/Event';
|
|
7
|
+
import { EventsKey } from 'ol/events';
|
|
8
|
+
import { ObjectEvent } from 'ol/Object';
|
|
9
|
+
import { Types as ObjectEventTypes } from 'ol/ObjectEventType';
|
|
10
|
+
declare 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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditControlChanges.d.ts","sourceRoot":"","sources":["../../src/modules/EditControlChanges.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAK/D,aAAK,iBAAiB,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEvD,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,OAAO;IAC7C,EAAE,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,GACrD,WAAW,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,SAAS,CAAC,GAC5D,WAAW,CAAC,gBAAgB,EAAE,WAAW,EAAE,SAAS,CAAC,GACrD,mBAAmB,CACf,iBAAiB,GAAG,gBAAgB,GAAG,UAAU,EACjD,SAAS,CACZ,CAAC;IAEE,IAAI,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,GACvD,WAAW,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,SAAS,CAAC,GAC5D,WAAW,CAAC,gBAAgB,EAAE,WAAW,EAAE,SAAS,CAAC,GACrD,mBAAmB,CACf,iBAAiB,GAAG,gBAAgB,GAAG,UAAU,EACjD,SAAS,CACZ,CAAC;IAEE,EAAE,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,GAChD,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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Feature, Observable } from 'ol';
|
|
2
|
+
import { Geometry } from 'ol/geom';
|
|
3
|
+
import Modal from 'modal-vanilla';
|
|
4
|
+
import { Options } from '../ol-wfst';
|
|
5
|
+
/**
|
|
6
|
+
* Shows a fields form in a modal window to allow changes in the properties of the feature.
|
|
7
|
+
*
|
|
8
|
+
* @param feature
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
export declare class EditFieldsModal extends Observable {
|
|
12
|
+
protected _options: Options['modal'];
|
|
13
|
+
protected _modal: Modal;
|
|
14
|
+
protected _feature: Feature;
|
|
15
|
+
constructor(options: Options['modal']);
|
|
16
|
+
show(feature: Feature<Geometry>): void;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=EditFieldsModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditFieldsModal.d.ts","sourceRoot":"","sources":["../../src/modules/EditFieldsModal.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnC,OAAO,KAAK,MAAM,eAAe,CAAC;AAGlC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,UAAU;IAC3C,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IACrC,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC;IACxB,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;gBAEhB,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;IAoDrC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC;CAsDlC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Geometry } from 'ol/geom';
|
|
2
|
+
import { Feature, Overlay } from 'ol';
|
|
3
|
+
import { Coordinate } from 'ol/coordinate';
|
|
4
|
+
export default class EditOverlay extends Overlay {
|
|
5
|
+
constructor(feature: Feature<Geometry>, coordinate?: Coordinate);
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=EditOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditOverlay.d.ts","sourceRoot":"","sources":["../../src/modules/EditOverlay.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,OAAO;gBAChC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAE,UAAiB;CA6CxE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Observable } from 'ol';
|
|
2
|
+
import { Options, WfsLayer, WmsLayer } from '../ol-wfst';
|
|
3
|
+
import { GeometryType } from '../@enums';
|
|
4
|
+
import Uploads from './Uploads';
|
|
5
|
+
/**
|
|
6
|
+
* Removes in the DOM the class of the tools
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
export declare const resetStateButtons: () => void;
|
|
10
|
+
export declare const activateModeButtons: () => void;
|
|
11
|
+
export declare const activateDrawButton: () => void;
|
|
12
|
+
export declare const visibleLayer: (bool?: boolean) => void;
|
|
13
|
+
export default class LayersControl extends Observable {
|
|
14
|
+
protected _uploads: Uploads;
|
|
15
|
+
protected _uploadFormats: Options['uploadFormats'];
|
|
16
|
+
constructor(uploads: Uploads, uploadFormats: Options['uploadFormats']);
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @param layer
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
addLayerEl(layer: WfsLayer | WmsLayer): any;
|
|
23
|
+
/**
|
|
24
|
+
* Update geom Types availibles to select for this layer
|
|
25
|
+
*
|
|
26
|
+
* @param layerName
|
|
27
|
+
* @param geomDrawTypeSelected
|
|
28
|
+
* @private
|
|
29
|
+
*/
|
|
30
|
+
_changeStateSelect(layer: WmsLayer | WfsLayer, geomDrawTypeSelected?: GeometryType): GeometryType;
|
|
31
|
+
_visibilityClickHandler(evt: any): void;
|
|
32
|
+
_layerChangeHandler(evt: any, layer: any): void;
|
|
33
|
+
render(): HTMLElement;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=LayersControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayersControl.d.ts","sourceRoot":"","sources":["../../src/modules/LayersControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAGhC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQzD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAOzC,OAAO,OAAO,MAAM,WAAW,CAAC;AAGhC;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,IAOpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAK/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAK9B,CAAC;AAEF,eAAO,MAAM,YAAY,0BAKxB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU;IACjD,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;gBAEvC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC,eAAe,CAAC;IAOrE;;;;OAIG;IACH,UAAU,CAAC,KAAK,EAAE,QAAQ,GAAG,QAAQ;IAoErC;;;;;;OAMG;IACH,kBAAkB,CACd,KAAK,EAAE,QAAQ,GAAG,QAAQ,EAC1B,oBAAoB,GAAE,YAAmB,GAC1C,YAAY;IA8Df,uBAAuB,CAAC,GAAG,KAAA;IAa3B,mBAAmB,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA;IAiB9B,MAAM,IAAI,WAAW;CAkExB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Geometry } from 'ol/geom';
|
|
2
|
+
import { Feature, Observable } from 'ol';
|
|
3
|
+
import { GeoJSON, KML, WFS } from 'ol/format';
|
|
4
|
+
import { Options } from '../ol-wfst';
|
|
5
|
+
export default class Uploads extends Observable {
|
|
6
|
+
protected _options: Options;
|
|
7
|
+
protected _formatWFS: WFS;
|
|
8
|
+
protected _formatGeoJSON: GeoJSON;
|
|
9
|
+
protected _formatKml: KML;
|
|
10
|
+
protected _xs: XMLSerializer;
|
|
11
|
+
protected _processUpload: Options['processUpload'];
|
|
12
|
+
constructor(options: Options);
|
|
13
|
+
/**
|
|
14
|
+
* Parse and check geometry of uploaded files
|
|
15
|
+
*
|
|
16
|
+
* @param evt
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
process(evt: Event): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Read data file
|
|
22
|
+
* @param file
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
_fileReader(file: File): Promise<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Attemp to change the geometry feature to the layer
|
|
28
|
+
* @param feature
|
|
29
|
+
* @private
|
|
30
|
+
*/
|
|
31
|
+
_fixGeometry(feature: Feature<Geometry>): Feature<Geometry>;
|
|
32
|
+
/**
|
|
33
|
+
* Check if the feature has the same geometry as the target layer
|
|
34
|
+
* @param feature
|
|
35
|
+
* @private
|
|
36
|
+
*/
|
|
37
|
+
_checkGeometry(feature: Feature<Geometry>): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Confirm modal before transact to the GeoServer the features in the file
|
|
40
|
+
*
|
|
41
|
+
* @param content
|
|
42
|
+
* @param featuresToInsert
|
|
43
|
+
* @private
|
|
44
|
+
*/
|
|
45
|
+
_initModal(content: string, featuresToInsert: Array<Feature<Geometry>>): void;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=Uploads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Uploads.d.ts","sourceRoot":"","sources":["../../src/modules/Uploads.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EAOX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAK9C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAUrC,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,UAAU;IAC3C,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;IAG5B,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC;IAC1B,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC;IAClC,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC;IAC1B,SAAS,CAAC,GAAG,EAAE,aAAa,CAAC;IAE7B,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;gBAEvC,OAAO,EAAE,OAAO;IAkB5B;;;;;OAKG;IACG,OAAO,CAAC,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAyFxC;;;;OAIG;IACG,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IAiB9C;;;;OAIG;IACH,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;IAgD3D;;;;OAIG;IACH,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO;IAenD;;;;;;OAMG;IACH,UAAU,CACN,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAC3C,IAAI;CAuCV"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Feature } from 'ol';
|
|
2
|
+
import { Geometry } from 'ol/geom';
|
|
3
|
+
import { TransactionResponse } from 'ol/format/WFS';
|
|
4
|
+
import Layer from 'ol/layer/Base';
|
|
5
|
+
import Geoserver from '../../Geoserver';
|
|
6
|
+
import { IGeoserverDescribeFeatureType } from '../../@types';
|
|
7
|
+
import { TransactionType } from '../../@enums';
|
|
8
|
+
/**
|
|
9
|
+
* Base class from which all layer types are derived.
|
|
10
|
+
*/
|
|
11
|
+
export default class BaseLayer extends Layer {
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
_init(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Request and store data layers obtained by DescribeFeatureType
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
getAndUpdateDescribeFeatureType(): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
isVisibleByZoom(): boolean;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @param mode
|
|
30
|
+
* @param features
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
transactFeatures(mode: TransactionType, features: Array<Feature<Geometry>> | Feature<Geometry>): Promise<TransactionResponse | false>;
|
|
34
|
+
insertFeatures(features: Array<Feature<Geometry>> | Feature<Geometry>): Promise<TransactionResponse | false>;
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
* @param featureId
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
40
|
+
maybeLockFeature(featureId: string | number): Promise<string>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @returns
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
getGeoserver(): Geoserver;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @returns
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
getDescribeFeatureType(): IGeoserverDescribeFeatureType;
|
|
53
|
+
}
|
|
54
|
+
export declare enum BaseLayerProperty {
|
|
55
|
+
NAME = "name",
|
|
56
|
+
LABEL = "label",
|
|
57
|
+
DESCRIBEFEATURETYPE = "describeFeatureType",
|
|
58
|
+
ISVISIBLE = "isVisible",
|
|
59
|
+
GEOSERVER = "geoserver"
|
|
60
|
+
}
|
|
61
|
+
export declare type BaseLayerEventTypes = 'layerRendered' | `change:${BaseLayerProperty.DESCRIBEFEATURETYPE}` | `change:${BaseLayerProperty.ISVISIBLE}`;
|
|
62
|
+
//# sourceMappingURL=BaseLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseLayer.d.ts","sourceRoot":"","sources":["../../../src/modules/base/BaseLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,MAAM,eAAe,CAAC;AAElC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAgB,eAAe,EAAE,MAAM,cAAc,CAAC;AAI7D;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,KAAK;IACxC;;OAEG;IACH,KAAK,IAAI,IAAI;IAYb;;;;OAIG;IACG,+BAA+B,IAAI,OAAO,CAAC,IAAI,CAAC;IAqDtD;;;OAGG;IACH,eAAe,IAAI,OAAO;IAI1B;;;;;OAKG;IACG,gBAAgB,CAClB,IAAI,EAAE,eAAe,EACrB,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,GACvD,OAAO,CAAC,mBAAmB,GAAG,KAAK,CAAC;IASjC,cAAc,CAChB,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,GACvD,OAAO,CAAC,mBAAmB,GAAG,KAAK,CAAC;IAIvC;;;;OAIG;IACG,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAYnE;;;;OAIG;IACH,YAAY,IAAI,SAAS;IAIzB;;;;OAIG;IACH,sBAAsB,IAAI,6BAA6B;CAG1D;AAED,oBAAY,iBAAiB;IACzB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,mBAAmB,wBAAwB;IAC3C,SAAS,cAAc;IACvB,SAAS,cAAc;CAC1B;AAED,oBAAY,mBAAmB,GACzB,eAAe,GACf,UAAU,iBAAiB,CAAC,mBAAmB,EAAE,GACjD,UAAU,iBAAiB,CAAC,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import VectorSource, { Options as VSOptions } from 'ol/source/Vector';
|
|
2
|
+
import { WfsGeoserverVendor } from '../../@types';
|
|
3
|
+
import { GeoServerAdvanced } from '../../Geoserver';
|
|
4
|
+
/**
|
|
5
|
+
* Layer source to retrieve WFS features from geoservers
|
|
6
|
+
* https://docs.geoserver.org/stable/en/user/services/wfs/reference.html
|
|
7
|
+
*
|
|
8
|
+
* @extends {ol/source/Vector~VectorSource}
|
|
9
|
+
* @param options
|
|
10
|
+
*/
|
|
11
|
+
export default class WfsSource extends VectorSource {
|
|
12
|
+
urlParams: URLSearchParams;
|
|
13
|
+
constructor(options: WfsSourceOptions);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* **_[interface]_** - Parameters to create a WfsSource
|
|
17
|
+
*
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export interface WfsSourceOptions extends VSOptions {
|
|
21
|
+
/**
|
|
22
|
+
* Layer name in the GeoServer
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* Url for OWS services. This endpoint will recive the WFS, WFST and WMS requests
|
|
27
|
+
*/
|
|
28
|
+
geoserverUrl: string;
|
|
29
|
+
/**
|
|
30
|
+
* Advanced options for geoserver requests
|
|
31
|
+
*/
|
|
32
|
+
geoServerAdvanced?: GeoServerAdvanced;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
geoserverVendor?: WfsGeoserverVendor;
|
|
37
|
+
/**
|
|
38
|
+
* Url headers for GeoServer requests. You can use it to add Authorization credentials
|
|
39
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Request/headers
|
|
40
|
+
*/
|
|
41
|
+
headers?: HeadersInit;
|
|
42
|
+
/**
|
|
43
|
+
* Credentials for fetch requests
|
|
44
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials
|
|
45
|
+
*/
|
|
46
|
+
credentials?: RequestCredentials;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=WfsSource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WfsSource.d.ts","sourceRoot":"","sources":["../../../src/modules/base/WfsSource.ts"],"names":[],"mappings":"AAGA,OAAO,YAAY,EAAE,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAItE,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY;IACxC,SAAS,kBAKb;gBAES,OAAO,EAAE,gBAAgB;CAoFxC;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IAC/C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAEtC;;OAEG;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC;IAErC;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;CACpC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import TileWMS, { Options as TSOptions } from 'ol/source/TileWMS';
|
|
2
|
+
import { WmsGeoserverVendor } from '../../@types';
|
|
3
|
+
import { GeoServerAdvanced } from '../../Geoserver';
|
|
4
|
+
/**
|
|
5
|
+
* Layer source to retrieve WMS information from geoservers
|
|
6
|
+
* https://docs.geoserver.org/stable/en/user/services/wms/reference.html
|
|
7
|
+
*
|
|
8
|
+
* @extends {ol/source/TieWMS~TileWMS}
|
|
9
|
+
* @param options
|
|
10
|
+
*/
|
|
11
|
+
export default class WmsSource extends TileWMS {
|
|
12
|
+
constructor(options: WmsSourceOptions);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* **_[interface]_** - Parameters to create a WmsSource
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export interface WmsSourceOptions extends Omit<TSOptions, 'params'> {
|
|
20
|
+
/**
|
|
21
|
+
* Layer name in the GeoServer
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Url for OWS services. This endpoint will recive the WFS, WFST and WMS requests
|
|
26
|
+
*/
|
|
27
|
+
geoserverUrl: string;
|
|
28
|
+
/**
|
|
29
|
+
* Advanced options for geoserver requests
|
|
30
|
+
*/
|
|
31
|
+
geoServerAdvanced?: GeoServerAdvanced;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
geoserverVendor?: WmsGeoserverVendor;
|
|
36
|
+
/**
|
|
37
|
+
* Url headers for GeoServer requests. You can use it to add Authorization credentials
|
|
38
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Request/headers
|
|
39
|
+
*/
|
|
40
|
+
headers?: HeadersInit;
|
|
41
|
+
/**
|
|
42
|
+
* Credentials for fetch requests
|
|
43
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials
|
|
44
|
+
*/
|
|
45
|
+
credentials?: RequestCredentials;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=WmsSource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WmsSource.d.ts","sourceRoot":"","sources":["../../../src/modules/base/WmsSource.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAKlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,OAAO;gBAC9B,OAAO,EAAE,gBAAgB;CAmDxC;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC;IAC/D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAEtC;;OAEG;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC;IAErC;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editLayer.d.ts","sourceRoot":"","sources":["../../src/modules/editLayer.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAO5C,eAAO,MAAM,YAAY,QAAO,YAAY,YAAY,CAEvD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Options } from '../ol-wfst';
|
|
2
|
+
export declare const initModal: (opts: Options['modal']) => void;
|
|
3
|
+
export declare const parseError: (geoserverError: any) => any;
|
|
4
|
+
/**
|
|
5
|
+
* Show modal with errors
|
|
6
|
+
*
|
|
7
|
+
* @param msg
|
|
8
|
+
* @private
|
|
9
|
+
*/
|
|
10
|
+
export declare const showError: (msg: string, originalError?: Error, layerName?: string) => void;
|
|
11
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/modules/errors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAOrC,eAAO,MAAM,SAAS,SAAU,OAAO,CAAC,OAAO,CAAC,SAE/C,CAAC;AAEF,eAAO,MAAM,UAAU,8BAMtB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,QACb,MAAM,kBACI,KAAK,yBAErB,IAoBF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/modules/helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,yCAgB5B,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/en.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,EAAE,EAAE,IAsChB,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/es.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,EAAE,EAAE,IAuChB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { I18n } from '../../@types';
|
|
2
|
+
export * from './es';
|
|
3
|
+
export * from './en';
|
|
4
|
+
export * from './zh';
|
|
5
|
+
export declare let I18N: I18n;
|
|
6
|
+
export declare const setLang: (lang?: string, customI18n?: I18n) => void;
|
|
7
|
+
/**
|
|
8
|
+
* /**
|
|
9
|
+
* For translations thas has a variable "{}"" to be replaced inside
|
|
10
|
+
* @param string
|
|
11
|
+
* @param args
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare const I18N_: (string: string, ...args: any) => string;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AAarB,eAAO,IAAI,IAAI,EAAE,IAAS,CAAC;AAE3B,eAAO,MAAM,OAAO,+BAA6B,IAAI,KAAU,IAU9D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,WAAY,MAAM,WAAW,GAAG,KAAG,MAepD,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/zh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,EAAE,EAAE,IAsChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../src/modules/loading.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,QAAO,cAK9B,CAAC;AAEF,eAAO,MAAM,WAAW,UAAU,OAAO,SAMxC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import Map from 'ol/Map';
|
|
2
|
+
import { FeatureLike } from 'ol/Feature';
|
|
3
|
+
import WfsLayer from '../WfsLayer';
|
|
4
|
+
import WmsLayer from '../WmsLayer';
|
|
5
|
+
import { IWfstLayersList } from '../@types';
|
|
6
|
+
export declare enum Modes {
|
|
7
|
+
Edit = "EDIT",
|
|
8
|
+
Draw = "DRAW"
|
|
9
|
+
}
|
|
10
|
+
export declare function activateMode(m?: Modes): void;
|
|
11
|
+
export declare function getMode(): any;
|
|
12
|
+
export declare function setMap(m: Map): void;
|
|
13
|
+
export declare function getMap(): Map;
|
|
14
|
+
export declare function setActiveLayerToInsertEls(layer: WmsLayer | WfsLayer): void;
|
|
15
|
+
export declare function getActiveLayerToInsertEls(): WmsLayer | WfsLayer;
|
|
16
|
+
export declare function setMapLayers(data: any): void;
|
|
17
|
+
export declare function getStoredMapLayers(): IWfstLayersList;
|
|
18
|
+
export declare function getStoredLayer(layerName: string): WfsLayer | WmsLayer;
|
|
19
|
+
export declare function addFeatureToEditedList(feature: FeatureLike): void;
|
|
20
|
+
export declare function removeFeatureFromEditList(feature: FeatureLike): void;
|
|
21
|
+
export declare function isFeatureEdited(feature: FeatureLike): boolean;
|
|
22
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/modules/state.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,QAAQ,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAM5C,oBAAY,KAAK;IACb,IAAI,SAAS;IACb,IAAI,SAAS;CAChB;AAED,wBAAgB,YAAY,CAAC,CAAC,GAAE,KAAY,QAE3C;AAED,wBAAgB,OAAO,QAEtB;AAKD,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,QAE5B;AAED,wBAAgB,MAAM,IAAI,GAAG,CAE5B;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,QAAQ,GAAG,QAAQ,QAEnE;AAED,wBAAgB,yBAAyB,IAAI,QAAQ,GAAG,QAAQ,CAE/D;AAED,wBAAgB,YAAY,CAAC,IAAI,KAAA,QAEhC;AAED,wBAAgB,kBAAkB,IAAI,eAAe,CAEpD;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAErE;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAEjE;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAEpE;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAE7D"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Geometry } from 'ol/geom';
|
|
2
|
+
import { Style } from 'ol/style';
|
|
3
|
+
import { Feature } from 'ol';
|
|
4
|
+
/**
|
|
5
|
+
* Master style that handles two modes on the Edit Layer:
|
|
6
|
+
* - one is the basic, showing only the vertices
|
|
7
|
+
* - and the other when modify is active, showing bigger vertices
|
|
8
|
+
*
|
|
9
|
+
* @param feature
|
|
10
|
+
* @private
|
|
11
|
+
*/
|
|
12
|
+
export default function styleFunction(feature: Feature<Geometry>): Array<Style>;
|
|
13
|
+
//# sourceMappingURL=styleFunction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleFunction.d.ts","sourceRoot":"","sources":["../../src/modules/styleFunction.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EAOX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAuC,KAAK,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAO7B;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CACjC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,GAC3B,KAAK,CAAC,KAAK,CAAC,CAuId"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"myPragma.d.ts","sourceRoot":"","sources":["../src/myPragma.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,OAAO,KAAA,EAAE,KAAK,KAAK,EAAE,GAAG,QAAQ,OAAA,OAmCrE"}
|