<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=296110319-07102008><FONT face=Arial color=#0000ff size=2>Or, 
just a straight mode=legend request to the CGI if you are using MapServer.&nbsp; 
You can pass in your extent, that will manage the scale-dependent 
layers.</FONT></SPAN></DIV>
<DIV><SPAN class=296110319-07102008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296110319-07102008><FONT face=Arial color=#0000ff 
size=2>David.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  mapserver-users-bounces@lists.osgeo.org 
  [mailto:mapserver-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Roger 
  André<BR><B>Sent:</B> Tuesday, October 07, 2008 12:06 PM<BR><B>To:</B> Steve 
  Lime<BR><B>Cc:</B> mapserver-users@lists.osgeo.org<BR><B>Subject:</B> Re: 
  [mapserver-users] Creating legend<BR><BR></FONT></DIV>
  <DIV dir=ltr>Also, you might want to consider making a separate 
  GetLegendGraphic WMS request and putting the legend in a separate DIV element 
  in your web page.&nbsp; <BR><BR>Just an idea.<BR>--<BR><BR>
  <DIV class=gmail_quote>On Tue, Oct 7, 2008 at 8:22 AM, Steve Lime <SPAN 
  dir=ltr>&lt;<A 
  href="mailto:Steve.Lime@dnr.state.mn.us">Steve.Lime@dnr.state.mn.us</A>&gt;</SPAN> 
  wrote:<BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Visit:<BR><BR>&nbsp;<A 
    href="http://www.openlayers.org/dev/examples/example-list.html" 
    target=_blank>http://www.openlayers.org/dev/examples/example-list.html</A><BR><BR>and 
    search for untiled. There's a "WMS Untiled" example you can view the source 
    of. The singleTile option goes in the "options" object as opposed the 
    "params" object. Params get passed to the WMS service, options are handled 
    by OL.<BR><BR>Steve<BR><BR>&gt;&gt;&gt; Subha Ramakrishnan &lt;<A 
    href="mailto:subha@gslab.com">subha@gslab.com</A>&gt; 10/07/08 9:58 AM 
    &gt;&gt;&gt;<BR>
    <DIV>
    <DIV></DIV>
    <DIV class=Wj3C7c>Hi Steve,<BR>It would be great if you can give me an 
    example or tell me where it is<BR>usually set in OL.<BR>Thanks for your 
    help.<BR><BR>Subha<BR><BR>Steve Lime wrote:<BR>&gt; There's nothing you have 
    to do on the MapServer side. Looks like your OL config is wrong<BR>&gt; 
    though. I think 'singleTile' is set in the wrong configuration object, 
    perhaps others are in<BR>&gt; the wrong place too.<BR>&gt;<BR>&gt; 
    Steve<BR>&gt;<BR>&gt;<BR>&gt;&gt;&gt;&gt; Subha Ramakrishnan &lt;<A 
    href="mailto:subha@gslab.com">subha@gslab.com</A>&gt; 10/07/08 1:30 AM 
    &gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt; Hi,<BR>&gt;<BR>&gt; I am using 
    mapserver 5.0.2 with openlayers.<BR>&gt; I've a problem while creating a 
    legend for a map from mapserver.When i<BR>&gt; try to overlay the image from 
    the mapserver on openlayers' base map, the<BR>&gt; images are rendered in 
    tiles, and every tile has a legend and is limited<BR>&gt; by the size of the 
    tile. So, i see lots of legends on the map and only<BR>&gt; half of them are 
    visible as it is restricted by the tile size.<BR>&gt;<BR>&gt; This is my 
    request to mapserver from openlayers<BR>&gt;<BR>&gt; var mapfile = 
    layer_tablename+'.map';<BR>&gt; twms1 = new OpenLayers.Layer.WMS(<BR>&gt; 
    layer_tablename,"<A href="http://localhost/cgi-bin/mapserv" 
    target=_blank>http://localhost/cgi-bin/mapserv</A>?",<BR>&gt; { map: 
    mapfile,<BR>&gt; &nbsp; &nbsp;transparent: 'true', 
    layers:layer_tablename,<BR>&gt; &nbsp; &nbsp;format: 'image/png',<BR>&gt; 
    &nbsp; &nbsp;projection:"EPSG:4326",reproject:false,<BR>&gt; &nbsp; 
    &nbsp;units: "m",<BR>&gt; &nbsp; &nbsp;singleTile: true<BR>&gt; 
    },{numZoomLevels : MaxZoomLevel});<BR>&gt; 
    map.addLayer(twms1);<BR>&gt;<BR>&gt; I am using the option of singleTile. Is 
    there any setting to be done in<BR>&gt; the map file or mapserver for it 
    render a single tile/single legend per<BR>&gt; image?<BR>&gt;<BR>&gt; Thank 
    you.<BR>&gt;<BR>&gt; Regards,<BR>&gt; Subha<BR>&gt;<BR>&gt; 
    _______________________________________________<BR>&gt; mapserver-users 
    mailing list<BR>&gt; <A 
    href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A><BR>&gt; 
    <A href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" 
    target=_blank>http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR>&gt;<BR>&gt;<BR>&gt;<BR><BR><BR>_______________________________________________<BR>mapserver-users 
    mailing list<BR><A 
    href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A><BR><A 
    href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" 
    target=_blank>http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>