|
hello, I'm a GIS veteran, but newbie to MapServer. I'm working with Mapserver version 3.6.5. I'm working on a MAPFILE to display roads and area polygons, with ID# labels in the area polygons. At full zoom, the labels for the polygons dominate the map, and I'd like to have them turn on only when they will not "clutter" the map unnecessarily. In reading the docs, I think I have found the exact answer to my problem - MINFEATURESIZE auto. (if I have understood correctly, setting this param to 'auto' will cause the labels to be displayed only if their owning polygon is larger than than the label itself) Unfortunately, I have seen no effect from setting this param as of yet. Could someone give me some guidance as to how to properly set/use this param? thanks, john LAYER NAME "REPORTINGAREAS" TYPE POLYGON STATUS DEFAULT TRANSPARENCY 40 DATA "$self->{GROUP_ATTR}->{RA_DATA}" LABELITEM "$self->{GROUP_ATTR}->{RA_LABELITEM}" CLASSITEM "$self->{GROUP_ATTR}->{RA_CLASSITEM}" CLASS NAME 'Reporting Areas' TEMPLATE "dummy" color 240 255 220 outlinecolor 0 0 0 LABEL MINDISTANCE 10 MINFEATURESIZE AUTO MINSIZE 8 MAXSIZE 10 PARTIALS TRUE POSITION AUTO FONT "ARIAL" TYPE TRUETYPE COLOR 0 0 0 OUTLINECOLOR 0 0 0 BUFFER 4 END END END |
