From e32d63d7b23d8e36dc2939fe48d4cec60d4ea85e Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 8 Jul 2010 16:46:06 +0000 Subject: [PATCH] Correctly selecting url when an array is provided. Thanks cmoullet for the patch. r=me (closes #2727) git-svn-id: http://svn.openlayers.org/trunk/openlayers@10471 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/WMTS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/WMTS.js b/lib/OpenLayers/Layer/WMTS.js index 5431bc5526..b4e21ae578 100644 --- a/lib/OpenLayers/Layer/WMTS.js +++ b/lib/OpenLayers/Layer/WMTS.js @@ -343,7 +343,7 @@ OpenLayers.Layer.WMTS = OpenLayers.Class(OpenLayers.Layer.Grid, { path = path + this.matrixSet + "/" + matrixId + "/" + row + "/" + col + "." + this.formatSuffix; if (this.url instanceof Array) { - url = this.selectUrl(path, url); + url = this.selectUrl(path, this.url); } else { url = this.url; }