Preserve extra dimensions in ol.geom.MultiPoint#closestPointXY

This commit is contained in:
Tom Payne
2014-01-20 09:39:09 +01:00
parent 2da724572a
commit 52a0263310
2 changed files with 14 additions and 3 deletions

View File

@@ -154,6 +154,15 @@ describe('ol.geom.MultiPoint', function() {
expect(multiPoint.getStride()).to.be(4);
});
describe('#getClosestPoint', function() {
it('preserves extra dimensions', function() {
var closestPoint = multiPoint.getClosestPoint([6, 6]);
expect(closestPoint).to.eql([5, 6, 7, 8]);
});
});
});
});