diff --git a/src/ol/format/featureformat.js b/src/ol/format/featureformat.js index 229f7bb83d..0243780755 100644 --- a/src/ol/format/featureformat.js +++ b/src/ol/format/featureformat.js @@ -166,7 +166,7 @@ ol.format.Feature.transformWithOptions = function( ol.proj.get(opt_options.dataProjection) : null; if (!goog.isNull(featureProjection) && !goog.isNull(dataProjection) && !ol.proj.equivalent(featureProjection, dataProjection)) { - return (write ? geometry.clone() : geometry).transform( + return (clone ? geometry.clone() : geometry).transform( write ? featureProjection : dataProjection, write ? dataProjection : featureProjection); } else {