<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>hi</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>i think you can unselect layer from the legend block by simply
writing their id (the layer id is what you used in the layers.ini file) with a
"!" in front.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>so, for example with the demoCW3, you have the
layers "</FONT><FONT size=3>road" and "icelan" defined in the layers.ini
and you dont want them to be listed in the legend, you write</FONT></DIV>
<DIV><PRE class=programlisting>blocks.legend.content = "!road, !iceland"</PRE><PRE class=programlisting>(dont forget to remove the ; at the front of the line!)</PRE><PRE class=programlisting>regards</PRE><PRE class=programlisting>Oliver</PRE></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=bmw@benwyss.com href="mailto:bmw@benwyss.com">bmw@benwyss.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, September 26, 2007 8:35
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] Omit layers
from PDF legend</DIV>
<DIV><BR></DIV><O:P>Hello</O:P>
<P class=MsoNormal>I would like to omit some layers from appearing on the PDF
ledged. I noticed that in the ClientExportPdf.php file, there is a note that
<I>‘layers whose ids begin with "!" are not displayed’</I>. Am I on the right
track with this? What is a layers ‘layer id’? </P>
<P class=MsoNormal>I have also noticed that the PDF legend is using the
Layers.example.children = <SPAN> </SPAN><I>examplename</I> as the name
for the layer in the legend in my layers.ini file. </P>
<P class=MsoNormal>Thank you for the help, Ben</P>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>