Allow geometries to have null coordinates and add setFlatCoordinates
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user