[OpenLayers-Users] gml lines in IExplorer

emmexx emmexx at tiscalinet.it
Thu Oct 22 13:34:24 EDT 2009


I'm having problems loading gml lines when using internet explorer (7).

I use the following code (excerpts):

vlayer = new OpenLayers.Layer.Vector("mylayer",
	{
                projection: map.displayProjection,
				transitionEffect: 'resize'
	}
);

var inobj = new OpenLayers.Format.GML();	
for (var key in phptrack)
{
	if (!isNaN(key))
	{
		y=inobj.read(URLDecode(phptrack[key].Segment.gpstrack));
		vlayer.addFeatures(y);
	}
}

The for loop reads a javascript variable, phptrack, that holds the lines
in gml format.
There are about 60 lines with 3300 vertices.
Firefox 3.5 loads the lines pretty fast, all the page loads in less then
10 seconds, google satellite map included.

In ie the page takes ages to load, at least 15 minutes, ie hangs with
the process running at 97% of cpu , the fan can be heard tens of meters
away from the laptop ;-)

I can't understand the big difference in the behaviour of ie and ff.
Even with less lines, 5 ie is so slow.

What can I do?

Thank you
	maxx






More information about the Users mailing list