Introduce WriteOptions for feature formats

This commit is contained in:
Andreas Hocevar
2014-07-18 20:49:12 +02:00
parent 3245b8c6af
commit b0d95b326a
2 changed files with 24 additions and 1 deletions

View File

@@ -74,6 +74,7 @@ ol.format.Feature.prototype.readProjection = goog.abstractMethod;
* Encode a feature in this format.
*
* @param {ol.Feature} feature Feature.
* @param {olx.format.WriteOptions=} opt_options Write options.
* @return {ArrayBuffer|Node|Object|string} Result.
*/
ol.format.Feature.prototype.writeFeature = goog.abstractMethod;
@@ -83,6 +84,7 @@ ol.format.Feature.prototype.writeFeature = goog.abstractMethod;
* Encode an array of features in this format.
*
* @param {Array.<ol.Feature>} features Features.
* @param {olx.format.WriteOptions=} opt_options Write options.
* @return {ArrayBuffer|Node|Object|string} Result.
*/
ol.format.Feature.prototype.writeFeatures = goog.abstractMethod;
@@ -92,6 +94,7 @@ ol.format.Feature.prototype.writeFeatures = goog.abstractMethod;
* Write a single geometry in this format.
*
* @param {ol.geom.Geometry} geometry Geometry.
* @param {olx.format.WriteOptions=} opt_options Write options.
* @return {ArrayBuffer|Node|Object|string} Node.
*/
ol.format.Feature.prototype.writeGeometry = goog.abstractMethod;