Fixing regression introduced by #732

Now that serverResolutions are set for all layers, we need to generate
resolutions also for non-baselayers.
This commit is contained in:
ahocevar
2012-11-28 07:12:29 -06:00
parent 12046503ca
commit 1cc07232a7
@@ -165,7 +165,6 @@ OpenLayers.Format.WMTSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.Vers
(projection === "EPSG:4326" ? "degrees" : "m"); (projection === "EPSG:4326" ? "degrees" : "m");
var resolutions = []; var resolutions = [];
if (config.isBaseLayer !== false) {
for (var mid in matrixSet.matrixIds) { for (var mid in matrixSet.matrixIds) {
if (matrixSet.matrixIds.hasOwnProperty(mid)) { if (matrixSet.matrixIds.hasOwnProperty(mid)) {
resolutions.push( resolutions.push(
@@ -174,7 +173,6 @@ OpenLayers.Format.WMTSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.Vers
OpenLayers.INCHES_PER_UNIT[units]); OpenLayers.INCHES_PER_UNIT[units]);
} }
} }
}
var url; var url;
if (requestEncoding === "REST" && layerDef.resourceUrls) { if (requestEncoding === "REST" && layerDef.resourceUrls) {