<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2014-07-02 1:30 GMT+02:00 Phil Scadden <span dir="ltr"><<a href="mailto:p.scadden@gns.cri.nz" target="_blank">p.scadden@gns.cri.nz</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 2/07/2014 10:51 a.m., Rob Marjot wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
One approach could be to start the download of vector geometries only after finish rendering the WMS map. So, the user can already start reading the map, deciding what to hover over. By that time, ((over)simplified) vectors will nicely have been received and rendered, so the actual highlighting will work. Thus implemented, I'm expecting a better user experience that requiring the user to wait for 1 second again-and-again for each hovered pixel / location.<br>
</blockquote></div>
So logic then would be for an onmove event to make a serverside call with BBOX which does WFS to fetch the vectors, and then then simplify (generalise) the geometry before passing them to the application. I remain uncertain as to whether putting them into canvas coordinates would give you the required time-boost. I would try NOT converting to canvas and seeing how you go but use the NET tab of debugger to time the download. If you convert to canvas, then you are going to have move outside OL for the drawing and mouse handling. It still wouldnt work in my application as even simplified to extreme (start and end point), I would have more than a 5000 objects to send down the web and render with only moderate zoom out. The web still imposes limitations on what can be done.</blockquote>
<div><br></div><div>Yes; onZoom, onPan events would trigger a serverside call to fetch the vectors for the given BBOX.</div><div><br></div><div>Very true that I should first take this approach based on worldly coordinates and from there see whether exchange in canvas coordinates is going to improve performance significantly. Thanks.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br></div></div>