Always write the GeoJSONFeature geometry property

This commit is contained in:
Frederic Junod
2015-06-10 17:50:54 +02:00
parent 4aa3ef59d5
commit d8a495b639
2 changed files with 8 additions and 0 deletions
@@ -530,6 +530,12 @@ describe('ol.format.GeoJSON', function() {
expect(geojson.properties).to.eql(null);
});
it('writes out a feature without geometry correctly', function() {
var feature = new ol.Feature();
var geojson = format.writeFeatureObject(feature);
expect(geojson.geometry).to.eql(null);
});
});
describe('#writeGeometry', function() {