We have an application that works fine with the following code. However, testing it with the subversion trunk downloaded on feb 29th,<br>Setting the maxscale and min scale on the kamap layers results in getting an &quot;invalid array length&quot; error. <br>
<br>Appreciate any help in this matter. Not sure if this is a bug<br><br>thank you <br><br>//&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&nbsp; &nbsp;&nbsp;&nbsp; var options = {<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; maxExtent: new OpenLayers.Bounds(1310280, 377296, 1471285, 484991),<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; scales: [192000,144000,96000,72000,48000,24000,12000,9600,4800,3600,2400,1200,600,300],<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; units: &#39;ft&#39;,<br>
&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>var map = new OpenLayers.Map($(&#39;map&#39;),options);<br><br>var lyr1= new OpenLayers.Layer.KaMap(<br>&nbsp;&#39;Aerial Photos&#39;,<br>&nbsp;[&#39;<a href="http://cagismaps.hamilton-co.org/kacache&#39;">http://cagismaps.hamilton-co.org/kacache&#39;</a>],<br>
&nbsp;{&#39;tilesource&#39;:&#39;cache&#39;,&#39;metaTileSize&#39;: {w:6,h:6},&#39;fileextension&#39;:&#39;.jpg&#39;,&#39;i&#39;:&#39;JPEG&#39;,&#39;map&#39;:&#39;mapbase_orthos&#39;,&#39;g&#39;:&#39;Aerial Photos&#39;},<br>{&#39;isBaseLayer&#39;: false,&#39;opacity&#39;:1,&#39;buffer&#39;:2,<br>
&#39;minScale&#39;:300,&#39;maxScale&#39;:192000}<br>);<br><br>var lyr2= new OpenLayers.Layer.KaMap(<br>&#39;Civil Boundaries&#39;,<br>&#39;<a href="http://cagismaps1.hamilton-co.org/kacache">http://cagismaps1.hamilton-co.org/kacache</a>&#39;,<br>
{&#39;tilesource&#39;:&#39;cache&#39;,&#39;metaTileSize&#39;: {w:6,h:6},&#39;fileextension&#39;:&#39;.png&#39;,&#39;i&#39;:&#39;png24&#39;,&#39;map&#39;:&#39;mapbase&#39;,&#39;g&#39;:&#39;Civil Boundaries&#39;},<br>{&#39;isBaseLayer&#39;: false,&#39;opacity&#39;:0.6,&#39;buffer&#39;:2,<br>
&#39;minScale&#39;:12000,&#39;maxScale&#39;:192000}<br>);<br>//&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>