Thanks so much for your help, Chris.<br><br>I'm not familiar with defining groups in mapfiles, but I think my question is more oriented towards javascript or dhtml. To be clearer about toggling layers, look at this page, where there are checkboxes down by the legend, where you can turn a layer on and off:
<br><a href="http://geo.maunsell.com/kamapaus/aus.html">http://geo.maunsell.com/kamapaus/aus.html</a><br>In contrast, the following site doesn't have checkboxes by the legend:<br><a href="http://casoilresource.lawr.ucdavis.edu/kamap/">
http://casoilresource.lawr.ucdavis.edu/kamap/</a><br><br>My ka-map demo that I downloaded and configured is just like the second site I mention above. However, I'd like to be able to have those checkboxes in the legend so I can turn layers on and off. Is this a straightforward thing to do? Any help would be greatly appreciated.
<br><br>Thanks a lot,<br>Matt<br><br><div><span class="gmail_quote">On 7/17/06, <b class="gmail_sendername">Base Bloc</b> <<a href="mailto:chris@basebloc.com">chris@basebloc.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hi Matt,</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">The current query system is just an example of the variables
available to you with which to perform a query, if you want something other
than the alert box you will need to change the function myQuery() in startUp.js
to suit your needs, you could trigger a popup window and use for example the
extent to find points within the selected area by querying a MySQL or PostGIS
database. Or if you don't want pop-ups use getXMLHTTP() and other
functions in xhr.js (AJA'X') to fetch the results and display them
in the innerHTML of a DIV tag, you could then open and close the DIV tags
containing the data in the same way as has been done with the reference panel,
to see how this works look at the togglereference() function in startup.js. </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">As for the toggling of layers, I'm not sure what you
mean? At present you can turn on and off groups (Is this in the Wiki? I can't
see it), to achieve this you place layers in a map file into groups in your map
file like so:</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;">LAYER</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;"> NAME "DEM"</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;"> GROUP
"Base Map"</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;"> DATA
"dem_colour8bit.tif"</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;"> TYPE RASTER</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;"> STATUS ON</span></font></p>
<p style=""><font face="Courier New" size="2"><span style="font-size: 10pt;"> </span></font></p>
<p><font face="Courier New" size="2"><span style="font-size: 10pt;">END</span></font></p>
<p><font face="Courier New" size="2"><span style="font-size: 10pt;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">You could do this for every layer, but if it is done more
than a couple of times it can really effect performance on slower connections
as when you add a new group is doubles the number of tiles to be downloaded.</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hope this helps a little.</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Chris</span></font></p>
<p><font face="Times New Roman" size="2"> </font></p>
</div>
</div>
</div><br>_______________________________________________<br>ka-Map-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.maptools.org/mailman/listinfo/ka-map-users" target="_blank">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br><br><br></blockquote>
</div><br>