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>