[OpenLayers-Users] Issue with large zoom level increase in Chrome

Martin Davis mtnclimb at gmail.com
Tue Dec 1 13:25:28 PST 2015


We've just noticed a fatal issue using OL2 in Chrome, when zooming in by
large amount.  (This  happens when zooming to a very small extent, or when
the user flicks the mouse wheel by a large amount).  The effect is that the
Chrome process goes away for a while and then dies.

The issue appears to be caused by the Grid tile backbuffer.  The new tile
images for the zoom level are positioned by setting their offset position
and size via the style properties.  For a large zoom these values are very
large.  Chrome hangs when it sets the position top value [1].

Interestingly this is not a problem in IE 10 - it handles the large
position values, and completes the zoom with no problem.

Anyone else noticed this?  Any ideas for a workaround or a code fix ?

[1]
https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Layer/Grid.js#L685
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20151201/0c5e5289/attachment.html>


More information about the Users mailing list