Clone the geometry before applying the decimals transform
We may only do it if the geometry has not been previously transformed.
This commit is contained in:
@@ -826,6 +826,8 @@ describe('ol.format.GeoJSON', function() {
|
||||
});
|
||||
expect(format.readGeometry(geojson).getCoordinates()).to.eql(
|
||||
[[42.123457, 38.987654], [43, 39]]);
|
||||
expect(linestring.getCoordinates()).to.eql(
|
||||
[[42.123456789, 38.987654321], [43, 39]]);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user