I've been working on a Flex Viewer all day with no troubles with the map switcher widget but clearly I've done something to make it disappear and can't figure out what.
I'm using the Application Builder as well as manually editing the config.xml to get it like I want it. The check mark in the AB for "Add Portal for ArcGIS Basemaps" is checked. I have included both basemaps and operational layers but the widget does not display either the "Basemaps" button or the "More" button.
Here is the relevant section from config.xml:
I'm using the Application Builder as well as manually editing the config.xml to get it like I want it. The check mark in the AB for "Add Portal for ArcGIS Basemaps" is checked. I have included both basemaps and operational layers but the widget does not display either the "Basemaps" button or the "More" button.
Here is the relevant section from config.xml:
Code:
<widget url="widgets/MapSwitcher/MapSwitcherWidget.swf" config="widgets/MapSwitcher/MapSwitcherWidget.xml" label="Map Switcher" icon="assets/images/i_globe.png" right="20" top="55"/>
<map attributionvisible="true" esrilogovisible="true" openhandcursorvisible="false" scalebarvisible="true" scalebar="default" zoomslidervisible="false" wraparound180="true" addarcgisbasemaps="true" initialextent="-9355402.291706543 4294366.250578298 -8319527.6843861155 4881402.627808294" wkid="102100" top="40" portalurl="https://www.arcgis.com">
<basemaps>
<layer type="dynamic" label="Virginia Counties" icon="assets/images/virginia_counties.jpg" imageformat="png8" url="http://websde/arcgis/rest/services/FlexServices/VGIN_BaseMapCounty/MapServer" visible="true"/>
</basemaps>
<operationallayers>
<layer type="dynamic" label="Karst Features" imageformat="png8" url="http://websde/arcgis/rest/services/Geology_Resources/VAKarstFeatures/MapServer" visible="false">
<sublayer id="0" popupconfig="popups/PopUp_1.xml"/>
</layer>
<layer type="dynamic" label="Water Wells" imageformat="png8" url="http://websde/arcgis/rest/services/Geology_Resources/VirginiaWaterWells_WMS/MapServer" visible="false">
<sublayer id="2" popupconfig="popups/PopUp_2.xml"/>
</layer>
<layer type="dynamic" label="Geology" alpha="0.5" imageformat="png8" url="http://websde/arcgis/rest/services/Geology_Resources/Geology_WMS/MapServer" visible="true"/>
</operationallayers>
</map>