Gerben,<br>
<br>
&nbsp;&nbsp; Thanks!&nbsp; Setting &quot;OpenLayers.Layer.MapServer.Untiled&quot; did the trick.<br>
<br>
Cheers,<br>
<br>
Kar<br><br><div class="gmail_quote">On Fri, Oct 31, 2008 at 12:56 PM, Tiemens, Gerben <span dir="ltr">&lt;<a href="mailto:Gerben.Tiemens@grontmij.nl">Gerben.Tiemens@grontmij.nl</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;">






<div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"></font>&nbsp;</div>
<div><span><font color="#0000ff" face="Arial" size="2">This is can be due to the fact that a label will be printed on a maptile and the polygon or line is on both maptiles.&nbsp; The mapserver will adjust the placement of your label to
 fit on your tile due to your &quot;partials = false&quot; and position = auto</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font color="#0000ff" face="Arial" size="2">Setting openlayers in untiled, or using tilecache with metatiles, will solve your problem.</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font color="#0000ff" face="Arial" size="2">Greetings</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2">Gerben</font></span></div>
<div>&nbsp;</div>
<br>
<div dir="ltr" align="left" lang="nl">
<hr>
<font face="Tahoma" size="2"><b>Van:</b> <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>]
<b>Namens </b>Karl Suiter<br>
<b>Verzonden:</b> Friday, October 31, 2008 5:06 PM<br>
<b>Aan:</b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>; <a href="mailto:users@openlayers.org" target="_blank">users@openlayers.org</a><br>
<b>Onderwerp:</b> [mapserver-users] Multiple LabelItems using Mapserver 5.2 and Openlayers<br>
</font><br>
</div><div><div></div><div class="Wj3C7c">
<div></div>
Hello All,<br>
<br>
&nbsp; I&#39;m using Mapserver 5.2 and Openlayers 2.6 as my map interface.&nbsp; When called using Openlayers, Mapserver renders two LabelItems when the layer to be labels is of type &quot;polygon&quot;.&nbsp; I&#39;ve sort of fixed this issue by including PROCESSING &quot;LABEL_NO_CLIP=1&quot; in the
 Layer definition.<br>
<br>
&nbsp; So, for the most part, it works OK.&nbsp; But on some generated maps, I still see one Layer that still renders two Labels.<br>
<br>
&nbsp; I then noticed that if I tweaked the OpenLayers &quot;minScale&quot; value when defining a new map (see below), I could get suppression of the second label.<br>
<br>
&nbsp;&nbsp; var map = new OpenLayers.Map( &#39;map&#39;, {controls: [], maxExtent: bounds, restrictedExtent: bounds, projection:&quot;none&quot;, minScale: 10000, units: &quot;m&quot; } );&nbsp; // change the minScale to 15 to suppress the 2nd label<br>

<br>
&nbsp; I would like to remove the minScale variable from the Openlayers map definition, but that pesky second LabelItem keeps coming back.<br>
<br>
&nbsp; Has anyone seen/fixed this problem?&nbsp; Should I create a bug ticket.&nbsp; FYI - I am cross-posting to the OpenLayers listserve to see if anyone there has experienced this problem.<br>
<br>
&nbsp; Here is my Layer definition I&#39;ve been working with:<br>
<br>
&nbsp; LAYER<br>
&nbsp;&nbsp;&nbsp; NAME CR01<br>
&nbsp;&nbsp;&nbsp; STATUS OFF<br>
&nbsp;&nbsp;&nbsp; DATA cr.shp<br>
&nbsp;&nbsp;&nbsp; TYPE POLYGON<br>
&nbsp;&nbsp;&nbsp; CLASSITEM &quot;FIPS_ADMIN&quot;<br>
&nbsp;&nbsp;&nbsp; LABELITEM &quot;ADMIN_NAME&quot;<br>
&nbsp;&nbsp;&nbsp; PROCESSING &quot;LABEL_NO_CLIP=1&quot;<br>
&nbsp;&nbsp;&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME &qu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&nbsp;&nbsp; END # end of label<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>
&nbsp; END<br>
<br>
<br>
Thanks!<br>
<br>
Karl Suiter<br>
<br>
<br>
<br>
</div></div><font color="Gray" face="Verdana" size="1">&lt;&lt; Please read our E-mail Disclaimer at the Grontmij Corporate website &gt;&gt;<br>
</font>
</div>

</blockquote></div><br>