[OpenLayers-Dev] WFS And Zoom Levels

Andrew Ayre andy at britishideas.com
Sat Apr 4 14:00:15 EDT 2009

Hi! I have a WFS layer that only shows at the 10 smallest zoom levels. 
If I switch to the 11th zoom level (zooming in) the GML file is fetched 
but the markers are not added.

I have tried setting the maxResolution, minResolution, etc. parameters 
for the layer to match the map, but with no luck. Can anyone please give 
me some hints?


map = new OpenLayers.Map ("map", {
     new OpenLayers.Control.Navigation(),
     new OpenLayers.Control.PanZoomBar(),
     new OpenLayers.Control.Attribution(),
     new OpenLayers.Control.LayerSwitcher()],
   maxExtent: new 
   maxResolution: 156543.0399,
   numZoomLevels: 19,
   units: 'm',
   projection: new OpenLayers.Projection("EPSG:900913"),
   displayProjection: new OpenLayers.Projection("EPSG:4326")

var czwfs = new OpenLayers.Layer.WFS("Test Data", 
     typename: "TESTPOINTS2", maxfeatures: 300, map: '../wms.map'
     featureClass: CacheZone.Feature.Points,
     maxResolution: map.maxResolution,
     minResolution: map.minResolution,
     numZoomLevels: map.numZoomLevels,
     units: map.units,
     scales: map.scales,
     resolutions: map.resolutions,
     minZoomLevel: map.minZoomLevel,
     maxZoomLevel: map.maxZoomLevel


PGP Key ID: 0xDC1B5864

More information about the Dev mailing list