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: , , ,

New MAP metadata

I hace decided to use the same strategy of "is the layer queryable" but this time to the WCS so that users can download the layers, by simplely clicking in a small icon

The first thing is that information concerning the layer is has to be indicated in the MAP file as metadata and then retrived by kamap

Now the MAP file to have a WCS layer downloaded by the Kamap needs the following metadata

METADATA
"download" "true"
END

Labels: , , , ,