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.
Files changed (88) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +10 -11
  3. package/dist/@enums.d.ts +16 -16
  4. package/dist/@types.d.ts +200 -200
  5. package/dist/Geoserver.d.ts +274 -274
  6. package/dist/Geoserver.d.ts.map +1 -1
  7. package/dist/WfsLayer.d.ts +52 -52
  8. package/dist/WfsLayer.d.ts.map +1 -1
  9. package/dist/WmsLayer.d.ts +68 -61
  10. package/dist/WmsLayer.d.ts.map +1 -1
  11. package/dist/css/ol-wfst.bootstrap5.css +227 -38
  12. package/dist/css/ol-wfst.bootstrap5.min.css +1 -1
  13. package/dist/css/ol-wfst.css +24 -39
  14. package/dist/css/ol-wfst.min.css +1 -1
  15. package/dist/defaults.d.ts +3 -3
  16. package/dist/index-umd.d.ts +3 -0
  17. package/dist/index-umd.d.ts.map +1 -0
  18. package/dist/modules/EditControlChanges.d.ts +17 -17
  19. package/dist/modules/EditFieldsModal.d.ts +18 -18
  20. package/dist/modules/EditOverlay.d.ts +7 -7
  21. package/dist/modules/LayersControl.d.ts +37 -33
  22. package/dist/modules/LayersControl.d.ts.map +1 -1
  23. package/dist/modules/Uploads.d.ts +49 -49
  24. package/dist/modules/base/BaseLayer.d.ts +61 -61
  25. package/dist/modules/base/WfsSource.d.ts +48 -47
  26. package/dist/modules/base/WfsSource.d.ts.map +1 -1
  27. package/dist/modules/base/WmsSource.d.ts +46 -46
  28. package/dist/modules/editLayer.d.ts +3 -3
  29. package/dist/modules/errors.d.ts +11 -11
  30. package/dist/modules/helpers.d.ts +6 -6
  31. package/dist/modules/i18n/en.d.ts +2 -2
  32. package/dist/modules/i18n/es.d.ts +2 -2
  33. package/dist/modules/i18n/index.d.ts +14 -14
  34. package/dist/modules/i18n/zh.d.ts +2 -2
  35. package/dist/modules/loading.d.ts +2 -2
  36. package/dist/modules/state.d.ts +21 -21
  37. package/dist/modules/styleFunction.d.ts +12 -12
  38. package/dist/myPragma.d.ts +1 -1
  39. package/dist/ol-wfst.d.ts +334 -336
  40. package/dist/ol-wfst.d.ts.map +1 -1
  41. package/dist/ol-wfst.js +2656 -2599
  42. package/dist/ol-wfst.js.map +1 -1
  43. package/dist/ol-wfst.min.js +3 -3
  44. package/dist/ol-wfst.min.js.map +1 -1
  45. package/lib/@enums.d.ts +16 -16
  46. package/lib/@types.d.ts +200 -200
  47. package/lib/Geoserver.d.ts +274 -274
  48. package/lib/Geoserver.d.ts.map +1 -1
  49. package/lib/WfsLayer.d.ts +52 -52
  50. package/lib/WfsLayer.d.ts.map +1 -1
  51. package/lib/WmsLayer.d.ts +68 -61
  52. package/lib/WmsLayer.d.ts.map +1 -1
  53. package/lib/defaults.d.ts +3 -3
  54. package/lib/index-umd.d.ts +3 -0
  55. package/lib/index-umd.d.ts.map +1 -0
  56. package/lib/modules/EditControlChanges.d.ts +17 -17
  57. package/lib/modules/EditFieldsModal.d.ts +18 -18
  58. package/lib/modules/EditOverlay.d.ts +7 -7
  59. package/lib/modules/LayersControl.d.ts +37 -33
  60. package/lib/modules/LayersControl.d.ts.map +1 -1
  61. package/lib/modules/Uploads.d.ts +49 -49
  62. package/lib/modules/base/BaseLayer.d.ts +61 -61
  63. package/lib/modules/base/WfsSource.d.ts +48 -47
  64. package/lib/modules/base/WfsSource.d.ts.map +1 -1
  65. package/lib/modules/base/WmsSource.d.ts +46 -46
  66. package/lib/modules/editLayer.d.ts +3 -3
  67. package/lib/modules/errors.d.ts +11 -11
  68. package/lib/modules/helpers.d.ts +6 -6
  69. package/lib/modules/i18n/en.d.ts +2 -2
  70. package/lib/modules/i18n/es.d.ts +2 -2
  71. package/lib/modules/i18n/index.d.ts +14 -14
  72. package/lib/modules/i18n/zh.d.ts +2 -2
  73. package/lib/modules/loading.d.ts +2 -2
  74. package/lib/modules/state.d.ts +21 -21
  75. package/lib/modules/styleFunction.d.ts +12 -12
  76. package/lib/myPragma.d.ts +1 -1
  77. package/lib/ol-wfst.d.ts +334 -336
  78. package/lib/ol-wfst.d.ts.map +1 -1
  79. package/lib/ol-wfst.js +2651 -2593
  80. package/lib/ol-wfst.js.map +1 -1
  81. package/lib/style/css/ol-gisify.css +24 -39
  82. package/lib/style/css/ol-wfst.bootstrap5.css +227 -38
  83. package/lib/style/scss/-ol-wfst.bootstrap5.scss +3 -0
  84. package/lib/style/scss/ol-wfst.scss +81 -58
  85. package/package.json +15 -16
  86. package/CHANGELOG.md +0 -123
  87. package/dist/tsconfig.tsbuildinfo +0 -1
  88. package/lib/tsconfig.tsbuildinfo +0 -1
