You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like there was a change between proj4js 2.3.15 and 2.3.16 that has broken EPSG:4326 to EPSG:3857 transformations:
var pt = new OpenLayers.Geometry.Point(-898447, 6907203);
var epsg4326 = new OpenLayers.Projection("EPSG:4326");
var epsg3857 = new OpenLayers.Projection("EPSG:3857");
pt.transform(epsg3857, epsg4326);
console.log(pt.x);
console.log(pt.y);
expect(Math.round(pt.x)).toEqual(-8);
expect(Math.round(pt.y)).toEqual(53);
var toProj = proj4('EPSG:4326');
var fromProj = proj4('EPSG:3857');
var res = proj4(fromProj, toProj, [-898447, 6907203]);
expect(Math.round(res[0])).toEqual(-8);
expect(Math.round(res[1])).toEqual(53);
The text was updated successfully, but these errors were encountered:
It looks like there was a change between proj4js 2.3.15 and 2.3.16 that has broken EPSG:4326 to EPSG:3857 transformations:
In 2.3.16 and later the results are:
In 2.3.15 they are:
However proj4js works fine independently of ol2:
The text was updated successfully, but these errors were encountered: