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

@@ -317,7 +317,7 @@ ol.format.Polyline.prototype.readGeometryFromText =
return /** @type {ol.geom.Geometry} */ (
ol.format.Feature.transformWithOptions(
new ol.geom.LineString(coordinates), false,
this.adaptOptionsWithDefaultDataProjection(opt_options)));
this.adaptOptions(opt_options)));
};
@@ -384,8 +384,7 @@ ol.format.Polyline.prototype.writeGeometryText =
goog.asserts.assertInstanceof(geometry, ol.geom.LineString);
geometry = /** @type {ol.geom.LineString} */
(ol.format.Feature.transformWithOptions(
geometry, true,
this.adaptOptionsWithDefaultDataProjection(opt_options)));
geometry, true, this.adaptOptions(opt_options)));
var flatCoordinates = geometry.getFlatCoordinates();
var stride = geometry.getStride();
return ol.format.Polyline.encodeDeltas(flatCoordinates, stride, this.factor_);