ol-wfst 4.1.1 → 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 +20 -20
- package/dist/css/ol-wfst.bootstrap5.css +212 -23
- package/dist/css/ol-wfst.bootstrap5.min.css +1 -1
- package/dist/ol-wfst.js +2643 -2599
- package/dist/ol-wfst.js.map +1 -1
- package/dist/ol-wfst.min.js +3 -3
- package/dist/ol-wfst.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/lib/@enums.d.ts +16 -16
- package/lib/@types.d.ts +200 -200
- package/lib/Geoserver.d.ts +274 -274
- package/lib/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 +2638 -2593
- 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 -1
- package/package.json +12 -13
- package/CHANGELOG.md +0 -123
- 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 -275
- 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
package/lib/WfsLayer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WfsLayer.d.ts","sourceRoot":"","sources":["../src/WfsLayer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAI7C,OAAO,SAAS,EAAE,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,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AE,SAAS,EAAE,SAAS,CAAC,GACrD,WAAW,CACL,mBAAmB,GACnB,yBAAyB,GACzB,eAAe,GACf,aAAa,EACf,WAAW,EACX,SAAS,CACZ,GACD,WAAW,CAAC,qBAAqB,EAAE,WAAW,EAAE,SAAS,CAAC,GAC1D,mBAAmB,CACb,UAAU,GACV,mBAAmB,GACnB,yBAAyB,GACzB,eAAe,GACf,aAAa,GACb,qBAAqB,EACvB,SAAS,CACZ,CAAC;IAEE,IAAI,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,GACvD,WAAW,CACL,mBAAmB,GACnB,yBAAyB,GACzB,eAAe,GACf,aAAa,EACf,WAAW,EACX,SAAS,CACZ,GACD,WAAW,CAAC,qBAAqB,EAAE,WAAW,EAAE,SAAS,CAAC,GAC1D,mBAAmB,CACb,UAAU,GACV,mBAAmB,GACnB,yBAAyB,GACzB,eAAe,GACf,aAAa,GACb,qBAAqB,EACvB,SAAS,CACZ,CAAC;IAEE,EAAE,EAAE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,GAChD,WAAW,CACL,mBAAmB,GACnB,yBAAyB,GACzB,eAAe,GACf,aAAa,EACf,WAAW,EACX,IAAI,CACP,GACD,WAAW,CAAC,qBAAqB,EAAE,WAAW,EAAE,IAAI,CAAC,GACrD,mBAAmB,CACb,UAAU,GACV,mBAAmB,GACnB,yBAAyB,GACzB,eAAe,GACf,aAAa,GACb,qBAAqB,EACvB,IAAI,CACP,CAAC;gBAEM,OAAO,EAAE,YAAY;IAsDjC;;OAEG;IACH,OAAO;IAMP;;;;;;;;;;;OAWG;IACH,cAAc,CACV,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,MAAa,EACpB,OAAO,UAAO,GACf,eAAe;CAerB"}
|
package/lib/WmsLayer.d.ts
CHANGED
|
@@ -1,62 +1,69 @@
|
|
|
1
|
-
import MapBrowserEvent from 'ol/MapBrowserEvent.js';
|
|
2
|
-
import TileLayer from 'ol/layer/Tile.js';
|
|
3
|
-
import Geometry from 'ol/geom/Geometry.js';
|
|
4
|
-
import Feature from 'ol/Feature.js';
|
|
5
|
-
import BaseEvent from 'ol/events/Event.js';
|
|
6
|
-
import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable.js';
|
|
7
|
-
import { EventsKey } from 'ol/events.js';
|
|
8
|
-
import { LayerRenderEventTypes } from 'ol/render/EventType.js';
|
|
9
|
-
import { BaseLayerObjectEventTypes } from 'ol/layer/Base.js';
|
|
10
|
-
import { ObjectEvent } from 'ol/Object.js';
|
|
11
|
-
import RenderEvent from 'ol/render/Event.js';
|
|
12
|
-
import WmsSource from './modules/base/WmsSource';
|
|
13
|
-
import BaseLayer, { BaseLayerEventTypes } from './modules/base/BaseLayer';
|
|
14
|
-
import { LayerOptions } from './ol-wfst';
|
|
15
|
-
import { TransactionType } from './@enums';
|
|
16
|
-
declare const WmsLayer_base: import("ts-mixer/dist/types/types").Class<any[], BaseLayer & TileLayer<WmsSource>, typeof BaseLayer & {
|
|
17
|
-
new (options?: import("ol/layer/BaseTile").Options<WmsSource>): TileLayer<WmsSource>;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Layer to retrieve WMS information from geoservers
|
|
21
|
-
* https://docs.geoserver.org/stable/en/user/services/wms/reference.html
|
|
22
|
-
*
|
|
23
|
-
* @fires layerRendered
|
|
24
|
-
* @extends {ol/layer/Tile~TileLayer}
|
|
25
|
-
* @param options
|
|
26
|
-
*/
|
|
27
|
-
export default class WmsLayer extends WmsLayer_base {
|
|
28
|
-
private _loadingCount;
|
|
29
|
-
private _loadedCount;
|
|
30
|
-
beforeTransactFeature: (feature: Feature<Geometry>, transaction: TransactionType) => Feature<Geometry>;
|
|
31
|
-
private _formatGeoJSON;
|
|
32
|
-
on: OnSignature<EventTypes, BaseEvent, EventsKey> & OnSignature<BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError', ObjectEvent, EventsKey> & OnSignature<LayerRenderEventTypes, RenderEvent, EventsKey> & CombinedOnSignature<EventTypes | BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError' | LayerRenderEventTypes, EventsKey>;
|
|
33
|
-
once: OnSignature<EventTypes, BaseEvent, EventsKey> & OnSignature<BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError', ObjectEvent, EventsKey> & OnSignature<LayerRenderEventTypes, RenderEvent, EventsKey> & CombinedOnSignature<EventTypes | BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError' | LayerRenderEventTypes, EventsKey>;
|
|
34
|
-
un: OnSignature<EventTypes, BaseEvent, void> & OnSignature<BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError', ObjectEvent, void> & OnSignature<LayerRenderEventTypes, RenderEvent, void> & CombinedOnSignature<EventTypes | BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError' | LayerRenderEventTypes, void>;
|
|
35
|
-
constructor(options: LayerOptions);
|
|
36
|
-
/**
|
|
37
|
-
* Get the features on the click area
|
|
38
|
-
* @param evt
|
|
39
|
-
* @returns
|
|
40
|
-
* @private
|
|
41
|
-
*/
|
|
42
|
-
_getFeaturesByClickEvent(evt: MapBrowserEvent<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
*
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
1
|
+
import MapBrowserEvent from 'ol/MapBrowserEvent.js';
|
|
2
|
+
import TileLayer from 'ol/layer/Tile.js';
|
|
3
|
+
import Geometry from 'ol/geom/Geometry.js';
|
|
4
|
+
import Feature from 'ol/Feature.js';
|
|
5
|
+
import BaseEvent from 'ol/events/Event.js';
|
|
6
|
+
import { CombinedOnSignature, EventTypes, OnSignature } from 'ol/Observable.js';
|
|
7
|
+
import { EventsKey } from 'ol/events.js';
|
|
8
|
+
import { LayerRenderEventTypes } from 'ol/render/EventType.js';
|
|
9
|
+
import { BaseLayerObjectEventTypes } from 'ol/layer/Base.js';
|
|
10
|
+
import { ObjectEvent } from 'ol/Object.js';
|
|
11
|
+
import RenderEvent from 'ol/render/Event.js';
|
|
12
|
+
import WmsSource from './modules/base/WmsSource';
|
|
13
|
+
import BaseLayer, { BaseLayerEventTypes } from './modules/base/BaseLayer';
|
|
14
|
+
import { LayerOptions } from './ol-wfst';
|
|
15
|
+
import { TransactionType } from './@enums';
|
|
16
|
+
declare const WmsLayer_base: import("ts-mixer/dist/types/types").Class<any[], BaseLayer & TileLayer<WmsSource>, typeof BaseLayer & {
|
|
17
|
+
new (options?: import("ol/layer/BaseTile").Options<WmsSource>): TileLayer<WmsSource>;
|
|
18
|
+
}>;
|
|
19
|
+
/**
|
|
20
|
+
* Layer to retrieve WMS information from geoservers
|
|
21
|
+
* https://docs.geoserver.org/stable/en/user/services/wms/reference.html
|
|
22
|
+
*
|
|
23
|
+
* @fires layerRendered
|
|
24
|
+
* @extends {ol/layer/Tile~TileLayer}
|
|
25
|
+
* @param options
|
|
26
|
+
*/
|
|
27
|
+
export default class WmsLayer extends WmsLayer_base {
|
|
28
|
+
private _loadingCount;
|
|
29
|
+
private _loadedCount;
|
|
30
|
+
beforeTransactFeature: (feature: Feature<Geometry>, transaction: TransactionType) => Feature<Geometry>;
|
|
31
|
+
private _formatGeoJSON;
|
|
32
|
+
on: OnSignature<EventTypes, BaseEvent, EventsKey> & OnSignature<BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError', ObjectEvent, EventsKey> & OnSignature<LayerRenderEventTypes, RenderEvent, EventsKey> & CombinedOnSignature<EventTypes | BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError' | LayerRenderEventTypes, EventsKey>;
|
|
33
|
+
once: OnSignature<EventTypes, BaseEvent, EventsKey> & OnSignature<BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError', ObjectEvent, EventsKey> & OnSignature<LayerRenderEventTypes, RenderEvent, EventsKey> & CombinedOnSignature<EventTypes | BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError' | LayerRenderEventTypes, EventsKey>;
|
|
34
|
+
un: OnSignature<EventTypes, BaseEvent, void> & OnSignature<BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError', ObjectEvent, void> & OnSignature<LayerRenderEventTypes, RenderEvent, void> & CombinedOnSignature<EventTypes | BaseLayerEventTypes | BaseLayerObjectEventTypes | 'sourceready' | 'change:source' | 'change:preload' | 'change:useInterimTilesOnError' | LayerRenderEventTypes, void>;
|
|
35
|
+
constructor(options: LayerOptions);
|
|
36
|
+
/**
|
|
37
|
+
* Get the features on the click area
|
|
38
|
+
* @param evt
|
|
39
|
+
* @returns
|
|
40
|
+
* @private
|
|
41
|
+
*/
|
|
42
|
+
_getFeaturesByClickEvent(evt: MapBrowserEvent<MouseEvent>): Promise<Feature<Geometry>[]>;
|
|
43
|
+
private _parseFeaturesFromResponse;
|
|
44
|
+
/**
|
|
45
|
+
* Return the full accuracy geometry to replace the feature from GetFEatureInfo
|
|
46
|
+
* @param featuresId
|
|
47
|
+
* @returns
|
|
48
|
+
*/
|
|
49
|
+
private _getFullResGeometryById;
|
|
50
|
+
/**
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
refresh(): void;
|
|
54
|
+
/**
|
|
55
|
+
* Use this to update Geoserver Wfs Vendors (https://docs.geoserver.org/latest/en/user/services/wfs/vendor.html)
|
|
56
|
+
* and other arguements (https://docs.geoserver.org/stable/en/user/services/wfs/reference.html)
|
|
57
|
+
* in all the getFeature requests.
|
|
58
|
+
*
|
|
59
|
+
* Example: you can use this to set a cql_filter, limit the numbers of features, etc.
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
* @param paramName
|
|
63
|
+
* @param value
|
|
64
|
+
* @param refresh
|
|
65
|
+
*/
|
|
66
|
+
setCustomParam(paramName: string, value?: string, refresh?: boolean): URLSearchParams;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
62
69
|
//# sourceMappingURL=WmsLayer.d.ts.map
|
package/lib/WmsLayer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WmsLayer.d.ts","sourceRoot":"","sources":["../src/WmsLayer.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,OAAO,MAAM,eAAe,CAAC;AAEpC,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,WAAW,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"WmsLayer.d.ts","sourceRoot":"","sources":["../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;;;;;;OAWG;IACH,cAAc,CACV,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,MAAa,EACpB,OAAO,UAAO,GACf,eAAe;CAarB"}
|
package/lib/defaults.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Options } from './ol-wfst';
|
|
2
|
-
export declare const DEFAULT_LANGUAGE = "en";
|
|
3
|
-
export declare const getDefaultOptions: () => Options;
|
|
1
|
+
import { Options } from './ol-wfst';
|
|
2
|
+
export declare const DEFAULT_LANGUAGE = "en";
|
|
3
|
+
export declare const getDefaultOptions: () => Options;
|
|
4
4
|
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-umd.d.ts","sourceRoot":"","sources":["../src/index-umd.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAY7B,eAAe,IAAI,CAAC"}
|
|
@@ -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,34 @@
|
|
|
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 { 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
34
|
//# sourceMappingURL=LayersControl.d.ts.map
|
package/lib/modules/Uploads.d.ts
CHANGED
|
@@ -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
|