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

@@ -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;