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.
- package/README.md +801 -794
- package/dist/css/ol-wfst.bootstrap5.css +212 -23
- package/dist/css/ol-wfst.bootstrap5.min.css +1 -1
- package/dist/ol-wfst.js +3468 -2595
- package/dist/ol-wfst.js.map +1 -1
- package/dist/ol-wfst.min.js +6 -1
- package/dist/ol-wfst.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/lib/@enums.d.ts +16 -16
- package/lib/@types.d.ts +200 -200
- package/lib/Geoserver.d.ts +274 -267
- 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 +33 -33
- package/lib/modules/Uploads.d.ts +49 -49
- package/lib/modules/base/BaseLayer.d.ts +61 -61
- package/lib/modules/base/WfsSource.d.ts +47 -47
- 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 +336 -336
- package/lib/ol-wfst.d.ts.map +1 -1
- package/lib/ol-wfst.js +2642 -2560
- package/lib/ol-wfst.js.map +1 -1
- package/lib/style/css/ol-wfst.bootstrap5.css +212 -23
- package/lib/style/scss/-ol-wfst.bootstrap5.scss +3 -0
- package/lib/style/scss/ol-wfst.scss +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +13 -12
- package/dist/@enums.d.ts +0 -17
- package/dist/@enums.d.ts.map +0 -1
- package/dist/@types.d.ts +0 -201
- package/dist/@types.d.ts.map +0 -1
- package/dist/Geoserver.d.ts +0 -268
- package/dist/Geoserver.d.ts.map +0 -1
- package/dist/WfsLayer.d.ts +0 -53
- package/dist/WfsLayer.d.ts.map +0 -1
- package/dist/WmsLayer.d.ts +0 -62
- package/dist/WmsLayer.d.ts.map +0 -1
- package/dist/defaults.d.ts +0 -4
- package/dist/defaults.d.ts.map +0 -1
- package/dist/modules/EditControlChanges.d.ts +0 -18
- package/dist/modules/EditControlChanges.d.ts.map +0 -1
- package/dist/modules/EditFieldsModal.d.ts +0 -19
- package/dist/modules/EditFieldsModal.d.ts.map +0 -1
- package/dist/modules/EditOverlay.d.ts +0 -8
- package/dist/modules/EditOverlay.d.ts.map +0 -1
- package/dist/modules/LayersControl.d.ts +0 -34
- package/dist/modules/LayersControl.d.ts.map +0 -1
- package/dist/modules/Uploads.d.ts +0 -50
- package/dist/modules/Uploads.d.ts.map +0 -1
- package/dist/modules/base/BaseLayer.d.ts +0 -62
- package/dist/modules/base/BaseLayer.d.ts.map +0 -1
- package/dist/modules/base/WfsSource.d.ts +0 -48
- package/dist/modules/base/WfsSource.d.ts.map +0 -1
- package/dist/modules/base/WmsSource.d.ts +0 -47
- package/dist/modules/base/WmsSource.d.ts.map +0 -1
- package/dist/modules/editLayer.d.ts +0 -4
- package/dist/modules/editLayer.d.ts.map +0 -1
- package/dist/modules/errors.d.ts +0 -12
- package/dist/modules/errors.d.ts.map +0 -1
- package/dist/modules/helpers.d.ts +0 -7
- package/dist/modules/helpers.d.ts.map +0 -1
- package/dist/modules/i18n/en.d.ts +0 -3
- package/dist/modules/i18n/en.d.ts.map +0 -1
- package/dist/modules/i18n/es.d.ts +0 -3
- package/dist/modules/i18n/es.d.ts.map +0 -1
- package/dist/modules/i18n/index.d.ts +0 -15
- package/dist/modules/i18n/index.d.ts.map +0 -1
- package/dist/modules/i18n/zh.d.ts +0 -3
- package/dist/modules/i18n/zh.d.ts.map +0 -1
- package/dist/modules/loading.d.ts +0 -3
- package/dist/modules/loading.d.ts.map +0 -1
- package/dist/modules/state.d.ts +0 -22
- package/dist/modules/state.d.ts.map +0 -1
- package/dist/modules/styleFunction.d.ts +0 -13
- package/dist/modules/styleFunction.d.ts.map +0 -1
- package/dist/myPragma.d.ts +0 -2
- package/dist/myPragma.d.ts.map +0 -1
- package/dist/ol-wfst.d.ts +0 -337
- package/dist/ol-wfst.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditFieldsModal.d.ts","sourceRoot":"","sources":["../../src/modules/EditFieldsModal.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAI3C,OAAO,KAAK,MAAM,eAAe,CAAC;AAGlC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC;;;;;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"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import Geometry from 'ol/geom/Geometry.js';
|
|
2
|
-
import Feature from 'ol/Feature.js';
|
|
3
|
-
import Overlay from 'ol/Overlay.js';
|
|
4
|
-
import { Coordinate } from 'ol/coordinate.js';
|
|
5
|
-
export default class EditOverlay extends Overlay {
|
|
6
|
-
constructor(feature: Feature<Geometry>, coordinate?: Coordinate);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=EditOverlay.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditOverlay.d.ts","sourceRoot":"","sources":["../../src/modules/EditOverlay.tsx"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAS9C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,OAAO;gBAChC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAE,UAAiB;CAgDxE"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import Observable from 'ol/Observable.js';
|
|
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 default class LayersControl extends Observable {
|
|
13
|
-
protected _uploads: Uploads;
|
|
14
|
-
protected _uploadFormats: Options['uploadFormats'];
|
|
15
|
-
constructor(uploads: Uploads, uploadFormats: Options['uploadFormats']);
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @param layer
|
|
19
|
-
* @public
|
|
20
|
-
*/
|
|
21
|
-
addLayerEl(layer: WfsLayer | WmsLayer): HTMLElement;
|
|
22
|
-
/**
|
|
23
|
-
* Update geom Types availibles to select for this layer
|
|
24
|
-
*
|
|
25
|
-
* @param layerName
|
|
26
|
-
* @param geomDrawTypeSelected
|
|
27
|
-
* @private
|
|
28
|
-
*/
|
|
29
|
-
_changeStateSelect(layer: WmsLayer | WfsLayer, geomDrawTypeSelected?: GeometryType): GeometryType;
|
|
30
|
-
_visibilityClickHandler(evt: any): void;
|
|
31
|
-
_layerChangeHandler(evt: any, layer: any): void;
|
|
32
|
-
render(): HTMLElement;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=LayersControl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LayersControl.d.ts","sourceRoot":"","sources":["../../src/modules/LayersControl.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAOzD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAOzC,OAAO,OAAO,MAAM,WAAW,CAAC;AAKhC;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,IAOpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAK/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAK9B,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,GAAG,WAAW;IAoEnD;;;;;;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;CAiExB"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Geometry } from 'ol/geom.js';
|
|
2
|
-
import Feature from 'ol/Feature.js';
|
|
3
|
-
import Observable from 'ol/Observable.js';
|
|
4
|
-
import GeoJSON from 'ol/format/GeoJSON.js';
|
|
5
|
-
import KML from 'ol/format/KML.js';
|
|
6
|
-
import WFS from 'ol/format/WFS.js';
|
|
7
|
-
import { Options } from '../ol-wfst';
|
|
8
|
-
export default class Uploads extends Observable {
|
|
9
|
-
protected _options: Options;
|
|
10
|
-
protected _formatWFS: WFS;
|
|
11
|
-
protected _formatGeoJSON: GeoJSON;
|
|
12
|
-
protected _formatKml: KML;
|
|
13
|
-
protected _xs: XMLSerializer;
|
|
14
|
-
protected _processUpload: Options['processUpload'];
|
|
15
|
-
constructor(options: Options);
|
|
16
|
-
/**
|
|
17
|
-
* Parse and check geometry of uploaded files
|
|
18
|
-
*
|
|
19
|
-
* @param evt
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
process(evt: Event): Promise<void>;
|
|
23
|
-
/**
|
|
24
|
-
* Read data file
|
|
25
|
-
* @param file
|
|
26
|
-
* @public
|
|
27
|
-
*/
|
|
28
|
-
_fileReader(file: File): Promise<string>;
|
|
29
|
-
/**
|
|
30
|
-
* Attemp to change the geometry feature to the layer
|
|
31
|
-
* @param feature
|
|
32
|
-
* @private
|
|
33
|
-
*/
|
|
34
|
-
_fixGeometry(feature: Feature<Geometry>): Feature<Geometry>;
|
|
35
|
-
/**
|
|
36
|
-
* Check if the feature has the same geometry as the target layer
|
|
37
|
-
* @param feature
|
|
38
|
-
* @private
|
|
39
|
-
*/
|
|
40
|
-
_checkGeometry(feature: Feature<Geometry>): boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Confirm modal before transact to the GeoServer the features in the file
|
|
43
|
-
*
|
|
44
|
-
* @param content
|
|
45
|
-
* @param featuresToInsert
|
|
46
|
-
* @private
|
|
47
|
-
*/
|
|
48
|
-
_initModal(content: string, featuresToInsert: Array<Feature<Geometry>>): void;
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=Uploads.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Uploads.d.ts","sourceRoot":"","sources":["../../src/modules/Uploads.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EAOX,MAAM,YAAY,CAAC;AACpB,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,OAAO,GAAG,MAAM,kBAAkB,CAAC;AAOnC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAQrC,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"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import Feature from 'ol/Feature.js';
|
|
2
|
-
import Geometry from 'ol/geom/Geometry.js';
|
|
3
|
-
import { TransactionResponse } from 'ol/format/WFS.js';
|
|
4
|
-
import Layer from 'ol/layer/Base.js';
|
|
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 type BaseLayerEventTypes = 'layerRendered' | `change:${BaseLayerProperty.DESCRIBEFEATURETYPE}` | `change:${BaseLayerProperty.ISVISIBLE}`;
|
|
62
|
-
//# sourceMappingURL=BaseLayer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseLayer.d.ts","sourceRoot":"","sources":["../../../src/modules/base/BaseLayer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,MAAM,kBAAkB,CAAC;AAErC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAgB,eAAe,EAAE,MAAM,cAAc,CAAC;AAM7D;;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;IAyDtD;;;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,MAAM,MAAM,mBAAmB,GACzB,eAAe,GACf,UAAU,iBAAiB,CAAC,mBAAmB,EAAE,GACjD,UAAU,iBAAiB,CAAC,SAAS,EAAE,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import VectorSource, { Options as VSOptions } from 'ol/source/Vector.js';
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,qBAAqB,CAAC;AAIzE,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"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import TileWMS, { Options as TSOptions } from 'ol/source/TileWMS.js';
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,sBAAsB,CAAC;AAIrE,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editLayer.d.ts","sourceRoot":"","sources":["../../src/modules/editLayer.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAO/C,eAAO,MAAM,YAAY,QAAO,YAAY,YAAY,CAEvD,CAAC"}
|
package/dist/modules/errors.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Options } from '../ol-wfst';
|
|
2
|
-
import { IGeoserverDescribeFeatureType } from '../@types';
|
|
3
|
-
export declare const initModal: (opts: Options['modal']) => void;
|
|
4
|
-
export declare const parseError: (geoserverResponse: IGeoserverDescribeFeatureType) => string;
|
|
5
|
-
/**
|
|
6
|
-
* Show modal with errors
|
|
7
|
-
*
|
|
8
|
-
* @param msg
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
export declare const showError: (msg: string, originalError?: Error, layerName?: string) => void;
|
|
12
|
-
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/modules/errors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAsB,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAM9E,eAAO,MAAM,SAAS,SAAU,OAAO,CAAC,OAAO,CAAC,SAE/C,CAAC;AAEF,eAAO,MAAM,UAAU,sBACA,6BAA6B,WASnD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,QACb,MAAM,kBACI,KAAK,yBAErB,IAoBF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/modules/helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,yCAgB5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/modules/state.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import Map from 'ol/Map.js';
|
|
2
|
-
import { FeatureLike } from 'ol/Feature.js';
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/modules/state.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Geometry } from 'ol/geom.js';
|
|
2
|
-
import { Style } from 'ol/style.js';
|
|
3
|
-
import Feature from 'ol/Feature.js';
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styleFunction.d.ts","sourceRoot":"","sources":["../../src/modules/styleFunction.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EAOX,MAAM,YAAY,CAAC;AACpB,OAAO,EAAuC,KAAK,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,OAAwB,MAAM,eAAe,CAAC;AAMrD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CACjC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,GAC3B,KAAK,CAAC,KAAK,CAAC,CAuId"}
|
package/dist/myPragma.d.ts
DELETED
package/dist/myPragma.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|