This is very fast in all browsers:
var curLayer = new OpenLayers.Layer.Text("layer", { location: "test.txt"});
map.addLayer(curLayer);
However, the following code is fast in Firefox and Chrome, but incredibly slow in IE8 (loading 500 features takes 30 minutes!):
var curLayer = new OpenLayers.Layer.Vector("layer", {
protocol: new OpenLayers.Protocol.HTTP({
url: "test.txt",
format: new OpenLayers.Format.Text()
})
});
map.addLayer(curLayer);
By number of reasons I'd prefer to use OpenLayers.Layer.Vector
, but cannot due to the IE performance issue.
Does anybody know a good solution? Finally I need to load on a map a lot of clickable point features with customizable popups.