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.
@@ -67,22 +67,23 @@ export function computeMinMaxElevation(texture, pitch, options) {
67
67
  }
68
68
  }
69
69
  }
70
- // Clamp values to zmin and zmax values configured in ElevationLayer
71
- if (options.zmin != null) {
72
- if (min < options.zmin) {
73
- min = options.zmin;
74
- }
75
- if (max < options.zmin) {
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.zmax != null) {
80
- if (min > options.zmax) {
81
- min = options.zmax;
82
- }
83
- if (max > options.zmax) {
84
- max = options.zmax;
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) {
@@ -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.1.0 long/lat while version 1.3.0 mandates xy (so lat,long)
105
- this.axisOrder = this.version === '1.1.0' ? 'wsen' : 'swne';
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itowns",
3
- "version": "2.44.3-next.17",
3
+ "version": "2.44.3-next.19",
4
4
  "description": "A JS/WebGL framework for 3D geospatial data visualization",
5
5
  "type": "module",
6
6
  "main": "lib/Main.js",