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
This commit is contained in:
crschmidt
2006-06-28 00:29:39 +00:00
parent 843abf10bb
commit 0763e08c12

View File

@@ -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;
},