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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user