From 534a178a49bfcb7fe09eb3ec0a35e623148b921c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 8 Jul 2014 16:42:25 +0200 Subject: [PATCH] Add target/sourceProjection to ol.format.Feature#read* --- src/ol/format/featureformat.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ol/format/featureformat.js b/src/ol/format/featureformat.js index 2cf35fb1f6..41026bfa02 100644 --- a/src/ol/format/featureformat.js +++ b/src/ol/format/featureformat.js @@ -35,6 +35,8 @@ 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. * @return {ol.Feature} Feature. */ ol.format.Feature.prototype.readFeature = goog.abstractMethod; @@ -44,6 +46,8 @@ 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. * @return {Array.} Features. */ ol.format.Feature.prototype.readFeatures = goog.abstractMethod; @@ -53,6 +57,8 @@ 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. * @return {ol.geom.Geometry} Geometry. */ ol.format.Feature.prototype.readGeometry = goog.abstractMethod;