[OpenLayers-Dev] adding markers is slow in IE

Pierre GIRAUD bluecarto at gmail.com
Thu Jun 7 13:11:57 EDT 2007


Does anyone has any idea why adding Markers to a Marker layer is much
slower in IE than in Firefox ?

The following code takes 3 to 4 secondes and up to 20 secondes or more in IE :

for (var i = 0; i < 500; i++) {
                var x = Math.random() * 100;
                var y = Math.random() * 100;
                var marker=new OpenLayers.Marker(new OpenLayers.LonLat(x,y));
                markers.addMarker(marker);
}

Regards

Pierre



More information about the Dev mailing list