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 "invalid array length" error. <br>
<br>Appreciate any help in this matter. Not sure if this is a bug<br><br>thank you <br><br>//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><br>
var options = {<br> maxExtent: new OpenLayers.Bounds(1310280, 377296, 1471285, 484991),<br> scales: [192000,144000,96000,72000,48000,24000,12000,9600,4800,3600,2400,1200,600,300],<br> units: 'ft',<br>
}<br><br>var map = new OpenLayers.Map($('map'),options);<br><br>var lyr1= new OpenLayers.Layer.KaMap(<br> 'Aerial Photos',<br> ['<a href="http://cagismaps.hamilton-co.org/kacache'">http://cagismaps.hamilton-co.org/kacache'</a>],<br>
{'tilesource':'cache','metaTileSize': {w:6,h:6},'fileextension':'.jpg','i':'JPEG','map':'mapbase_orthos','g':'Aerial Photos'},<br>{'isBaseLayer': false,'opacity':1,'buffer':2,<br>
'minScale':300,'maxScale':192000}<br>);<br><br>var lyr2= new OpenLayers.Layer.KaMap(<br>'Civil Boundaries',<br>'<a href="http://cagismaps1.hamilton-co.org/kacache">http://cagismaps1.hamilton-co.org/kacache</a>',<br>
{'tilesource':'cache','metaTileSize': {w:6,h:6},'fileextension':'.png','i':'png24','map':'mapbase','g':'Civil Boundaries'},<br>{'isBaseLayer': false,'opacity':0.6,'buffer':2,<br>
'minScale':12000,'maxScale':192000}<br>);<br>//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><br>