Use a ReadFeatures object instead of sourceProjection/targetProjection
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user