Set correctly the opt_this parameter when writing a KML document

This commit is contained in:
oterral
2015-11-12 11:08:40 +01:00
parent afba132c13
commit f588fcf7b0
2 changed files with 39 additions and 1 deletions

View File

@@ -2185,7 +2185,8 @@ ol.format.KML.writeCoordinatesTextNode_ =
ol.format.KML.writeDocument_ = function(node, features, objectStack) {
var /** @type {ol.xml.NodeStackItem} */ context = {node: node};
ol.xml.pushSerializeAndPop(context, ol.format.KML.DOCUMENT_SERIALIZERS_,
ol.format.KML.DOCUMENT_NODE_FACTORY_, features, objectStack);
ol.format.KML.DOCUMENT_NODE_FACTORY_, features, objectStack, undefined,
this);
};