Add another alternative identifier for EPSG:3857

This commit is contained in:
Tim Schaub
2021-08-08 12:13:19 -06:00
parent 22a48fe939
commit 73bb89f196
2 changed files with 4 additions and 1 deletions

View File

@@ -71,6 +71,7 @@ export const PROJECTIONS = [
new EPSG3857Projection('EPSG:102100'), new EPSG3857Projection('EPSG:102100'),
new EPSG3857Projection('EPSG:102113'), new EPSG3857Projection('EPSG:102113'),
new EPSG3857Projection('EPSG:900913'), new EPSG3857Projection('EPSG:900913'),
new EPSG3857Projection('http://www.opengis.net/def/crs/EPSG/0/3857'),
new EPSG3857Projection('http://www.opengis.net/gml/srs/epsg.xml#3857'), new EPSG3857Projection('http://www.opengis.net/gml/srs/epsg.xml#3857'),
]; ];

View File

@@ -190,12 +190,14 @@ describe('ol/proj.js', function () {
}); });
} }
it('gives that 3857, 102100, 102113, 900913 are equivalent ', function () { it('treats EPSG:3857 variants as equivalent', function () {
_testAllEquivalent([ _testAllEquivalent([
'EPSG:3857', 'EPSG:3857',
'EPSG:102100', 'EPSG:102100',
'EPSG:102113', 'EPSG:102113',
'EPSG:900913', 'EPSG:900913',
'http://www.opengis.net/def/crs/EPSG/0/3857',
'http://www.opengis.net/gml/srs/epsg.xml#3857',
]); ]);
}); });