From d5bd6d59f2ee8095bfe1cc48d729faf812a7d34c Mon Sep 17 00:00:00 2001 From: ahocevar Date: Fri, 29 Aug 2008 10:11:54 +0000 Subject: [PATCH] use empty moveTo function to prevent tiles from actually being requested. (closes #1701) git-svn-id: http://svn.openlayers.org/trunk/openlayers@7894 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Layer/WFS.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Layer/WFS.html b/tests/Layer/WFS.html index 68b2c793a7..09f55461f3 100644 --- a/tests/Layer/WFS.html +++ b/tests/Layer/WFS.html @@ -133,7 +133,9 @@ t.plan(1); var map = new OpenLayers.Map('map'); map.addLayer(new OpenLayers.Layer("",{isBaseLayer: true} )); - var layer = new OpenLayers.Layer.WFS("","",{},{'projection': new OpenLayers.Projection("EPSG:900913")}); + // we use an empty moveTo function because we don't want to request tiles + var layer = new OpenLayers.Layer.WFS("","",{},{'projection': new OpenLayers.Projection("EPSG:900913"), + moveTo: function() {}}); map.addLayer(layer); map.zoomToMaxExtent(); var params = OpenLayers.Util.getParameters(layer.getFullRequestString());