Change "more..." drop down button label

362
2
02-15-2011 07:39 AM
GarrettMoeller
New Contributor III
It seems odd that you can add label names for the adjacent basemap buttons, but can't easily change the "more..." label - unless I'm wrong??

Can this be done in the config.xml, or does it need to be done in Flash Builder?

I would like to change it to "Layers"

Thank you
Tags (2)
0 Kudos
2 Replies
DasaPaddock
Esri Regular Contributor
You can add a label to the layerlist.

e.g. <layerlist label="Layers">

Doc:
http://help.arcgis.com/en/webapps/flexviewer/help/widgets/mapswitcher_widget.htm
0 Kudos
JonFisher
New Contributor III
This is an easy one. There are a ton of "hidden" tags and attributes that are not listed in the default xml files, but which you can still access without code. For this example, you just need to add a label attribute like this (this changes it from More to Layers). Note that I have listed some instructions commented out, and also commented out the <excludelayers> tag so that they're visible as an example but ignored by the application:
    <layerlist visible="true" label="Layers">
<!-- List any layers to exclude from display in the layer list here (if the layer is set to visible="true" in config.xml, the service will still be visible, you simply won't be able to turn it off), matching the layer name (label) in the main config.xml file. Each layer to exclude needs its own <excludelayer> tag, you can't just separate layer names with commas. -->
        <!--
            <excludelayer>Ecoregional Portfolio</excludelayer>
      <excludelayer>TNC Lands</excludelayer>
         -->
    </layerlist>

check out http://help.arcgis.com/en/webapps/flexviewer/help/widgets/mapswitcher_widget.htm for more details on this widget, the main help page (http://help.arcgis.com/en/webapps/flexviewer/help/index.html) is super useful to find what requires code and what doesn't.

EDIT: never mind, Dasa must have posted while I was typing my reply
0 Kudos