Hi Steve,<br><br>I&#39;m new to OL as well, but I would handle your situation like this:<br>Create two layers, the WMS version and the WFS version and use maxscale and minscale to set when which layer should be visible.<br>

<br>BTW you can click on a WMS-object and create a WFS-object on the fly to show you&#39;ve selected it and show it&#39;s details.<br>First create a Vector layer and add the WMSGetFeatureInfo control:<br><pre id="line1">
<span><span id="line158"></span>var info = new OpenLayers.Control.WMSGetFeatureInfo({ 
<span id="line159"></span>  url: &#39;your URL&#39;, 
<span id="line160"></span>  title: &#39;Identify features by clicking&#39;,
<span id="line161"></span>  queryVisible: true,
<span id="line162"></span>  layers: [your layers],
<span id="line163"></span>  infoFormat: &#39;application/vnd.ogc.gml&#39;,
<span id="line164"></span>  eventListeners: { 
<span id="line165"></span>      getfeatureinfo: function(event) { 
<span id="line166"></span>           var myFeature = event.features[0];
<span id="line167"></span>           selectedFeatureLayer.addFeatures(myFeature);
<span id="line168"></span>           selectedFeatureLayer.redraw();
<span id="line169"></span>           var popup = new OpenLayers.Popup.FramedCloud(
<span id="line170"></span>              &quot;chicken&quot;, 
<span id="line171"></span>              map.getLonLatFromPixel(event.xy),
<span id="line172"></span>              null,
<span id="line173"></span>              genPopText(myFeature),
<span id="line174"></span>              null,
<span id="line175"></span>              true,
<span id="line176"></span>              onPopupClose
<span id="line177"></span>          ); 
<span id="line178"></span>          myFeature.popup = popup;
<span id="line179"></span>          popup.feature = myFeature;
<span id="line180"></span>          map.addPopup(popup);
<span id="line181"></span>      }
<span id="line182"></span>   }
<span id="line183"></span>}); </span></pre><br>I hope it helps.<br><br>Paul Meems<br>--<br>Project manager Open Source GIS Conference 2012<br><a href="http://www.mapwindow.org/conference/2012/">http://www.mapwindow.org/conference/2012/</a><br>

<br><br>
<br><br><div class="gmail_quote">2012/5/16 sdunne <span dir="ltr">&lt;<a href="mailto:stephen.dunne@lisasoft.com" target="_blank">stephen.dunne@lisasoft.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi everybody on the OL list.<br>
I am Steve and I work at LISAsoft in Sydney. Im quite new to OpenLayers, but<br>
am enjoying working in the environment.<br>
<br>
Sometimes I read things in the API and don&#39;t exactly understand the<br>
definitions. So I am trying to figure out if this is a posibility.<br>
<br>
Basically I have been asked to find out if an application can be created<br>
that uses a wms for higher levels, therefore limiting the amount of time for<br>
load, then as the user zooms in, the layers change to wfs layers therefore<br>
allowing features to be clicked and data returned.<br>
<br>
I understand there is a function openlayers.protocol.wfs.fromWMSLayer. I am<br>
a bit confused as to how it works, or even if it is what I am looking for.<br>
<br>
Will this functionality, (or is it possible) have a smooth transition from<br>
wms to wfs as a user zooms in?<br>
<br>
Thanks<br>
Steve<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/zoomed-out-view-is-wms-and-zoomed-in-is-wfs-tp4974909.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/zoomed-out-view-is-wms-and-zoomed-in-is-wfs-tp4974909.html</a><br>


Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</blockquote></div><br>