#3328 - GML3: Writing features with multiple geometries

This commit is contained in:
Andreas Watermeyer
2015-04-07 10:32:26 +02:00
parent 0789604e88
commit c530f872f9
4 changed files with 70 additions and 1 deletions

View File

@@ -1072,7 +1072,7 @@ ol.format.GML3.prototype.writeFeatureElement =
if (!goog.isNull(value)) {
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);