itowns 2.44.3-next.17 → 2.44.3-next.19
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/dist/itowns.js +1 -1
- package/dist/itowns.js.map +1 -1
- package/lib/Parser/XbilParser.js +16 -15
- package/lib/Source/WMSSource.js +2 -2
- package/package.json +1 -1
package/lib/Parser/XbilParser.js
CHANGED
|
@@ -67,22 +67,23 @@ export function computeMinMaxElevation(texture, pitch, options) {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
max = options.zmin;
|
|
77
|
-
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Clamp values to zmin and zmax values configured in ElevationLayer
|
|
73
|
+
if (options.zmin != null) {
|
|
74
|
+
if (min < options.zmin) {
|
|
75
|
+
min = options.zmin;
|
|
78
76
|
}
|
|
79
|
-
if (options.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
if (max < options.zmin) {
|
|
78
|
+
max = options.zmin;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if (options.zmax != null) {
|
|
82
|
+
if (min > options.zmax) {
|
|
83
|
+
min = options.zmax;
|
|
84
|
+
}
|
|
85
|
+
if (max > options.zmax) {
|
|
86
|
+
max = options.zmax;
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
if (max === -Infinity || min === Infinity) {
|
package/lib/Source/WMSSource.js
CHANGED
|
@@ -101,8 +101,8 @@ class WMSSource extends Source {
|
|
|
101
101
|
// 4326 (lat/long) axis order depends on the WMS version used
|
|
102
102
|
if (this.crs == 'EPSG:4326') {
|
|
103
103
|
// EPSG 4326 x = lat, long = y
|
|
104
|
-
// version 1.
|
|
105
|
-
this.axisOrder = this.version === '1.
|
|
104
|
+
// version 1.X.X long/lat while version 1.3.0 mandates xy (so lat,long)
|
|
105
|
+
this.axisOrder = this.version === '1.3.0' ? 'swne' : 'wsen';
|
|
106
106
|
} else {
|
|
107
107
|
// xy,xy order
|
|
108
108
|
this.axisOrder = 'wsen';
|