correct units in WMTS capabilities

This commit is contained in:
Stéphane Brunner
2012-07-30 23:17:11 +02:00
parent 940c0e8ca2
commit 9d31c57e2a
2 changed files with 33 additions and 2 deletions

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) {