Merge pull request #4237 from awaterme/master

#3328: GML3 - Writing features with multiple geometries
This commit is contained in:
Andreas Hocevar
2015-10-08 18:11:53 +02:00
4 changed files with 71 additions and 1 deletions

View File

@@ -1070,7 +1070,7 @@ ol.format.GML3.prototype.writeFeatureElement =
if (value !== null) {
keys.push(key);
values.push(value);
if (key == geometryName) {
if (key == geometryName || value instanceof ol.geom.Geometry) {
if (!(key in context.serializers[featureNS])) {
context.serializers[featureNS][key] = ol.xml.makeChildAppender(
this.writeGeometryElement, this);