[OpenLayers-Dev] OpenLayers performance

Tim Schaub tschaub at openplans.org
Tue Apr 8 13:15:51 EDT 2008


Hey-

I've got a half baked patch that gives the map a drag method.  This 
bypasses all center calculations until the drag ends (and only adjusts 
the position of the layer containers).  Works well except with 
commercial layers.  Given some more time, I'll fix it up.

Tim

Tomas Novotny wrote:
> Hi,
> 
> I'm after few months of using OpenLayers (OL). I've built some 
> application on OL and appreciated it's architecture for good extensibility.
> But when things come to performance of such common task as panning 
> (moving a map with mouse), I am really dissatisfied.
> The way the panning is implemented is everything but not 
> browser-friendly. There is coord2pixel and pixel2coord processing on 
> several places in those moveTo() and setCenter() methods on every mouse 
> move and it is only part of the problem. A tried to prune OL for tests 
> to just moving map div with one empty layer and things were still the 
> same. You can feel lags as you are moving map from side to side, up and 
> down. When you try to compare it with ie. GoogleMaps you can really feel 
> the difference.
> I haven't seen any OL example with better feeling so I think it's a 
> matter of source architecture, not bug.
> What I'm trying to say? I found out that OL are good for building robust 
> applications where wide functionality is the goal, not the performance. 
> If I'm not right and making something wrong please tell me.
> 
> 
> Regards,
> 
> Tomas Novotny
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
> 
> !DSPAM:4033,47fa3f4c271318362916074!
> 




More information about the Dev mailing list