[maplab-users] "Long legend" issues...

kgrootendorst at baird.com kgrootendorst at baird.com
Fri Jun 10 08:50:47 EDT 2005


I was able to implement the scrolling legend by modifying the legend 
parameters in my *_contents.php file.
Specifically, I modified the following section:

<!----------------------->
<!-- BEGIN DRAW LEGEND -->
<!----------------------->
<tr><td align=center>

<div id="legend" 
style="position:relative;width:168px;height:420px;overflow: auto">
<table border=0 cellspacing=2 cellpadding=0 width="150">
<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>
<tr><td bgcolor="#999999" colspan=3><img src="images/a_pixel.gif" 
width="1" height="1"></td></tr>
<?php
// display the results Of the processLegendTemplate() function
echo $szLegendTemplate;
?>
</div>
<tr><td colspan=3><img src="images/a_pixel.gif" width="1" 
height="10"></TD></tr>
</table>
<!--------------------->
<!-- END DRAW LEGEND -->
<!--------------------->

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.

Hope this helps.

Kevin
______________________________



<expander at mail.com> 
Sent by: <maplab-users-bounces at lists.maptools.org>
06/10/2005 05:45 AM

To
<maplab-users at lists.maptools.org>
cc

Subject
[maplab-users] "Long legend" issues...






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

Dear All,


I'm not still able to resolve issues referred to "long legend" 
problems generated by MapServer when you use several layers.
Main problem is that when generated legend is very long you are 
forced to scroll relative map page.
Specer Cox in his post 
http://lists.maptools.org/pipermail/maplab-users/2005-April/001689.html 
suggested to use <div> element to resolve this issue but, sincerely, 
I don't understand WHERE "div" element has to place...
Another suggested solution comes from Jean-Francois Doyon: in his 
post 
http://lists.dmsolutions.ca/pipermail/maplab-users/2002-November/000369.html 

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 at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/maplab-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20050610/662184a4/attachment.html


More information about the Maplab-users mailing list