<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p> </p>
<p>Hi everyone,</p>
<p>Probably a stupid question but I can't figure it out :</p>
<p>I open a Layer through " <span class="x">$map->getLayer() " and I want to remove " labelitem " and " classitem" parameters.<br /></span></p>
<p><span class="x">I tried to set these parameters to NULL " $layer->labelitem = NULL; " or " $layer->set('labelitem', NULL); " and to empty " $layer->labelitem = ''; " or " $layer->set('labelitem', ''); " but it doesn't remove the " LABELITEM " in the " LAYER " in the MapFile when I save the MapFile " $map->save() ".</span></p>
<p><span class="x">I found that setting an int/double parameter to -1 value removes it (like " maxscaledenom " or " minscaledenom ").</span></p>
<p><span class="x">How can I remove " labelitem " / " classitem " parameters ?</span></p>
<p><span class="x">Thanks a lot for your help !</span></p>
<p> </p>
<p> </p>
<p><span class="x">MapFile before MapScript :</span></p>
<pre><span style="font-family: courier new,courier,monospace;">LAYER</span><br /><span style="font-family: courier new,courier,monospace;">    NAME "test"
    CLASSITEM "myclasscolumn"
    LABELITEM "mylabelcolumn"<br />    ...
END # LAYER</span></pre>
<div> </div>
<div><span class="x">MapFile after MapScript " $layer->set('labelitem', NULL); " and " $layer->set('classitem', NULL); " :</span></div>
<div> </div>
<div>
<pre><span style="font-family: courier new,courier,monospace;">LAYER</span><br /><span style="font-family: courier new,courier,monospace;">    NAME "test"
    CLASSITEM ""
    LABELITEM ""<br />    ...
END # LAYER</span></pre>
</div>
<div> </div>
<div>-- <br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Jonathan Beliën</div>
</div>
<p> </p>
</body></html>