Skip to content

Commit 0499f95

Browse files
airnezDesplandis
authored andcommitted
fix(wms): take wms 1.1.1 version into account for axis order
1 parent 8df42d2 commit 0499f95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Source/WMSSource.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ class WMSSource extends Source {
106106
// 4326 (lat/long) axis order depends on the WMS version used
107107
if (this.crs == 'EPSG:4326') {
108108
// EPSG 4326 x = lat, long = y
109-
// version 1.1.0 long/lat while version 1.3.0 mandates xy (so lat,long)
110-
this.axisOrder = (this.version === '1.1.0' ? 'wsen' : 'swne');
109+
// version 1.X.X long/lat while version 1.3.0 mandates xy (so lat,long)
110+
this.axisOrder = (this.version === '1.3.0' ? 'swne' : 'wsen');
111111
} else {
112112
// xy,xy order
113113
this.axisOrder = 'wsen';

0 commit comments

Comments
 (0)