Skip to content

Commit

Permalink
fix(wms): take wms 1.1.1 version into account for axis order
Browse files Browse the repository at this point in the history
  • Loading branch information
airnez authored and Desplandis committed Nov 15, 2024
1 parent 8df42d2 commit 0499f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Source/WMSSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 0499f95

Please sign in to comment.