I've been told that I have to make our current OpenLayers-based site faster, in IE6-8. I know IE sucks both in their implementation of JavaScript, and using VML instead of SVG. I also know that we're way over the recommended number of features[1] and coordinates[2].

We have 700-800 roads in a GeoJSON file, that have been simplified using PostGIS's ST_Simplify with a value of 850. The GeoJSON file is a static file, generated periodically, and weighs-in at ~500 KB.

The simplified site can be found at [3]. The full version can be found at [4]. Currently, both sites take 30-60 seconds to load in IE.

The problem is that every single road needs to produce text when a user has their mouse over it. I'm not allowed to implement things on-click. I'm not allowed to use WFS to only load the roads visibile based on zoom/bounds. I'm not allowed to reduce the number of roads.

With all of these restrictions, does anyone have any idea of how I can speed this up?

[1] http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#WhyisMyMapSluggishwhenIAdd500Markers [2] http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#WhatisthemaximumnumberofCoordinatesFeaturesIcandrawwithaVectorlayer
[3] http://map1.telenium.ca/sk.devel/en.html
[3] http://map1.telenium.ca/sk/en.html
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to