Rename "adaptOptionsWithDefaultDataProjection"

This commit is contained in:
tsauerwein
2014-08-21 11:39:01 +02:00
parent b30ed6b934
commit 939e167c0b
5 changed files with 18 additions and 38 deletions

View File

@@ -50,18 +50,20 @@ ol.format.Feature.prototype.getReadOptions = function(
featureProjection: opt_options.featureProjection
};
}
return this.adaptOptionsWithDefaultDataProjection(options);
return this.adaptOptions(options);
};
/**
* Sets the `defaultDataProjection` on the options, if no `dataProjection`
* is set.
* @param {olx.format.WriteOptions|olx.format.ReadOptions|undefined} options
* Options.
* @protected
* @return {olx.format.WriteOptions|olx.format.ReadOptions|undefined}
* Updated options.
*/
ol.format.Feature.prototype.adaptOptionsWithDefaultDataProjection = function(
ol.format.Feature.prototype.adaptOptions = function(
options) {
var updatedOptions;
if (goog.isDef(options)) {