Jesus Loves GRASS

Technical blog about GRASS/GIS,open source geoinformatics and MAPSERVER.

Sunday, April 15, 2007

Let there be KaLEGEND

To start the KaLegend object has its options defined in the myOnload() function of the StartUp.js (which is located in the /tools/kaAqua path....)

I defined the option of download like the other properties:

legendOptions.download = typeof gbLegendDownloadControl != 'undefined' ? gbLegendDownloadControl : true;

the gbLegendDownloadControl is not necessary, it is just here to look good :)

jumping to the kaLengend constructor in the kaLegend.js, It was added a new property:

this.showDownloadControl=true;

and some codelines lower:

this.showDownloadControl = typeof options.download != 'undefined' ? options.download : true;

the standard options is to show the controls unless otherwise defined in the options.download

Labels: , , ,

0 Comments:

Post a Comment

<< Home