Allow geometries to have null coordinates and add setFlatCoordinates

This commit is contained in:
Tom Payne
2013-12-03 16:59:52 +01:00
parent 580f7d2022
commit 1a9d19a2fb
13 changed files with 216 additions and 26 deletions

View File

@@ -3,6 +3,13 @@ goog.provide('ol.test.geom.LineString');
describe('ol.geom.LineString', function() {
it('can be constructed with a null geometry', function() {
expect(function() {
var lineString = new ol.geom.LineString(null);
lineString = lineString; // suppress gjslint warning
}).not.to.throwException();
});
describe('construct empty', function() {
var lineString;