<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">We are using Mapscript 5.6.6 in a .NET app. If I embed both a Scalebar and a Legend at the same time, they render fine the first time. If I render the map again, the Legend shows up normally, but the scalebar is replaced by the legend. Here is my map file excerpt:<div>
<br></div><div><br></div><div><div><span style="white-space:pre-wrap"> </span></div><div><div><span style="white-space:pre-wrap"> </span>LEGEND</div><div><span style="white-space:pre-wrap"> </span>STATUS EMBED</div>
<div><span style="white-space:pre-wrap"> </span>KEYSIZE 18 12</div><div><span style="white-space:pre-wrap"> </span>TRANSPARENT OFF</div><div><span style="white-space:pre-wrap"> </span>LABEL</div>
<div><span style="white-space:pre-wrap"> </span>TYPE BITMAP</div><div><span style="white-space:pre-wrap"> </span>SIZE MEDIUM</div><div><span style="white-space:pre-wrap"> </span>COLOR 0 0 89</div>
<div><span style="white-space:pre-wrap"> </span>END</div><div><span style="white-space:pre-wrap"> </span>END</div><div><br></div><div><span style="white-space:pre-wrap"> </span>SCALEBAR</div>
<div><span style="white-space:pre-wrap"> </span>INTERVALS 5</div><div><span style="white-space:pre-wrap"> </span>UNITS MILES</div><div><span style="white-space:pre-wrap"> </span>OUTLINECOLOR 0 0 0</div>
<div><span style="white-space:pre-wrap"> </span>STYLE 0</div><div><span style="white-space:pre-wrap"> </span>STATUS EMBED</div><div><span style="white-space:pre-wrap"> </span> LABEL</div>
<div><span style="white-space:pre-wrap"> </span>SIZE SMALL</div><div><span style="white-space:pre-wrap"> </span>COLOR 0 0 0</div><div><span style="white-space:pre-wrap"> </span> END</div>
<div><span style="white-space:pre-wrap"> </span>END</div></div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Thanks,</div><div>Roger</div>
</blockquote></div><br>