Thanks again, Chris. I went ahead and applied some GROUPs to my mapfile and things are working great. Indeed, there is a performance hit, but I'm not working with more than a few layers at this time.<br><br>Really it's quite amazing how much functionality ka-map provides by default. Strong kudos to the developers.
<br><br>Matt<br><br><div><span class="gmail_quote">On 7/18/06, <b class="gmail_sendername">Chris Brown</b> &lt;<a href="mailto:chris@basebloc.com">chris@basebloc.com</a>&gt; 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="blue" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Hi Matt, </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">The functionality with the tick boxes in
the reference box is standard ka-map functionality, if your layers are divided
into groups within your map file, each group represented within that map file
will be represented as a separate layer which can be turned on or off or have
its Z position changed. Any layers that are not put into a GROUP will be put in
a layer named Base.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Try adding a the group code I gave you to
one of the layers in your map file and then refresh your ka-map app to see what
happens!</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Chris</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> <a href="mailto:aiguy82@gmail.com" title="mailto:aiguy82@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
aiguy82@gmail.com</a>
[mailto:<a href="mailto:aiguy82@gmail.com" title="mailto:aiguy82@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">aiguy82@gmail.com</a>] <b><span style="font-weight: bold;">On Behalf Of </span>
</b>Matthew
Kane<br>
<b><span style="font-weight: bold;">Sent:</span></b> 19 July 2006 03:13<br>
<b><span style="font-weight: bold;">To:</span></b> Base Bloc<br>
<b><span style="font-weight: bold;">Cc:</span></b> <a href="mailto:ka-map-users@lists.maptools.org" title="mailto:ka-map-users@lists.maptools.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ka-map-users@lists.maptools.org
</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [ka-Map-users] toggle
layers?</span></font></p>

</div></div><div><span class="e" id="q_10c8416b3b00dee7_1">

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">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" title="http://geo.maunsell.com/kamapaus/aus.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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/" title="http://casoilresource.lawr.ucdavis.edu/kamap/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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</span></font></p>

<div>

<p><span><font face="Times New Roman" size="3"><span style="font-size: 12pt;">On 7/17/06, <b><span style="font-weight: bold;">Base
Bloc</span></b> &lt;<a href="mailto:chris@basebloc.com" title="mailto:chris@basebloc.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">chris@basebloc.com</a>&gt;
wrote:</span></font></span></p>

<div>

<div link="blue" vlink="purple">

<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;">&nbsp;</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;">&nbsp;</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;">&nbsp;</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;">LAYER</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp; NAME &quot;DEM&quot;</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp; GROUP&nbsp;&nbsp; &quot;Base Map&quot;</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp; DATA &quot;dem_colour8bit.tif&quot;</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp; TYPE RASTER</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp; STATUS ON</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp;</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;">&nbsp;</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;">&nbsp;</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;">&nbsp;</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"><span style="font-size: 10pt;">&nbsp;</span></font></p>

</div>

</div>

</div>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
_______________________________________________<br>
ka-Map-users mailing list<br>
<a href="mailto:ka-Map-users@lists.maptools.org" title="mailto:ka-Map-users@lists.maptools.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ka-Map-users@lists.maptools.org
</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/ka-map-users" title="http://lists.maptools.org/mailman/listinfo/ka-map-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.maptools.org/mailman/listinfo/ka-map-users
</a><br>
<br>
</span></font></p>

</div>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p></span></div><div>

<p><font face="Times New Roman" size="2"><span style="font-size: 10pt;">--<br>
No virus found in this incoming message.<br>
Checked by AVG Free Edition.<br>
Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18/07/2006</span></font></p>

</div>

</div>


<br>

<p><font size="2">--<br>
No virus found in this outgoing message.<br>
Checked by AVG Free Edition.<br>
Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18/07/2006<br>
</font> </p>

</div></blockquote></div><br>