diff --git a/src/ol/format/gml/gml3.js b/src/ol/format/gml/gml3.js index 3a12b20a20..ca4a77488e 100644 --- a/src/ol/format/gml/gml3.js +++ b/src/ol/format/gml/gml3.js @@ -79,22 +79,6 @@ ol.format.GML3 = function(opt_options) { goog.inherits(ol.format.GML3, ol.format.GMLBase); - -/** - * @classdesc - * Feature format for reading and writing data in the GML format - * version 3.1.1. - * Currently only supports GML 3.1.1 Simple Features profile. - * - * @constructor - * @param {olx.format.GMLOptions=} opt_options - * Optional configuration object. - * @extends {ol.format.GMLBase} - * @api stable - */ -ol.format.GML = ol.format.GML3; - - /** * @const * @type {string} @@ -1313,3 +1297,31 @@ ol.format.GML3.prototype.writeFeaturesNode = function(features, opt_options) { this.writeFeatureMembers_(node, features, [context]); return node; }; + + + +/** + * @classdesc + * Feature format for reading and writing data in the GML format + * version 3.1.1. + * Currently only supports GML 3.1.1 Simple Features profile. + * + * @constructor + * @param {olx.format.GMLOptions=} opt_options + * Optional configuration object. + * @extends {ol.format.GMLBase} + * @api stable + */ +ol.format.GML = ol.format.GML3; + + +/** + * Encode an array of features in GML 3.1.1 Simple Features. + * + * @function + * @param {Array.} features Features. + * @param {olx.format.WriteOptions=} opt_options Options. + * @return {Node} Result. + * @api stable + */ +ol.format.GML.prototype.writeFeatures; diff --git a/src/ol/format/gml/gmlbase.js b/src/ol/format/gml/gmlbase.js index 1c917c3c2e..83b33f63ed 100644 --- a/src/ol/format/gml/gmlbase.js +++ b/src/ol/format/gml/gmlbase.js @@ -27,6 +27,8 @@ goog.require('ol.xml'); /** * @classdesc + * Abstract base class; normally only used for creating subclasses and not + * instantiated in apps. * Feature base format for reading and writing data in the GML format. * This class cannot be instantiate, it contains only base content that * is shared with versioned format classes ol.format.GML2 and