mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-24 13:00:26 +01:00
Merge pull request #8322 from rbuffat/fix_wms_axis_ordering_detection
Fix wms detection to determine axis ordering
This commit is contained in:
@@ -174,7 +174,7 @@ export function rendererBackgroundSource(data) {
|
||||
// WMS 1.3 flips x/y for some coordinate systems including EPSG:4326 - #7557
|
||||
if (projection === 'EPSG:4326' &&
|
||||
// The CRS parameter implies version 1.3 (prior versions use SRS)
|
||||
/VERSION=1.3|CRS={proj}/.test(source.template())) {
|
||||
/VERSION=1.3|CRS={proj}/.test(source.template().toUpperCase())) {
|
||||
return maxXminY.y + ',' + minXmaxY.x + ',' + minXmaxY.y + ',' + maxXminY.x;
|
||||
} else {
|
||||
return minXmaxY.x + ',' + maxXminY.y + ',' + maxXminY.x + ',' + minXmaxY.y;
|
||||
|
||||
Reference in New Issue
Block a user