From dfb534f1d4b778e313726ad3b006da5333063f7f Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Fri, 8 Jan 2016 10:25:56 +0100 Subject: [PATCH] Do not rely on projection extent --- src/ol/attribution.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/attribution.js b/src/ol/attribution.js index f299599446..45c32d9dfe 100644 --- a/src/ol/attribution.js +++ b/src/ol/attribution.js @@ -77,7 +77,7 @@ ol.Attribution.prototype.intersectsAnyTileRange = return true; } var extentTileRange = tileGrid.getTileRangeForExtentAndZ( - projection.getExtent(), parseInt(zKey, 10)); + ol.tilegrid.extentFromProjection(projection), parseInt(zKey, 10)); var width = extentTileRange.getWidth(); if (tileRange.minX < extentTileRange.minX || tileRange.maxX > extentTileRange.maxX) {