I have multiple Legend widget and I would like to have two of them open on startup as minimized. I have set two of them with: 'preload="minimized"' (see config.xml section below), but only the one that has preload="minimized" first in the config file is shown. Can we not open multiples? In my XML below, "Pipe Facilities" will open minimzed, but LWC Regions will not. If I remove the preload tag from 'Pipe Facilities', then 'LWC Regions' will open. I can see this in the WidgetManager.mxml code:
and that would seem to indicate to me that multiples could be opened on preload....
/////////////////
Code:
if (preload == "open" || preload == "minimized")
{
preloadArray.push(configData.widgets[i]);
}
/////////////////
Code:
<widgetcontainer layout="vertical" top="0"> <!--horizontal(default)|float|vertical|fix-->
<!-- ADDITIONAL MAP LAYERS -->
<widget label= "Pipeline Details"
config= "widgets/Legend/Pipeline.xml"
icon= "components/LWCHeader/assets/images/pipe.png"
url= "widgets/Legend/LegendWidget.swf"
theme= "theme1"/>
<widget label= "Pipe Facilities"
preload="minimized"
config= "widgets/Legend/PipeFacility.xml"
icon= "components/LWCHeader/assets/images/pipe_line.png"
url= "widgets/Legend/LegendWidget.swf"
theme= "theme2"/>
<widget label= "MSD Facilities"
config= "widgets/Legend/MSDFacilities.xml"
icon= "components/LWCHeader/assets/images/manhole.png"
url= "widgets/Legend/LegendWidget.swf"
theme= "theme3"/>
<widget label= "Contours"
config= "widgets/Legend/Contours.xml"
icon= "components/LWCHeader/assets/images/map_app1.png"
url= "widgets/Legend/LegendWidget.swf"
theme= "theme4"/>
<widget label= "LWC Regions"
preload="minimized"
config= "widgets/Legend/LWCRegions.xml"
icon= "components/LWCHeader/assets/images/maps.png"
url= "widgets/Legend/LegendWidget.swf"
theme= "theme5"/>
<widget label= "Municipal Boundaries and Zones"
config= "widgets/Legend/MunicipalBounds.xml"
icon= "components/LWCHeader/assets/images/zonemap.png"
url= "widgets/Legend/LegendWidget.swf"
theme= "theme6"/>