Gerben,<br>
<br>
Thanks! Setting "OpenLayers.Layer.MapServer.Untiled" 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"><<a href="mailto:Gerben.Tiemens@grontmij.nl">Gerben.Tiemens@grontmij.nl</a>></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> </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. The mapserver will adjust the placement of your label to
fit on your tile due to your "partials = false" and position = auto</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </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> </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> </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>
I'm using Mapserver 5.2 and Openlayers 2.6 as my map interface. When called using Openlayers, Mapserver renders two LabelItems when the layer to be labels is of type "polygon". I've sort of fixed this issue by including PROCESSING "LABEL_NO_CLIP=1" in the
Layer definition.<br>
<br>
So, for the most part, it works OK. But on some generated maps, I still see one Layer that still renders two Labels.<br>
<br>
I then noticed that if I tweaked the OpenLayers "minScale" value when defining a new map (see below), I could get suppression of the second label.<br>
<br>
var map = new OpenLayers.Map( 'map', {controls: [], maxExtent: bounds, restrictedExtent: bounds, projection:"none", minScale: 10000, units: "m" } ); // change the minScale to 15 to suppress the 2nd label<br>
<br>
I would like to remove the minScale variable from the Openlayers map definition, but that pesky second LabelItem keeps coming back.<br>
<br>
Has anyone seen/fixed this problem? Should I create a bug ticket. FYI - I am cross-posting to the OpenLayers listserve to see if anyone there has experienced this problem.<br>
<br>
Here is my Layer definition I've been working with:<br>
<br>
LAYER<br>
NAME CR01<br>
STATUS OFF<br>
DATA cr.shp<br>
TYPE POLYGON<br>
CLASSITEM "FIPS_ADMIN"<br>
LABELITEM "ADMIN_NAME"<br>
PROCESSING "LABEL_NO_CLIP=1"<br>
CLASS<br>
NAME "FIPS_ADMIN"<br>
EXPRESSION "CR01"<br>
COLOR 226 166 166 # E2A6A6<br>
OUTLINECOLOR 32 32 32<br>
LABEL<br>
COLOR 0 0 0<br>
TYPE TRUETYPE<br>
FONT verdana<br>
SIZE 10<br>
ANTIALIAS TRUE<br>
POSITION AUTO<br>
PARTIALS FALSE<br>
MINDISTANCE 300<br>
BUFFER 4<br>
END # end of label<br>
END<br>
END<br>
<br>
<br>
Thanks!<br>
<br>
Karl Suiter<br>
<br>
<br>
<br>
</div></div><font color="Gray" face="Verdana" size="1"><< Please read our E-mail Disclaimer at the Grontmij Corporate website >><br>
</font>
</div>
</blockquote></div><br>