<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Robert Sanson wrote:
<blockquote cite="mid:4833F47402000037000039D0@gate1.agriquality.com"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2900.2180" name="GENERATOR">
  <div>Here is the OL snippet that adds the layer:</div>
  <div>&nbsp;</div>
  <div>var wfs = new OpenLayers.Layer.WFS("API WFS", <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"<a moz-do-not-send="true"
 href="http://10.65.192.1/cgi-bin/apiwfs.exe">http://10.65.192.1/cgi-bin/apiwfs.exe</a>?",<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{typename: 'apiaries_dev', maxfeatures: 100},<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{scales: [150000, 10], featureClass: OpenLayers.Feature.WFS});<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addLayers([wms1,wfs]);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.setBaseLayer(wms1);</div>
  <div>&nbsp;</div>
</blockquote>
<br>
Doesn't answer any of your questions, but thanks for asking the query!
The above bit of code fixed a problem I was having with scale ranges!&nbsp;
I was trying to use minZoom / maxZoom but the online documentation
wasn't exactly very helpful, and I couldn't find any useful examples.
Your above "scales: [&nbsp; ]" did what I required.<br>
<br>
I'm reading tiles from a WMS server. I have scale limits on the server
(MapServer), but it seemed a bit inefficient if the same <br>
limits weren't present on OpenLayers. For example at some common zoom
levels, OpenLayers would pointlessly request a series of empty tiles.<br>
<br>
Simple stuff, but I thought I'd let you know that your post helped a
beginner!<br>
<br>
<br>
<br>
Richard<br>
<br>
<div class="moz-signature">-- <br>
Richard Marsden<br>
Winwaed Software Technology LLC<br>
<a href="http://www.winwaed.com">http://www.winwaed.com</a><br>
Tools and Add-ins for MapPoint - <a href="http://www.mapping-tools.com">http://www.mapping-tools.com</a><br>
</div>
</body>
</html>