<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta content="MSHTML 6.00.2900.3314" name="GENERATOR">
</head>
<body>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"></font>&nbsp;</div>
<div><span class="223065416-31102008"><font face="Arial" color="#0000ff" 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 class="223065416-31102008"><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div><span class="223065416-31102008"><font face="Arial" color="#0000ff" size="2">Setting openlayers in untiled, or using tilecache with metatiles, will solve your problem.</font></span></div>
<div><span class="223065416-31102008"><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div><span class="223065416-31102008"><font face="Arial" color="#0000ff" size="2">Greetings</font></span></div>
<div><span class="223065416-31102008"><font face="Arial" color="#0000ff" size="2">Gerben</font></span></div>
<div>&nbsp;</div>
<br>
<div class="OutlookMessageHeader" lang="nl" dir="ltr" align="left">
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>Van:</b> mapserver-users-bounces@lists.osgeo.org [mailto:mapserver-users-bounces@lists.osgeo.org]
<b>Namens </b>Karl Suiter<br>
<b>Verzonden:</b> Friday, October 31, 2008 5:06 PM<br>
<b>Aan:</b> mapserver-users@lists.osgeo.org; users@openlayers.org<br>
<b>Onderwerp:</b> [mapserver-users] Multiple LabelItems using Mapserver 5.2 and Openlayers<br>
</font><br>
</div>
<div></div>
Hello All,<br>
<br>
&nbsp; I'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'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( 'map', {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'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 &quot;FIPS_ADMIN&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION &quot;CR01&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 226 166 166 # E2A6A6<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 32 32 32<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABEL<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE TRUETYPE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT verdana<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 10<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION AUTO<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PARTIALS FALSE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINDISTANCE 300<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUFFER 4<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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>
<font face="Verdana" color="Gray" size="1">&lt;&lt; Please read our E-mail Disclaimer at the Grontmij Corporate website &gt;&gt;<br>
</font>
</body>
</html>