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

@@ -49,8 +49,7 @@ ol.format.TextFeature.prototype.getType = function() {
*/
ol.format.TextFeature.prototype.readFeature = function(source, opt_options) {
return this.readFeatureFromText(
this.getText_(source),
this.adaptOptionsWithDefaultDataProjection(opt_options));
this.getText_(source), this.adaptOptions(opt_options));
};
@@ -68,8 +67,7 @@ ol.format.TextFeature.prototype.readFeatureFromText = goog.abstractMethod;
*/
ol.format.TextFeature.prototype.readFeatures = function(source, opt_options) {
return this.readFeaturesFromText(
this.getText_(source),
this.adaptOptionsWithDefaultDataProjection(opt_options));
this.getText_(source), this.adaptOptions(opt_options));
};
@@ -87,8 +85,7 @@ ol.format.TextFeature.prototype.readFeaturesFromText = goog.abstractMethod;
*/
ol.format.TextFeature.prototype.readGeometry = function(source, opt_options) {
return this.readGeometryFromText(
this.getText_(source),
this.adaptOptionsWithDefaultDataProjection(opt_options));
this.getText_(source), this.adaptOptions(opt_options));
};
@@ -121,9 +118,7 @@ ol.format.TextFeature.prototype.readProjectionFromText = goog.abstractMethod;
* @inheritDoc
*/
ol.format.TextFeature.prototype.writeFeature = function(feature, opt_options) {
return this.writeFeatureText(
feature,
this.adaptOptionsWithDefaultDataProjection(opt_options));
return this.writeFeatureText(feature, this.adaptOptions(opt_options));
};
@@ -141,9 +136,7 @@ ol.format.TextFeature.prototype.writeFeatureText = goog.abstractMethod;
*/
ol.format.TextFeature.prototype.writeFeatures = function(
features, opt_options) {
return this.writeFeaturesText(
features,
this.adaptOptionsWithDefaultDataProjection(opt_options));
return this.writeFeaturesText(features, this.adaptOptions(opt_options));
};
@@ -161,9 +154,7 @@ ol.format.TextFeature.prototype.writeFeaturesText = goog.abstractMethod;
*/
ol.format.TextFeature.prototype.writeGeometry = function(
geometry, opt_options) {
return this.writeGeometryText(
geometry,
this.adaptOptionsWithDefaultDataProjection(opt_options));
return this.writeGeometryText(geometry, this.adaptOptions(opt_options));
};