[OpenLayers-Dev] OpenLayers performance
Volker.Mische at lisasoft.com
Tue Apr 8 19:27:44 EDT 2008
I made a patch once that doesn't trigger on every mouse move but on
every n-th move. You can find it there:
Tomas Novotny wrote:
> 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.
> Tomas Novotny
> Dev mailing list
> Dev at openlayers.org
More information about the Dev