<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Steve,<div><br></div><div>can you show us an example to reproduce this?</div><div><br></div><div>Best regards,</div><div>Bart</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>-- <br>Bart van den Eijnden<br>OpenGeo - <a href="http://opengeo.org/">http://opengeo.org</a><br>Expert service straight from the developers.</div><div><br></div></span><br class="Apple-interchange-newline">

</div>
<br><div><div>On Jun 7, 2013, at 9:45 PM, <a href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<br><font size="2" face="sans-serif">Hi,</font>
<br><font size="2" face="sans-serif">We have a problem with OL2.13 in Google
Chrome only.</font>
<br><font size="2" face="sans-serif">Here is the error message: Uncaught
RangeError: Invalid array length </font>
<br><font size="2" face="sans-serif">Layer.js line 1050</font>
<br>
<br><font size="2" face="sans-serif">It seems to be related to this issue
<a href="http://trac.osgeo.org/openlayers/ticket/3621">http://trac.osgeo.org/openlayers/ticket/3621</a></font>
<br>
<br><font size="2" face="sans-serif">it fails because numZoomLevels is NaN</font>
<br><font size="2" face="sans-serif">But this code at line 1042 should manage
that....</font>
<br>
<br><font size="2" face="sans-serif">// are we able to calculate resolutions?</font>
<br><font size="2" face="sans-serif">        if(typeof
numZoomLevels !== "number" || numZoomLevels <= 0 ||  
(typeof maxResolution !== "number" &&     typeof
minResolution !== "number")) {</font>
<br><font size="2" face="sans-serif">           
return;</font>
<br><font size="2" face="sans-serif">        }</font>
<br>
<br>
<br><font size="2" face="sans-serif">I fix it adding isNaN(numZoomLevels)</font>
<br><font size="2" face="sans-serif">// are we able to calculate resolutions?</font>
<br><font size="2" face="sans-serif">        if(isNaN(numZoomLevels)
|| typeof numZoomLevels !== "number" || numZoomLevels <= 0
||</font>
<br><font size="2" face="sans-serif">           (typeof
maxResolution !== "number" &&</font>
<br><font size="2" face="sans-serif">           
    typeof minResolution !== "number")) { </font>
<br><font size="2" face="sans-serif">           
return;</font>
<br><font size="2" face="sans-serif">        }</font>
<br>
<br><font size="2" face="sans-serif">I went on github but could not find
the issue.</font>
<br><font size="2" face="sans-serif">So I submit here</font>
<br><font size="2" face="sans-serif">Steve</font>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/openlayers-users<br></blockquote></div><br></div></body></html>