I think you&#39;re crazy if you&#39;re trying to load 11000 records into javascript memory, and even crazier if you&#39;re trying to put 11000 OpenLayers vectors into the DOM at once.  Instead of pulling everything in at once, try only hitting the backend when the user stops moving the map (i.e. the &quot;moveend&quot; event).  Then just pass the map&#39;s current extents to the backend and retrieve only the features on the screen.<br>
<br>OpenLayers isn&#39;t hte problem here it&#39;s the browser.  You can&#39;t have 5000 SVG elements on the screen and expect your browser to perform well.  I would suggest keeping the number of features in the DOM at any given time under 300.<br>
<br>-Adam<br><br><div class="gmail_quote">On Mon, Nov 28, 2011 at 6:16 AM, canduc17 <span dir="ltr">&lt;<a href="mailto:candini@meeo.it">candini@meeo.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thank you for your response.<br>
It&#39;s ok, but if the user chooses an extent which involves 5000 elements, my<br>
page loads them all and navigation it&#39;s really tricky.<br>
Is there a way to merge small vector features into bigger ones, in order to<br>
decrease the number of objects loaded? Although something like that should<br>
be made at a PostGis query level, I guess...<br>
Any other hints?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/How-to-manage-huge-amount-of-vector-features-tp7038117p7038371.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/How-to-manage-huge-amount-of-vector-features-tp7038117p7038371.html</a><br>

</font></span><div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br>