<br><font size=2 face="sans-serif">I was able to implement the scrolling
legend by modifying the legend parameters in my *_contents.php file.</font>
<br><font size=2 face="sans-serif">Specifically, I modified the following
section:</font>
<br>
<br><font size=2 face="sans-serif"><!-----------------------></font>
<br><font size=2 face="sans-serif"><!-- BEGIN DRAW LEGEND --></font>
<br><font size=2 face="sans-serif"><!-----------------------></font>
<br><font size=2 face="sans-serif"><tr><td align=center></font>
<br>
<br><font size=2 face="sans-serif"><div id="legend" style="position:relative;width:168px;height:420px;overflow:
auto"></font>
<br><font size=2 face="sans-serif"><table border=0 cellspacing=2 cellpadding=0
width="150"></font>
<br><font size=2 face="sans-serif"><tr><td colspan=3 bgcolor="black"><font
face="Arial, Helvetica, sans-serif" size="3" color="white">&nbsp;<img
src="images/icon_eye.gif" width="17" height="11"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Layers</b></font></td></tr></font>
<br><font size=2 face="sans-serif"><tr><td bgcolor="#999999"
colspan=3><img src="images/a_pixel.gif" width="1"
height="1"></td></tr></font>
<br><font size=2 face="sans-serif"><?php</font>
<br><font size=2 face="sans-serif">// display the results Of the processLegendTemplate()
function</font>
<br><font size=2 face="sans-serif">echo $szLegendTemplate;</font>
<br><font size=2 face="sans-serif">?></font>
<br><font size=2 face="sans-serif"></div></font>
<br><font size=2 face="sans-serif"><tr><td colspan=3><img
src="images/a_pixel.gif" width="1" height="10"></TD></tr></font>
<br><font size=2 face="sans-serif"></table></font>
<br><font size=2 face="sans-serif"><!---------------------></font>
<br><font size=2 face="sans-serif"><!-- END DRAW LEGEND --></font>
<br><font size=2 face="sans-serif"><!---------------------><br>
</font>
<br><font size=2 face="sans-serif">Note the <div></div> tags.
You can also change the 'overflow:auto' part to always show scroll
bars or to only display them when the legend exceeds the specified size.</font>
<br>
<br><font size=2 face="sans-serif">Hope this helps.</font>
<br>
<br><font size=2 face="sans-serif">Kevin</font><font size=5 color=blue face="Times New Roman"><br>
______________________________</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b><expander@mail.com></b>
</font>
<br><font size=1 face="sans-serif">Sent by: <maplab-users-bounces@lists.maptools.org></font>
<p><font size=1 face="sans-serif">06/10/2005 05:45 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif"><maplab-users@lists.maptools.org></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[maplab-users] "Long legend"
issues...</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt><p align=\"left\"><b><font
face=\"Arial\" size=\"2\">GFI MailSecurity's HTML
threat engine found HTML scripts in this email and has disabled them.</font></b></p>--<br>
<br>
Dear All,<br>
<br>
<br>
I'm not still able to resolve issues referred to "long legend"
<br>
problems generated by MapServer when you use several layers.<br>
Main problem is that when generated legend is very long you are <br>
forced to scroll relative map page.<br>
Specer Cox in his post <br>
http://lists.maptools.org/pipermail/maplab-users/2005-April/001689.html
<br>
suggested to use <div> element to resolve this issue but, sincerely,
<br>
I don't understand WHERE "div" element has to place...<br>
Another suggested solution comes from Jean-Francois Doyon: in his <br>
post <br>
http://lists.dmsolutions.ca/pipermail/maplab-users/2002-November/000369.html
<br>
he suggested to throw the legend into an <Xframe><!--...
again I don't
undestand where (and how) to place this element...
I think and suggest, as ideal solution and in order of complexity:
a) long legend should be divided in two or three column in left side
of main map page;
b) legend should be put in a frame where one may to scroll only it;
c) legend may be shown entirely but with possibility to hide or show
layers expanding or collapsing groups shown as tree structure.
How to make it possible? May someone help me?.
Many thanks.
- Exp.
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
_______________________________________________
Maplab-users mailing list
Maplab-users@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/maplab-users
</tt></font>
<br>