<viewer:WidgetTemplate id="wTemplate"
height="300"
skinClass="com.esri.viewer.skins.WidgetTemplateSkin"
width="440">
override protected function measure():void
{
super.measure();
const tocItem:TocItem = TocItem(data);
// Add space for the checkbox and gaps
if (isNaN(explicitWidth) && !isNaN(measuredWidth))
{
var w:Number = measuredWidth;
if(tocItem)
if(w < tocItem.tocMinWidth)
w = tocItem.tocMinWidth - 20;
if (_vbox && _vbox.numChildren > 0 && _vbox.measuredWidth > w) w = _vbox.measuredWidth;
measuredWidth = w;
}
if (!isNaN(measuredHeight))
{
var h:Number = measuredHeight + 5;
if(_vbox && _vbox.numChildren > 0) h += _vbox.getExplicitOrMeasuredHeight();
measuredHeight = h;
}
}
Eric,
By that you mean that you added several map service sublayer ids to the excludelayers element in the xml right?
<excludelayer mapservice="Basemap">0,6,7,8,9,10,11,12</excludelayer>