Select to view content in your preferred language

Hiding a map service in the menuMap

443
1
05-14-2010 05:44 AM
TristanKnowlton
Frequent Contributor
I would like to hide my cached map service of labels so that it does not appear in the main menu on the Sample Flex Viewer.  I do not want it to be able to be toggled on/off, I just want it on all the time.  I am assuming this can be done in the config.xml file with some type of keyword, but I cannot figure it out.

How do I make the labels appear in the the application without letting the service be available in the menu?

Any help would be appreciated.

Thanks!!
Tags (2)
0 Kudos
1 Reply
RichardDiaz
Regular Contributor
This will remove the basemaps, but will leave the widgets in place.

In Config.xml, comment out the menuMap statement by replacing it with this line:
<!--menu id="menuMap" visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_globe.png">Map</menu-->

...then add this line below it.
<menu id="menuLayers" visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_globe.png">Map</menu>

Now, search for the widgets that have the statement menu="menuMap", and change it to menu="menuLayers"

Rick
0 Kudos