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
This commit is contained in:
crschmidt
2006-06-28 00:33:28 +00:00
parent 0763e08c12
commit 38324e7295
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -61,6 +61,7 @@ OpenLayers.Layer.Grid.prototype = Object.extend( new OpenLayers.Layer(), {
* @deprecated User should just set the 'tileSize' via options * @deprecated User should just set the 'tileSize' via options
*/ */
setTileSize: function (size) { setTileSize: function (size) {
if (size)
this.tileSize = size.copyOf(); this.tileSize = size.copyOf();
}, },
+1
View File
@@ -88,6 +88,7 @@ OpenLayers.Layer.WFS.prototype =
Object.extend(mergedParams, this.params); Object.extend(mergedParams, this.params);
Object.extend(mergedParams, params); Object.extend(mergedParams, params);
var obj = new OpenLayers.Layer.WFS(name, this.url, mergedParams); var obj = new OpenLayers.Layer.WFS(name, this.url, mergedParams);
if (this.tileSize)
obj.setTileSize(this.tileSize); obj.setTileSize(this.tileSize);
return obj; return obj;
}, },