From fbb59d29b9b212d3e27836f69329868064db0720 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Fri, 11 Dec 2015 15:20:21 +0100 Subject: [PATCH] Make sure compiled code calls ol.VectorTile#setProjection --- src/ol/featureloader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/featureloader.js b/src/ol/featureloader.js index b4ce0194d1..d74673fdc9 100644 --- a/src/ol/featureloader.js +++ b/src/ol/featureloader.js @@ -108,7 +108,7 @@ ol.featureloader.loadFeaturesXhr = function(url, format, success, failure) { var dataUnits = format.readProjection(source).getUnits(); if (dataUnits === ol.proj.Units.TILE_PIXELS) { projection = new ol.proj.Projection({ - code: projection.getCode(), + code: this.getProjection().getCode(), units: dataUnits }); this.setProjection(projection);