diff --git a/plugins/layer_types/openlayers_layer_type_wmts.js b/plugins/layer_types/openlayers_layer_type_wmts.js index f5def8a..87b2c5a 100644 --- a/plugins/layer_types/openlayers_layer_type_wmts.js +++ b/plugins/layer_types/openlayers_layer_type_wmts.js @@ -9,6 +9,11 @@ */ Drupal.openlayers.layer.wmts = function(title, map, options) { + var matrixIds = new Array(26); + for (var i=0; i<26; ++i) { + matrixIds[i] = options.matrixSet + ":" + i; + } + var layer_options = { drupalID: options.drupalID, name: title, @@ -18,6 +23,7 @@ Drupal.openlayers.layer.wmts = function(title, map, options) { url: options.url, style: options.style, matrixSet: options.matrixSet, + matrixIds: matrixIds, format: options.format, formatSuffix: options.formatSuffix, isBaseLayer: options.isBaseLayer