From 1cc07232a72994340ad31bae068558817c34632d Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 28 Nov 2012 07:12:29 -0600 Subject: [PATCH] Fixing regression introduced by #732 Now that serverResolutions are set for all layers, we need to generate resolutions also for non-baselayers. --- lib/OpenLayers/Format/WMTSCapabilities.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/OpenLayers/Format/WMTSCapabilities.js b/lib/OpenLayers/Format/WMTSCapabilities.js index 16c65a2443..b23bf2bd66 100644 --- a/lib/OpenLayers/Format/WMTSCapabilities.js +++ b/lib/OpenLayers/Format/WMTSCapabilities.js @@ -165,14 +165,12 @@ OpenLayers.Format.WMTSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.Vers (projection === "EPSG:4326" ? "degrees" : "m"); var resolutions = []; - if (config.isBaseLayer !== false) { - for (var mid in matrixSet.matrixIds) { - if (matrixSet.matrixIds.hasOwnProperty(mid)) { - resolutions.push( - matrixSet.matrixIds[mid].scaleDenominator * 0.28E-3 / - OpenLayers.METERS_PER_INCH / - OpenLayers.INCHES_PER_UNIT[units]); - } + for (var mid in matrixSet.matrixIds) { + if (matrixSet.matrixIds.hasOwnProperty(mid)) { + resolutions.push( + matrixSet.matrixIds[mid].scaleDenominator * 0.28E-3 / + OpenLayers.METERS_PER_INCH / + OpenLayers.INCHES_PER_UNIT[units]); } }