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