Allow geometries to have null coordinates and add setFlatCoordinates
This commit is contained in:
@@ -5,6 +5,13 @@ goog.provide('ol.test.geom.Polygon');
|
||||
|
||||
describe('ol.geom.Polygon', function() {
|
||||
|
||||
it('can be constructed with a null geometry', function() {
|
||||
expect(function() {
|
||||
var polygon = new ol.geom.Polygon(null);
|
||||
polygon = polygon; // suppress gjslint warning
|
||||
}).not.to.throwException();
|
||||
});
|
||||
|
||||
describe('construct empty', function() {
|
||||
|
||||
var polygon;
|
||||
|
||||
Reference in New Issue
Block a user