[OpenLayers-Users] Drag feature control slow in IE

Andre Pereira de Matos andre.matos at co.sapo.pt
Tue Jan 13 09:43:46 EST 2009


Hi list,

I have done an example with a draggable feature (with DragFeatureControl). In Firefox, Google Chrome works fine... But when I drag it on IE it is very slow...

The code used is:

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

markersLayer = new OpenLayers.Layer.Vector("Markers",
                                                                                                              {
                                                                                                                             projection: new OpenLayers.Projection("EPSG:4326"),
                                                                                                                             styleMap: new OpenLayers.StyleMap({
                                                                                                                                             externalGraphic: "http://openlayers.org/dev/img/marker-gold.png",
                                                                                                                                             backgroundGraphic: "http://openlayers.org/dev/examples/marker_shadow.png",
                                                                                                                                             graphicYOffset: -20,
                                                                                                                                             backgroundXOffset: 0,
                                                                                                                                             backgroundYOffset: -17,
                                                                                                                                             pointRadius: 10
                                                                                                                             })
                                                                                                              }
                );

                map.addLayer(markersLayer);
                feature1 = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(-1904105.3415234375, 4392319.753066596));
                feature2 = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(-1504105.3415234375, 4392319.753066596));
                markersLayer.addFeatures([feature1, feature2]);

                var ccontrol = new OpenLayers.Control.DragFeature(markersLayer);
                map.addControl(ccontrol);
                ccontrol.activate();

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Any suggestions? Is it a bug? Will it be fixed?

Regards,
André Matos
http://maps.sapo.pt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090113/6d47f91d/attachment.html


More information about the Users mailing list