From 38324e7295994ab084a7db2ba756bc1c67c14a19 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Wed, 28 Jun 2006 00:33:28 +0000 Subject: [PATCH] Change Grid to not setTileSize if the tileSize passed is null. Also change WFS to not call setTileSize if it's null. git-svn-id: http://svn.openlayers.org/trunk/openlayers@816 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Grid.js | 3 ++- lib/OpenLayers/Layer/WFS.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index cf7780a7b3..5b98147b32 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -61,7 +61,8 @@ OpenLayers.Layer.Grid.prototype = Object.extend( new OpenLayers.Layer(), { * @deprecated User should just set the 'tileSize' via options */ setTileSize: function (size) { - this.tileSize = size.copyOf(); + if (size) + this.tileSize = size.copyOf(); }, /** This function is called whenever the map is moved. All the moving diff --git a/lib/OpenLayers/Layer/WFS.js b/lib/OpenLayers/Layer/WFS.js index 9bf64f31d7..6e85f6e920 100644 --- a/lib/OpenLayers/Layer/WFS.js +++ b/lib/OpenLayers/Layer/WFS.js @@ -88,7 +88,8 @@ OpenLayers.Layer.WFS.prototype = Object.extend(mergedParams, this.params); Object.extend(mergedParams, params); var obj = new OpenLayers.Layer.WFS(name, this.url, mergedParams); - obj.setTileSize(this.tileSize); + if (this.tileSize) + obj.setTileSize(this.tileSize); return obj; },