<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Phil, thanks for your suggestion.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
And unfortunately we do not serve any wms server at the moment, and I am afraid that importing geoserver or other wms server in our project will be almost impossible.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 15, 2014 at 11:30 AM, Phil Scadden <span dir="ltr"><<a href="mailto:p.scadden@gns.cri.nz" target="_blank">p.scadden@gns.cri.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can do most of this with just WMS. It depends to some extent on your tolerance for how long mouse is hovering before display.<br>
<br>
First off, a hell of lot of geometry is not that big an issue to caching WMS server (eg Geoserver). Only images are passed. Your choice.<br>
<br>
Second, you have a couple of options for displaying features on hover or click. If the geometry is very complex (over 100 nodes), then consider using the SLDSelect Control <a href="http://openlayers.org/dev/examples/SLDSelect.html" target="_blank">http://openlayers.org/dev/<u></u>examples/SLDSelect.html</a> with a hover handler. This does it all with WMS. Otherwise, set up a GetFeature control.<br>
eg<br>
hoverFeatures = new OpenLayers.Control.GetFeature(<u></u>{<br>
protocol: myWfsProtocol,<br>
hover: true,<br>
click:false,<br>
maxFeatures:1<br>
});<br>
hoverFeatures.events.register(<u></u>"hoverfeature", this, displayTheFeature);<br>
hoverFeatures.events.register(<u></u>"outfeature", this, unDisplayTheFeature);<br>
the event handlers will draw the feature from the gml geometry<br>
<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><br></div>