We have an application that works fine with the following code. However,
testing it with the subversion trunk downloaded on feb 29th,
Setting the maxscale and min scale on the kamap layers results in getting an
"invalid array length" error.

Appreciate any help in this matter. Not sure if this is a bug

thank you

//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
      var options = {
        maxExtent: new OpenLayers.Bounds(1310280, 377296, 1471285, 484991),
          scales:
[192000,144000,96000,72000,48000,24000,12000,9600,4800,3600,2400,1200,600,300],
          units: 'ft',
      }

var map = new OpenLayers.Map($('map'),options);

var lyr1= new OpenLayers.Layer.KaMap(
 'Aerial Photos',
 ['http://cagismaps.hamilton-co.org/kacache'],
 {'tilesource':'cache','metaTileSize':
{w:6,h:6},'fileextension':'.jpg','i':'JPEG','map':'mapbase_orthos','g':'Aerial
Photos'},
{'isBaseLayer': false,'opacity':1,'buffer':2,
'minScale':300,'maxScale':192000}
);

var lyr2= new OpenLayers.Layer.KaMap(
'Civil Boundaries',
'http://cagismaps1.hamilton-co.org/kacache',
{'tilesource':'cache','metaTileSize':
{w:6,h:6},'fileextension':'.png','i':'png24','map':'mapbase','g':'Civil
Boundaries'},
{'isBaseLayer': false,'opacity':0.6,'buffer':2,
'minScale':12000,'maxScale':192000}
);
//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev

Reply via email to