WMTS capabilities format - make JSLint happier
This commit is contained in:
@@ -155,16 +155,16 @@ OpenLayers.Format.WMTSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.Vers
|
|||||||
var projection = config.projection || matrixSet.supportedCRS.replace(
|
var projection = config.projection || matrixSet.supportedCRS.replace(
|
||||||
/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/, "$1:$3");
|
/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/, "$1:$3");
|
||||||
var units = config.units ||
|
var units = config.units ||
|
||||||
projection === "EPSG:4326" ? "degrees" : "m"
|
projection === "EPSG:4326" ? "degrees" : "m";
|
||||||
|
|
||||||
var resolutions = [];
|
var resolutions = [];
|
||||||
if (config.isBaseLayer !== false) {
|
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(
|
||||||
matrixSet.matrixIds[mid].scaleDenominator * 0.28E-3
|
matrixSet.matrixIds[mid].scaleDenominator * 0.28E-3 /
|
||||||
/ OpenLayers.METERS_PER_INCH
|
OpenLayers.METERS_PER_INCH /
|
||||||
/ OpenLayers.INCHES_PER_UNIT[units]);
|
OpenLayers.INCHES_PER_UNIT[units]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user