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 style=""> </span>NAME "MCD Boundaries"<br>
<span style=""> </span>STATUS default<br>
<span style=""> </span>DATA basedata/cdreg_ms<br>
<span style=""> </span>GROUP MCDs<br>
<span style=""> </span>TYPE POLYGON<br>
<span style=""> </span>CLASSITEM "Ctv"<br>
<span style=""> </span>LABELITEM "Mcd_name"<br>
<span style=""> </span>CLASS<br>
<span style=""> </span>MAXSCALE 600000<br>
<span style=""> </span>EXPRESSION ('[Ctv]' eq 'T')<br>
<span style=""> </span>OUTLINECOLOR 19 54 234<br>
<span style=""> </span>STYLE<br>
<span style=""> </span>SYMBOL 'line'<br>
<span style=""> </span>SIZE 1<br>
<span style=""> </span>END<br>
<span style=""> </span>END<br>
<span style=""> </span>CLASS<br>
<span style=""> </span>MAXSCALE 400000<br>
<span style=""> </span>EXPRESSION ('[Ctv]' eq 'T')<br>
<span style=""> </span>LABEL #Town label<br>
<span style=""> </span>COLOR 19 54 234<br>
<span style=""> </span>OUTLINECOLOR 255 255 255<br>
<span style=""> </span>TYPE Bitmap<span style=""></span><br>
<span style=""> </span>SIZE Tiny<br>
<span style=""> </span>POSITION CC<br>
<span style=""> </span>PARTIALS False<span style=""></span><br>
<span style=""> </span>END<br>
<span style=""> </span>END<br>
<span style=""> </span>METADATA<br>
<span style=""> </span>CLASSES "no"<br>
<span style=""> </span><span style="">
</span>SHOWINLEGEND "nope"<br>
<span style=""> </span>END<br>
END <br></p>