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