Add ol.format.XSD.writeBooleanTextNode

This commit is contained in:
Éric Lemoine
2014-06-27 10:56:01 +02:00
parent 177188d732
commit ccd01fb874
2 changed files with 11 additions and 12 deletions

View File

@@ -126,6 +126,15 @@ ol.format.XSD.readString = function(node) {
};
/**
* @param {Node} node Node to append a TextNode with the boolean to.
* @param {boolean} bool Boolean.
*/
ol.format.XSD.writeBooleanTextNode = function(node, bool) {
ol.format.XSD.writeStringTextNode(node, (bool) ? '1' : '0');
};
/**
* @param {Node} node Node to append a TextNode with the dateTime to.
* @param {number} dateTime DateTime in seconds.