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
This commit is contained in:
ahocevar
2008-08-29 10:11:54 +00:00
parent 8f1b84a8e1
commit d5bd6d59f2

View File

@@ -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());