<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2883" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=072382508-15062006>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=072382508-15062006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=072382508-15062006>I suppose LABELMAXSCALE in the LAYER object should do
this for you.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=072382508-15062006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=072382508-15062006>-Jukka-</SPAN></FONT></DIV><FONT face=Arial
color=#0000ff size=2></FONT><BR>
<DIV class=OutlookMessageHeader lang=fi dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Lähettäjä:</B> UMN MapServer Users List
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>Puolesta </B>Tim
Badtke<BR><B>Lähetetty:</B> 14. kesäkuuta 2006 23:59<BR><B>Vastaanottaja:</B>
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Aihe:</B> [UMN_MAPSERVER-USERS] Class
Labels<BR></FONT><BR></DIV>
<DIV></DIV>I'm developing an application and would like the ability to turn a
class on at a certain scale, but have it's labels turn on as a user zooms in
further. Is this possible with one layer defition and two classes (one for
the data and one for it's labels - both come from the same dataset.) <BR><BR>I
set it up how I think it should work but I only get the data drawn without the
labels. Can someone point me in the right direction? It works with
two layers (one as polygon and one as annotation), but I think it should be able
to be done with just one layer and two classes. Am I wrong? <BR><BR>Thanks
for your help,<BR>Tim<BR><BR>This is what the layer looks like in the map
file:<BR>
<P class=MsoPlainText>LAYER<BR><SPAN> </SPAN>NAME "MCD
Boundaries"<BR><SPAN> </SPAN>STATUS default<BR><SPAN> </SPAN>DATA
basedata/cdreg_ms<BR><SPAN> </SPAN>GROUP MCDs<BR><SPAN> </SPAN>TYPE
POLYGON<BR><SPAN> </SPAN>CLASSITEM "Ctv"<BR><SPAN> </SPAN>LABELITEM
"Mcd_name"<BR><SPAN> </SPAN>CLASS<BR><SPAN>
</SPAN>MAXSCALE 600000<BR><SPAN> </SPAN>EXPRESSION ('[Ctv]' eq
'T')<BR><SPAN> </SPAN>OUTLINECOLOR 19 54
234<BR><SPAN>
</SPAN>STYLE<BR><SPAN> </SPAN>SYMBOL
'line'<BR><SPAN> </SPAN>SIZE
1<BR><SPAN> </SPAN>END<BR><SPAN>
</SPAN>END<BR><SPAN> </SPAN>CLASS<BR><SPAN>
</SPAN>MAXSCALE 400000<BR><SPAN> </SPAN>EXPRESSION ('[Ctv]' eq
'T')<BR><SPAN> </SPAN>LABEL #Town
label<BR><SPAN> </SPAN>COLOR 19 54
234<BR><SPAN> </SPAN>OUTLINECOLOR 255 255
255<BR><SPAN> </SPAN>TYPE
Bitmap<SPAN></SPAN><BR><SPAN> </SPAN>SIZE
Tiny<BR><SPAN> </SPAN>POSITION
CC<BR><SPAN> </SPAN>PARTIALS
False<SPAN></SPAN><BR><SPAN> </SPAN>END<BR><SPAN>
</SPAN>END<BR><SPAN> </SPAN>METADATA<BR><SPAN>
</SPAN>CLASSES "no"<BR><SPAN> </SPAN><SPAN> </SPAN>SHOWINLEGEND
"nope"<BR><SPAN> </SPAN>END<BR>END <BR></P></BODY></HTML>