[OpenLayers-Users] Drag feature control slow in IE

Frédéric Junod frederic.junod at camptocamp.com
Tue Jan 13 10:02:35 EST 2009


Hi, 

Do you have the same issue with
http://openlayers.org/dev/examples/drag-feature.html ?

Your code looks reasonable to me ...

fredj

Le Tue, 13 Jan 2009 14:43:46 +0000,
Andre Pereira de Matos <andre.matos at co.sapo.pt> a écrit :

> 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
> 


-- 
Frédéric Junod
Camptocamp SA



More information about the Users mailing list