Here "respJSONObject" length is 13783. With this large amount of data,
my IE browser is simply hanging out with out showing the marker layers.

Yeah, I bet it it; 13k features is too many for vector layers, and crashing the browser is what happens. Even if you weren't fetching JSON, if you manually added 1 feature at a time, 13k would still crash the browser. I'd recommend Not Doing That.

One approach is to paginate the points, as one would do with Openlayers.Strategy.Paging That is, draw only the first 100 points and put a button to View More, which would call layer.removeAllfeatures() and fetch the next 100. If you have the results sorted by distance or relevance or the like, such a paging behavior is actually quite user-friendly.

Paginating means more complication on your side: that URL serving up JSON, would need to accept a "page" or "offset" value and know to fetch those specific records. So it's not entirely simple, but it would allow you to display 13k points, though not all at once.

--
Greg Allensworth
Web GIS Developer, GreenInfo Network
BS  A+  Network+  Security+  Linux+  Server+
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to