<!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.
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> </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. <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><<A
href="mailto:Steve.Lime@dnr.state.mn.us">Steve.Lime@dnr.state.mn.us</A>></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> <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>>>> Subha Ramakrishnan <<A
href="mailto:subha@gslab.com">subha@gslab.com</A>> 10/07/08 9:58 AM
>>><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>> There's nothing you have
to do on the MapServer side. Looks like your OL config is wrong<BR>>
though. I think 'singleTile' is set in the wrong configuration object,
perhaps others are in<BR>> the wrong place too.<BR>><BR>>
Steve<BR>><BR>><BR>>>>> Subha Ramakrishnan <<A
href="mailto:subha@gslab.com">subha@gslab.com</A>> 10/07/08 1:30 AM
>>><BR>>>>><BR>> Hi,<BR>><BR>> I am using
mapserver 5.0.2 with openlayers.<BR>> I've a problem while creating a
legend for a map from mapserver.When i<BR>> try to overlay the image from
the mapserver on openlayers' base map, the<BR>> images are rendered in
tiles, and every tile has a legend and is limited<BR>> by the size of the
tile. So, i see lots of legends on the map and only<BR>> half of them are
visible as it is restricted by the tile size.<BR>><BR>> This is my
request to mapserver from openlayers<BR>><BR>> var mapfile =
layer_tablename+'.map';<BR>> twms1 = new OpenLayers.Layer.WMS(<BR>>
layer_tablename,"<A href="http://localhost/cgi-bin/mapserv"
target=_blank>http://localhost/cgi-bin/mapserv</A>?",<BR>> { map:
mapfile,<BR>> transparent: 'true',
layers:layer_tablename,<BR>> format: 'image/png',<BR>>
projection:"EPSG:4326",reproject:false,<BR>>
units: "m",<BR>> singleTile: true<BR>>
},{numZoomLevels : MaxZoomLevel});<BR>>
map.addLayer(twms1);<BR>><BR>> I am using the option of singleTile. Is
there any setting to be done in<BR>> the map file or mapserver for it
render a single tile/single legend per<BR>> image?<BR>><BR>> Thank
you.<BR>><BR>> Regards,<BR>> Subha<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>><BR>><BR>><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>