WMTS layers created from capabilities have no serverResolutions

By adding serverResolutions to the WMTS configuration, it is possible to
use WMTS layers as overlays, even if the map or the base layer is
configured with different resolutions than the WMTS.
This commit is contained in:
ahocevar
2012-10-25 14:40:26 +02:00
parent 8a8b3076c8
commit ca532c5db6
2 changed files with 3 additions and 1 deletions

View File

@@ -214,6 +214,7 @@ OpenLayers.Format.WMTSCapabilities = OpenLayers.Class(OpenLayers.Format.XML.Vers
units: units,
resolutions: config.isBaseLayer === false ? undefined :
resolutions,
serverResolutions: resolutions,
tileFullExtent: matrixSet.bounds,
dimensions: dimensions,
params: params