From 0499f9540175d8f75bb1476364cd95d70c39be83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ir=C3=A9n=C3=A9e=20Dubourg?= Date: Fri, 8 Nov 2024 17:08:36 +0100 Subject: [PATCH] fix(wms): take wms 1.1.1 version into account for axis order --- src/Source/WMSSource.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Source/WMSSource.js b/src/Source/WMSSource.js index 16050a87bc..c6217165da 100644 --- a/src/Source/WMSSource.js +++ b/src/Source/WMSSource.js @@ -106,8 +106,8 @@ class WMSSource extends Source { // 4326 (lat/long) axis order depends on the WMS version used if (this.crs == 'EPSG:4326') { // EPSG 4326 x = lat, long = y - // version 1.1.0 long/lat while version 1.3.0 mandates xy (so lat,long) - this.axisOrder = (this.version === '1.1.0' ? 'wsen' : 'swne'); + // version 1.X.X long/lat while version 1.3.0 mandates xy (so lat,long) + this.axisOrder = (this.version === '1.3.0' ? 'swne' : 'wsen'); } else { // xy,xy order this.axisOrder = 'wsen';