From 0763e08c128eba20914dbf8d0b9b7de0d15829cc Mon Sep 17 00:00:00 2001 From: crschmidt Date: Wed, 28 Jun 2006 00:29:39 +0000 Subject: [PATCH] If we don't have a tileSize when we're cloning, that means we're going to pick up the default from the Map Real Soon Now (tm), so we'll just not bother setting the tile size on our cloned layer. git-svn-id: http://svn.openlayers.org/trunk/openlayers@815 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/WMS.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/WMS.js b/lib/OpenLayers/Layer/WMS.js index 86d4bb3bdf..3ccdaaf1c5 100644 --- a/lib/OpenLayers/Layer/WMS.js +++ b/lib/OpenLayers/Layer/WMS.js @@ -64,7 +64,9 @@ OpenLayers.Layer.WMS.prototype = Object.extend(mergedParams, this.params); Object.extend(mergedParams, params); var obj = new OpenLayers.Layer.WMS(name, this.url, mergedParams); - obj.setTileSize(this.tileSize); + if (this.tileSize) { + obj.setTileSize(this.tileSize); + } return obj; },