Hi,<div>It sounds a little bit strange, since I did something very similar without having performance problem: <a href="http://dev.geoext.org/sandbox/cmoullet/ux/RoutingPanel/examples/RoutingPanelExample.html">http://dev.geoext.org/sandbox/cmoullet/ux/RoutingPanel/examples/RoutingPanelExample.html</a></div>
<div>You can have a look here to see the code that draws the route in OL: <a href="https://trac.geoext.org/browser/sandbox/cmoullet/ux/RoutingPanel/ux/widgets/RoutingPanel.js#L623">https://trac.geoext.org/browser/sandbox/cmoullet/ux/RoutingPanel/ux/widgets/RoutingPanel.js#L623</a></div>
<div><a href="https://trac.geoext.org/browser/sandbox/cmoullet/ux/RoutingPanel/ux/widgets/RoutingPanel.js#L623"></a>Hope this helps,</div><div>Cédric<br><br><div class="gmail_quote">On Mon, Jan 11, 2010 at 6:35 AM, dequan chen <span dir="ltr"><<a href="mailto:cdqrain@gmail.com">cdqrain@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>hi all,</div>
<div>my server side return navigation route to client and should draw the route on OL. The route contains more than a thousand points, but the OL draw the line very very slow, and nearly can not work. At first, i think the client should take many times to receive the data. but, I've test it that it only takes less than 10s. after receive data and start to draw route, the browser striked.</div>
<div>can anyone help me, how to slove the problem. thanks.</div>
<div> </div>
<div>PS: I split the route into dozens of segments. at client side, I construct the every segment route with LineString, and addFeature to VectorLayer.</div>
<div> </div>
<br>_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>CTO Geospatial Camptocamp SA<br>Cédric Moullet<br>PSE A<br>CH-1015 Lausanne<br><a href="http://www.camptocamp.com">www.camptocamp.com</a> / <a href="http://www.mapfish.org">www.mapfish.org</a> / <a href="http://twitter.com/cedricmoullet">twitter.com/cedricmoullet</a> / <a href="http://mapfishblog.blogspot.com/">mapfishblog.blogspot.com/</a><br>
<br>+41 79 759 69 83 (mobile)<br>+41 21 619 10 21 (direct)<br>+41 21 619 10 10 (centrale)<br>+41 21 619 10 00 (fax)<br>
</div>