[OpenLayers-Users] OpenLayers 2.13-RC2 hangs in IE and Chrome on zooming/paning

Andreas Hocevar ahocevar at opengeo.org
Wed Jun 5 15:09:30 PDT 2013


This is indeed a regression. See
https://github.com/openlayers/openlayers/pull/996 for a fix.

Andreas.


On Mon, Jun 3, 2013 at 11:04 AM, Rune Madsen <rm.at.jo at gmail.com> wrote:

> Hi Bart****
>
> ** **
>
> I tried to use RC5 and using the TileManager, we can still provoke the
> browser to freeze, both in chrome and IE, but it  require more violent
> movement and zooming at the inner most level to trigger the freeze (we use
> the code in 1).****
>
> ** **
>
> However if we modified the code to 2) (adding transitionEffect=null,
> zoomMethod= null) then it freeze when drawing a rectangle to zoom at the
> last zoom level both in IE and chrome. ****
>
> ** **
>
> Any ideas?****
>
> ** **
>
> 1)****
>
> <!DOCTYPE html>****
>
> <html>****
>
>   <head>****
>
>     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">***
> *
>
>     <meta name="viewport" content="width=device-width, initial-scale=1.0,
> maximum-scale=1.0, user-scalable=0">****
>
>     <meta name="apple-mobile-web-app-capable" content="yes">****
>
>     <title>OpenLayers Basic OSM Example</title>****
>
>     <link rel="stylesheet"
> href="lib/OpenLayers-2.13-rc5/theme/default/style.css" type="text/css">***
> *
>
>     <script src="lib/OpenLayers-2.13-rc5/lib/OpenLayers.js"></script>****
>
>     <script type="text/javascript">****
>
>         var map, layer;****
>
>         function init(){****
>
>             map = new OpenLayers.Map({div: 'map', tileManager: new
> OpenLayers.TileManager() });****
>
>            layer = new OpenLayers.Layer.OSM("OSM", null, null);****
>
>             map.addLayer(layer);****
>
>             map.zoomToMaxExtent();****
>
>         }****
>
>     </script>****
>
>   </head>****
>
>   <body onload="init()">****
>
> ** **
>
>     <div id="map" style="width:800px;height:700px"></div>****
>
> ** **
>
>  </body>****
>
> </html>****
>
> ** **
>
> 2)****
>
> <!DOCTYPE html>****
>
> <html>****
>
>   <head>****
>
>     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">***
> *
>
>     <meta name="viewport" content="width=device-width, initial-scale=1.0,
> maximum-scale=1.0, user-scalable=0">****
>
>     <meta name="apple-mobile-web-app-capable" content="yes">****
>
>     <title>OpenLayers Basic OSM Example</title>****
>
>     <link rel="stylesheet"
> href="lib/OpenLayers-2.13-rc5/theme/default/style.css" type="text/css">***
> *
>
>     <script src="lib/OpenLayers-2.13-rc5/lib/OpenLayers.js"></script>****
>
>     <script type="text/javascript">****
>
>         var map, layer;****
>
>         function init(){****
>
>             map = new OpenLayers.Map({div: 'map', tileManager: new
> OpenLayers.TileManager(), zoomMethod: null });****
>
>            layer = new OpenLayers.Layer.OSM("OSM", null, {
> transitionEffect: null});****
>
>             map.addLayer(layer);****
>
>             map.zoomToMaxExtent();****
>
>         }****
>
>     </script>****
>
>   </head>****
>
>   <body onload="init()">****
>
> ** **
>
>     <div id="map" style="width:800px;height:700px"></div>****
>
> ** **
>
>  </body>****
>
> </html>****
>
> ** **
>
> ** **
>
> *From:* Bart van den Eijnden [mailto:bartvde at opengeo.org]
> *Sent:* 31. maj 2013 14:12
> *To:* Rune Madsen
> *Cc:* openlayers-users at lists.osgeo.org
> *Subject:* Re: [OpenLayers-Users] OpenLayers 2.13-RC2 hangs in IE and
> Chrome on zooming/paning****
>
> ** **
>
> I'd suggest looking at what Andreas suggests here:****
>
> ** **
>
> https://github.com/openlayers/openlayers/issues/991****
>
> ** **
>
> Please try it out and report back. Also please try the latest RC so RC5
> instead of RC2.****
>
> ** **
>
> Best regards,****
>
> Bart****
>
> ** **
>
> --
> Bart van den Eijnden
> OpenGeo - http://opengeo.org
> Expert service straight from the developers.****
>
> ** **
>
> ** **
>
> ** **
>
> On May 31, 2013, at 2:07 PM, Rune Madsen <rm.at.jo at gmail.com> wrote:****
>
>
>
> ****
>
> Hi****
>
>  ****
>
> We have a customer who use IE10 and then we tried to upgrade the
> OpenLayers to the new OpenLayers-2.13-RC2 to get around the grid bug in
> IE10. However when zoom fast around in both IE9 and chrome (27.0.1453)
> using only the OSM layer as baselayer the browser get stuck and we get the
> "long script detected" dialog to kill the script. We have found at the
> inner most level. Have anybody else seen this problem? I have not tested it
> in IE10.****
>
>  ****
>
> We use the sample code to test with:****
>
>  ****
>
> <!DOCTYPE html>****
>
> <html>****
>
>   <head>****
>
>     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">***
> *
>
>     <meta name="viewport" content="width=device-width, initial-scale=1.0,
> maximum-scale=1.0, user-scalable=0">****
>
>     <meta name="apple-mobile-web-app-capable" content="yes">****
>
>     <title>OpenLayers Basic OSM Example</title>****
>
>     <link rel="stylesheet"
> href="lib/OpenLayers-2.13-rc2/theme/default/style.css" type="text/css">***
> *
>
>     <script src="lib/OpenLayers-2.13-rc2/lib/OpenLayers.js"></script>****
>
>     <script type="text/javascript">****
>
>         var map, layer;****
>
>         function init(){****
>
>             map = new OpenLayers.Map({div: 'map' });****
>
>                                  layer = new OpenLayers.Layer.OSM("OSM",
> null, {transitionEffect: null});****
>
>             map.addLayer(layer);****
>
>             map.zoomToMaxExtent();****
>
>         }****
>
>     </script>****
>
>   </head>****
>
>   <body onload="init()">****
>
>  ****
>
>     <div id="map" style="width:800px;height:700px"></div>****
>
>  ****
>
>   </body>****
>
> </html>****
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users****
>
> ** **
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130606/843c1aca/attachment-0001.html>


More information about the Users mailing list