Getting the nanometer precision we deserve with web mercator
This commit is contained in:
@@ -17,9 +17,9 @@ describe('ol.geom.LineString', function() {
|
||||
|
||||
describe('coordinates', function() {
|
||||
|
||||
it('is a Float32Array', function() {
|
||||
it('is a Float64Array', function() {
|
||||
var line = new ol.geom.LineString([[10, 20], [30, 40]]);
|
||||
expect(line.coordinates).toBeA(Float32Array);
|
||||
expect(line.coordinates).toBeA(Float64Array);
|
||||
|
||||
expect(line.coordinates.length).toBe(4);
|
||||
expect(line.coordinates[0]).toBe(10);
|
||||
|
||||
Reference in New Issue
Block a user