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,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,48 @@
|
|
|
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 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
48
|
//# sourceMappingURL=WfsSource.d.ts.map
|
|
@@ -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
|
package/lib/modules/errors.d.ts
CHANGED
|
@@ -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
|
package/lib/modules/helpers.d.ts
CHANGED
|
@@ -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
|
package/lib/modules/i18n/en.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { I18n } from '../../ol-wfst';
|
|
2
|
-
export declare const en: I18n;
|
|
1
|
+
import { I18n } from '../../ol-wfst';
|
|
2
|
+
export declare const en: I18n;
|
|
3
3
|
//# sourceMappingURL=en.d.ts.map
|
package/lib/modules/i18n/es.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { I18n } from '../../ol-wfst';
|
|
2
|
-
export declare const es: I18n;
|
|
1
|
+
import { I18n } from '../../ol-wfst';
|
|
2
|
+
export declare const es: I18n;
|
|
3
3
|
//# sourceMappingURL=es.d.ts.map
|
|
@@ -1,15 +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;
|
|
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
15
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/modules/i18n/zh.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { I18n } from '../../ol-wfst';
|
|
2
|
-
export declare const zh: I18n;
|
|
1
|
+
import { I18n } from '../../ol-wfst';
|
|
2
|
+
export declare const zh: I18n;
|
|
3
3
|
//# sourceMappingURL=zh.d.ts.map
|
package/lib/modules/loading.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const initLoading: () => HTMLDivElement;
|
|
2
|
-
export declare const showLoading: (bool?: boolean) => void;
|
|
1
|
+
export declare const initLoading: () => HTMLDivElement;
|
|
2
|
+
export declare const showLoading: (bool?: boolean) => void;
|
|
3
3
|
//# sourceMappingURL=loading.d.ts.map
|
package/lib/modules/state.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
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;
|
|
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
22
|
//# sourceMappingURL=state.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
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>;
|
|
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
13
|
//# sourceMappingURL=styleFunction.d.ts.map
|
package/lib/myPragma.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function createElement(tagName: any, attrs?: {}, ...children: any[]): any;
|
|
1
|
+
export default function createElement(tagName: any, attrs?: {}, ...children: any[]): any;
|
|
2
2
|
//# sourceMappingURL=myPragma.d.ts.map
|