Preserve extra dimensions in ol.geom.MultiPoint#closestPointXY

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

No files matched your search

+9
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]);
});
});
});
});