If there's no options passed, this would fail. So let's check that

git-svn-id: http://svn.openlayers.org/trunk/openlayers@819 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-06-28 02:38:05 +00:00
parent e7b45c4731
commit 69c599b881

View File

@@ -42,7 +42,7 @@ OpenLayers.Layer.WFS.prototype =
OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments);
OpenLayers.Layer.Markers.prototype.initialize.apply(this, newArguments);
if (options['tileSize']) {
if (options && options['tileSize']) {
this.tileSize = options['tileSize'].copyOf();
} else {
this.tileSize = new OpenLayers.Size(256, 256);