<p dir="ltr">Hi Phil,</p>
<p dir="ltr">Not sure if we understand eachother correctly. My point here is: I need stuff tot hover over :)) So, I don't see how I could be fetching geometry on hover.</p>
<p dir="ltr">Otherwise, I guess I'm on a similar track as you're pointing at, thanks.</p>
<p dir="ltr">By the wat, since JS is so slow, I'm choosing GeoJSON over WFS/GML.</p>
<p dir="ltr">Rob</p>
<div class="gmail_quote">Op 30 jun. 2014 00:46 schreef "Phil Scadden" <<a href="mailto:p.scadden@gns.cri.nz">p.scadden@gns.cri.nz</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I guess I forgot to mention: the idea is to have geometries highlighting on hover / mouse-over...<br>
</blockquote>
Yep. I do that. Do WFSgetfeature in a hover handler.<br>
<br>
eg<br>
   hoverHandler = new OpenLayers.Handler.Hover({<br>
        map:map<br>
    },{});<br>
    hoverHandler.callbacks= {<br>
        "pause":function(e){<br>
  // do WFSgetfeature here<br>
        }<br>
    };<br>
hoverHandler.activate();<br>
<br>
<br>
Or,<br>
 hoverFeatures =  new OpenLayers.Control.GetFeature(<u></u>{<br>
                protocol:myWfsProtocol,<br>
                hover: true,<br>
                propertyNames:myListOfFields,<br>
                click:false,<br>
                maxFeatures:1<br>
              });<br>
              hoverFeatures.events.register(<u></u>"hoverfeature", this, showFeature);<br>
              hoverFeatures.events.register(<u></u>"outfeature", this, function(evt) { clearFeature;});<br>
<br>
Or, have serverside function that is called on hover, which in turns make the WFS call to fetch the geometry and simplifies it based on zoom before passing up has GML. Ie do everything serverside if possible since js is so slow.<br>

<br>
You might want to look at the SLDSelect control which could also be called on Hover.<br>
<br>
Notice: This email and any attachments are confidential.<br>
If received in error please destroy and immediately notify us.<br>
Do not copy or disclose the contents.<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/openlayers-<u></u>users</a><br>
</blockquote></div>