@opengeoweb/webmap 4.8.0 → 4.10.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/index.esm.js +10 -10
- package/index.umd.js +10 -10
- package/lib/components/WMJSService.d.ts +1 -1
- package/lib/components/types.d.ts +64 -4
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -518,10 +518,10 @@ var addBoundingBoxForLayer = function addBoundingBoxForLayer(layerObjectFromWMS)
|
|
|
518
518
|
if (layerObjectFromWMS.LatLonBoundingBox) {
|
|
519
519
|
var _layerBbox = layerObjectFromWMS.LatLonBoundingBox;
|
|
520
520
|
return {
|
|
521
|
-
east: _layerBbox.attr.maxx
|
|
522
|
-
west: _layerBbox.attr.minx
|
|
523
|
-
north: _layerBbox.attr.maxy
|
|
524
|
-
south: _layerBbox.attr.miny
|
|
521
|
+
east: _layerBbox.attr.maxx,
|
|
522
|
+
west: _layerBbox.attr.minx,
|
|
523
|
+
north: _layerBbox.attr.maxy,
|
|
524
|
+
south: _layerBbox.attr.miny
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
527
|
|
|
@@ -7699,7 +7699,7 @@ rootNode, path) {
|
|
|
7699
7699
|
if (layers[j].Name) {
|
|
7700
7700
|
nodeObject = {
|
|
7701
7701
|
name: layers[j].Name.value,
|
|
7702
|
-
|
|
7702
|
+
title: layers[j].Title.value,
|
|
7703
7703
|
leaf: isleaf,
|
|
7704
7704
|
path: path,
|
|
7705
7705
|
keywords: toArray(layers[j].KeywordList && layers[j].KeywordList.Keyword).map(function (keywords) {
|
|
@@ -7713,7 +7713,7 @@ rootNode, path) {
|
|
|
7713
7713
|
} else {
|
|
7714
7714
|
var nodeText = isNull(layers[j].Title) ? 'Layer' : layers[j].Title.value;
|
|
7715
7715
|
nodeObject = {
|
|
7716
|
-
|
|
7716
|
+
title: nodeText,
|
|
7717
7717
|
leaf: isleaf,
|
|
7718
7718
|
styles: []
|
|
7719
7719
|
};
|
|
@@ -7728,7 +7728,7 @@ rootNode, path) {
|
|
|
7728
7728
|
} // Sort nodes alphabetically.
|
|
7729
7729
|
|
|
7730
7730
|
|
|
7731
|
-
sortByKey(rootNode, '
|
|
7731
|
+
sortByKey(rootNode, 'title');
|
|
7732
7732
|
};
|
|
7733
7733
|
var generatedServiceIds = 0;
|
|
7734
7734
|
|
|
@@ -8038,7 +8038,7 @@ var WMJSService = /*#__PURE__*/function () {
|
|
|
8038
8038
|
leaf: false,
|
|
8039
8039
|
expanded: true,
|
|
8040
8040
|
children: [],
|
|
8041
|
-
|
|
8041
|
+
title: '',
|
|
8042
8042
|
keywords: [],
|
|
8043
8043
|
"abstract": ''
|
|
8044
8044
|
};
|
|
@@ -8055,9 +8055,9 @@ var WMJSService = /*#__PURE__*/function () {
|
|
|
8055
8055
|
var WMSLayers = toArray(rootLayer.Layer);
|
|
8056
8056
|
|
|
8057
8057
|
try {
|
|
8058
|
-
nodeStructure.
|
|
8058
|
+
nodeStructure.title = rootLayer.Title.value;
|
|
8059
8059
|
} catch (e) {
|
|
8060
|
-
nodeStructure.
|
|
8060
|
+
nodeStructure.title = I18n.unnamed_service.text;
|
|
8061
8061
|
}
|
|
8062
8062
|
|
|
8063
8063
|
recursivelyFindLayer(WMSLayers, nodeStructure.children, []);
|
package/index.umd.js
CHANGED
|
@@ -465,10 +465,10 @@
|
|
|
465
465
|
if (layerObjectFromWMS.LatLonBoundingBox) {
|
|
466
466
|
var layerBbox = layerObjectFromWMS.LatLonBoundingBox;
|
|
467
467
|
return {
|
|
468
|
-
east: layerBbox.attr.maxx
|
|
469
|
-
west: layerBbox.attr.minx
|
|
470
|
-
north: layerBbox.attr.maxy
|
|
471
|
-
south: layerBbox.attr.miny
|
|
468
|
+
east: layerBbox.attr.maxx,
|
|
469
|
+
west: layerBbox.attr.minx,
|
|
470
|
+
north: layerBbox.attr.maxy,
|
|
471
|
+
south: layerBbox.attr.miny
|
|
472
472
|
};
|
|
473
473
|
}
|
|
474
474
|
|
|
@@ -7664,7 +7664,7 @@
|
|
|
7664
7664
|
if (layers[j].Name) {
|
|
7665
7665
|
nodeObject = {
|
|
7666
7666
|
name: layers[j].Name.value,
|
|
7667
|
-
|
|
7667
|
+
title: layers[j].Title.value,
|
|
7668
7668
|
leaf: isleaf,
|
|
7669
7669
|
path: path,
|
|
7670
7670
|
keywords: toArray(layers[j].KeywordList && layers[j].KeywordList.Keyword).map(function (keywords) {
|
|
@@ -7678,7 +7678,7 @@
|
|
|
7678
7678
|
} else {
|
|
7679
7679
|
var nodeText = isNull(layers[j].Title) ? 'Layer' : layers[j].Title.value;
|
|
7680
7680
|
nodeObject = {
|
|
7681
|
-
|
|
7681
|
+
title: nodeText,
|
|
7682
7682
|
leaf: isleaf,
|
|
7683
7683
|
styles: []
|
|
7684
7684
|
};
|
|
@@ -7693,7 +7693,7 @@
|
|
|
7693
7693
|
} // Sort nodes alphabetically.
|
|
7694
7694
|
|
|
7695
7695
|
|
|
7696
|
-
sortByKey(rootNode, '
|
|
7696
|
+
sortByKey(rootNode, 'title');
|
|
7697
7697
|
};
|
|
7698
7698
|
var generatedServiceIds = 0;
|
|
7699
7699
|
|
|
@@ -7995,7 +7995,7 @@
|
|
|
7995
7995
|
leaf: false,
|
|
7996
7996
|
expanded: true,
|
|
7997
7997
|
children: [],
|
|
7998
|
-
|
|
7998
|
+
title: '',
|
|
7999
7999
|
keywords: [],
|
|
8000
8000
|
"abstract": ''
|
|
8001
8001
|
};
|
|
@@ -8012,9 +8012,9 @@
|
|
|
8012
8012
|
var WMSLayers = toArray(rootLayer.Layer);
|
|
8013
8013
|
|
|
8014
8014
|
try {
|
|
8015
|
-
nodeStructure.
|
|
8015
|
+
nodeStructure.title = rootLayer.Title.value;
|
|
8016
8016
|
} catch (e) {
|
|
8017
|
-
nodeStructure.
|
|
8017
|
+
nodeStructure.title = I18n.unnamed_service.text;
|
|
8018
8018
|
}
|
|
8019
8019
|
|
|
8020
8020
|
recursivelyFindLayer(WMSLayers, nodeStructure.children, []);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type WMJSDimension from './WMJSDimension';
|
|
2
2
|
import type WMLayer from './WMLayer';
|
|
3
3
|
import type { DateInterval } from './WMTime';
|
|
4
|
+
import { Bbox } from './WMBBOX';
|
|
4
5
|
export declare type WMPosition = {
|
|
5
6
|
x: number;
|
|
6
7
|
y: number;
|
|
@@ -30,6 +31,7 @@ export declare type Dimension = {
|
|
|
30
31
|
timeInterval?: DateInterval;
|
|
31
32
|
synced?: boolean;
|
|
32
33
|
values?: string;
|
|
34
|
+
unitSymbol?: string;
|
|
33
35
|
};
|
|
34
36
|
export interface Style {
|
|
35
37
|
title: string;
|
|
@@ -50,13 +52,67 @@ export declare type WMLayerType = {
|
|
|
50
52
|
title?: string;
|
|
51
53
|
headers?: Headers[];
|
|
52
54
|
};
|
|
55
|
+
export interface CoordinateReferenceSystem {
|
|
56
|
+
name?: string;
|
|
57
|
+
bbox?: Bbox;
|
|
58
|
+
}
|
|
59
|
+
export interface LayerProps {
|
|
60
|
+
name: string | null;
|
|
61
|
+
leaf: boolean;
|
|
62
|
+
path: string[];
|
|
63
|
+
title: string;
|
|
64
|
+
abstract?: string;
|
|
65
|
+
keywords?: string[];
|
|
66
|
+
styles?: Style[];
|
|
67
|
+
dimensions?: Dimension[];
|
|
68
|
+
geographicBoundingBox?: GeographicBoundingBox | undefined;
|
|
69
|
+
queryable?: boolean;
|
|
70
|
+
crs?: CoordinateReferenceSystem[];
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Represents the layers as advertised in the WMS GetCapabilities document
|
|
74
|
+
*/
|
|
75
|
+
export interface LayerTree extends LayerProps {
|
|
76
|
+
children: LayerTree[];
|
|
77
|
+
}
|
|
78
|
+
export interface WMSBoundingBox {
|
|
79
|
+
attr: {
|
|
80
|
+
SRS?: string;
|
|
81
|
+
CRS?: string;
|
|
82
|
+
maxy: string;
|
|
83
|
+
miny: string;
|
|
84
|
+
maxx: string;
|
|
85
|
+
minx: string;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
53
88
|
/**
|
|
54
89
|
* This interface is for reading from the WMS GetCapabilties document, which can have different structures for V1.1.1 and V1.3.0
|
|
55
90
|
*/
|
|
56
91
|
export interface WMSLayerFromGetCapabilities {
|
|
92
|
+
attr: {
|
|
93
|
+
queryable: string;
|
|
94
|
+
opaque: string;
|
|
95
|
+
cascaded: string;
|
|
96
|
+
};
|
|
97
|
+
Name: {
|
|
98
|
+
attr: any;
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
101
|
+
Title: {
|
|
102
|
+
attr: any;
|
|
103
|
+
value: string;
|
|
104
|
+
};
|
|
57
105
|
Dimension: unknown;
|
|
58
106
|
Style: unknown;
|
|
59
107
|
Extent: unknown;
|
|
108
|
+
ScaleHint: unknown;
|
|
109
|
+
Abstract: {
|
|
110
|
+
value: string;
|
|
111
|
+
};
|
|
112
|
+
KeywordList: {
|
|
113
|
+
Keyword: unknown;
|
|
114
|
+
};
|
|
115
|
+
Layer: WMSLayerFromGetCapabilities | WMSLayerFromGetCapabilities[];
|
|
60
116
|
EX_GeographicBoundingBox?: {
|
|
61
117
|
northBoundLatitude: any;
|
|
62
118
|
southBoundLatitude: any;
|
|
@@ -65,10 +121,14 @@ export interface WMSLayerFromGetCapabilities {
|
|
|
65
121
|
};
|
|
66
122
|
LatLonBoundingBox?: {
|
|
67
123
|
attr: {
|
|
68
|
-
maxy:
|
|
69
|
-
miny:
|
|
70
|
-
maxx:
|
|
71
|
-
minx:
|
|
124
|
+
maxy: string;
|
|
125
|
+
miny: string;
|
|
126
|
+
maxx: string;
|
|
127
|
+
minx: string;
|
|
72
128
|
};
|
|
73
129
|
};
|
|
130
|
+
BoundingBox?: WMSBoundingBox[];
|
|
131
|
+
SRS?: {
|
|
132
|
+
value: string;
|
|
133
|
+
}[];
|
|
74
134
|
}
|