<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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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&#39;s a &quot;WMS Untiled&quot; example you can view the source of. The singleTile option goes in the &quot;options&quot; object as opposed the &quot;params&quot; 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&#39;s nothing you have to do on the MapServer side. Looks like your OL config is wrong<br>
&gt; though. I think &#39;singleTile&#39; 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&#39;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&#39; 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+&#39;.map&#39;;<br>
&gt; twms1 = new OpenLayers.Layer.WMS(<br>
&gt; layer_tablename,&quot;<a href="http://localhost/cgi-bin/mapserv" target="_blank">http://localhost/cgi-bin/mapserv</a>?&quot;,<br>
&gt; { map: mapfile,<br>
&gt; &nbsp; &nbsp;transparent: &#39;true&#39;, layers:layer_tablename,<br>
&gt; &nbsp; &nbsp;format: &#39;image/png&#39;,<br>
&gt; &nbsp; &nbsp;projection:&quot;EPSG:4326&quot;,reproject:false,<br>
&gt; &nbsp; &nbsp;units: &quot;m&quot;,<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>