Use a ReadFeatures object instead of sourceProjection/targetProjection

This commit is contained in:
Andreas Hocevar
2014-07-18 20:47:36 +02:00
parent 225791c969
commit 0ea55b7f27
4 changed files with 52 additions and 47 deletions

View File

@@ -35,8 +35,7 @@ ol.format.Feature.prototype.getType = goog.abstractMethod;
* Read a single feature from a source.
*
* @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {ol.proj.ProjectionLike=} opt_targetProjection Target projection.
* @param {ol.proj.ProjectionLike=} opt_sourceProjection Source projection.
* @param {olx.format.ReadOptions=} opt_options Read options.
* @return {ol.Feature} Feature.
*/
ol.format.Feature.prototype.readFeature = goog.abstractMethod;
@@ -46,8 +45,7 @@ ol.format.Feature.prototype.readFeature = goog.abstractMethod;
* Read all features from a source.
*
* @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {ol.proj.ProjectionLike=} opt_targetProjection Target projection.
* @param {ol.proj.ProjectionLike=} opt_sourceProjection Source projection.
* @param {olx.format.ReadOptions=} opt_options Read options.
* @return {Array.<ol.Feature>} Features.
*/
ol.format.Feature.prototype.readFeatures = goog.abstractMethod;
@@ -57,8 +55,7 @@ ol.format.Feature.prototype.readFeatures = goog.abstractMethod;
* Read a single geometry from a source.
*
* @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {ol.proj.ProjectionLike=} opt_targetProjection Target projection.
* @param {ol.proj.ProjectionLike=} opt_sourceProjection Source projection.
* @param {olx.format.ReadOptions=} opt_options Read options.
* @return {ol.geom.Geometry} Geometry.
*/
ol.format.Feature.prototype.readGeometry = goog.abstractMethod;