@@ -1,18 +1,18 @@
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 {};
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
18
  //# sourceMappingURL=EditControlChanges.d.ts.map
@@ -1,19 +1,19 @@
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
- }
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
19
  //# sourceMappingURL=EditFieldsModal.d.ts.map
@@ -1,8 +1,8 @@
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
- }
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
8
  //# sourceMappingURL=EditOverlay.d.ts.map
@@ -1,34 +1,38 @@
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
- }
1
+ import Observable from 'ol/Observable.js';
2
+ import { Options, WfsLayer, WmsLayer } from '../ol-wfst';
3
+ import Uploads from './Uploads';
4
+ /**
5
+ * Removes in the DOM the class of the tools
6
+ * @private
7
+ */
8
+ export declare const resetStateButtons: () => void;
9
+ export declare const activateModeButtons: () => void;
10
+ export declare const activateDrawButton: () => void;
11
+ export default class LayersControl extends Observable {
12
+ protected _uploads: Uploads;
13
+ protected _uploadFormats: Options['uploadFormats'];
14
+ constructor(uploads: Uploads, uploadFormats: Options['uploadFormats']);
15
+ /**
16
+ *
17
+ * @param layer
18
+ * @public
19
+ */
20
+ addLayerEl(layer: WfsLayer | WmsLayer): HTMLElement;
21
+ /**
22
+ * Update geom Types availibles to select for this layer
23
+ *
24
+ * @param layerName
25
+ * @param geomDrawTypeSelected
26
+ * @private
27
+ */
28
+ private _changeStateSelect;
29
+ private _visibilityClickHandler;
30
+ /**
31
+ * Called when a layer is selected in the widget
32
+ * @param evt
33
+ * @param layer
34
+ */
35
+ private _layerChangeHandler;
36
+ render(): HTMLElement;
37
+ }
34
38
  //# sourceMappingURL=LayersControl.d.ts.map
@@ -1 +1 @@
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
+ {"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;AAczD,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;IAwEnD;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB;IAiE1B,OAAO,CAAC,uBAAuB;IAa/B;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAiB3B,MAAM,IAAI,WAAW;CAiExB"}
@@ -1,50 +1,50 @@
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
- }
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
50
  //# sourceMappingURL=Uploads.d.ts.map
@@ -1,62 +1,62 @@
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}`;
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
62
  //# sourceMappingURL=BaseLayer.d.ts.map
@@ -1,48 +1,49 @@
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
- }
1
+ import Feature from 'ol/Feature.js';
2
+ import VectorSource, { Options as VSOptions } from 'ol/source/Vector.js';
3
+ import { WfsGeoserverVendor } from '../../@types';
4
+ import { GeoServerAdvanced } from '../../Geoserver';
5
+ /**
6
+ * Layer source to retrieve WFS features from geoservers
7
+ * https://docs.geoserver.org/stable/en/user/services/wfs/reference.html
8
+ *
9
+ * @extends {ol/source/Vector~VectorSource}
10
+ * @param options
11
+ */
12
+ export default class WfsSource extends VectorSource {
13
+ urlParams: URLSearchParams;
14
+ constructor(options: WfsSourceOptions);
15
+ }
16
+ /**
17
+ * **_[interface]_** - Parameters to create a WfsSource
18
+ *
19
+ * @public
20
+ */
21
+ export interface WfsSourceOptions extends VSOptions<Feature> {
22
+ /**
23
+ * Layer name in the GeoServer
24
+ */
25
+ name: string;
26
+ /**
27
+ * Url for OWS services. This endpoint will recive the WFS, WFST and WMS requests
28
+ */
29
+ geoserverUrl: string;
30
+ /**
31
+ * Advanced options for geoserver requests
32
+ */
33
+ geoServerAdvanced?: GeoServerAdvanced;
34
+ /**
35
+ *
36
+ */
37
+ geoserverVendor?: WfsGeoserverVendor;
38
+ /**
39
+ * Url headers for GeoServer requests. You can use it to add Authorization credentials
40
+ * https://developer.mozilla.org/en-US/docs/Web/API/Request/headers
41
+ */
42
+ headers?: HeadersInit;
43
+ /**
44
+ * Credentials for fetch requests
45
+ * https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials
46
+ */
47
+ credentials?: RequestCredentials;
48
+ }
48
49
  //# sourceMappingURL=WfsSource.d.ts.map
@@ -1 +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,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
+ {"version":3,"file":"WfsSource.d.ts","sourceRoot":"","sources":["../../../src/modules/base/WfsSource.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AAGpC,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,CAAC,OAAO,CAAC;IACxD;;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 +1,47 @@
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
- }
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
47
  //# sourceMappingURL=WmsSource.d.ts.map
@@ -1,4 +1,4 @@
1
- import VectorLayer from 'ol/layer/Vector.js';
2
- import VectorSource from 'ol/source/Vector.js';
3
- export declare const getEditLayer: () => VectorLayer<VectorSource>;
1
+ import VectorLayer from 'ol/layer/Vector.js';
2
+ import VectorSource from 'ol/source/Vector.js';
3
+ export declare const getEditLayer: () => VectorLayer<VectorSource>;
4
4
  //# sourceMappingURL=editLayer.d.ts.map
@@ -1,12 +1,12 @@
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;
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
12
  //# sourceMappingURL=errors.d.ts.map
@@ -1,7 +1,7 @@
1
- /**
2
- * @param target
3
- * @param sources
4
- * @returns
5
- */
6
- export declare const deepObjectAssign: (target: any, ...sources: any[]) => any;
1
+ /**
2
+ * @param target
3
+ * @param sources
4
+ * @returns
5
+ */
6
+ export declare const deepObjectAssign: (target: any, ...sources: any[]) => any;
7
7
  //# sourceMappingURL=helpers.d.ts.map