Merge pull request #614 from sbrunner/wmts-fix

correct units in WMTS capabilities
This commit is contained in:
Stéphane Brunner
2012-08-03 02:35:26 -07:00
2 changed files with 33 additions and 2 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ OpenLayers.Format.WMTSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.Vers
var projection = config.projection || matrixSet.supportedCRS.replace(
/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/, "$1:$3");
var units = config.units ||
projection === "EPSG:4326" ? "degrees" : "m";
(projection === "EPSG:4326" ? "degrees" : "m");
var resolutions = [];
if (config.isBaseLayer !== false) {