From e7864be2be99ebf11ec93ea200d84cd057419678 Mon Sep 17 00:00:00 2001 From: tsauerwein Date: Mon, 18 Aug 2014 15:48:29 +0200 Subject: [PATCH] Fix ol.format.transformWithOptions --- src/ol/format/featureformat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {