Merge pull request #775 from ahocevar/wmts-resolutions
Fix regression introduced by #732. r=@sbrunner
This commit is contained in:
@@ -165,7 +165,6 @@ 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(
|
||||
@@ -174,7 +173,6 @@ OpenLayers.Format.WMTSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.Vers
|
||||
OpenLayers.INCHES_PER_UNIT[units]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var url;
|
||||
if (requestEncoding === "REST" && layerDef.resourceUrls) {
|
||||
|
||||
Reference in New Issue
Block a user