Select to view content in your preferred language

"More..." Tab

1474
13
05-27-2011 07:02 AM
LarryJahn
Frequent Contributor
I'm trying to change the "More..." tab (operational layers) label to read "Data Layers".  I've seen this done, so I know it's possible.  However, I haven't been able to find where I need to go to change this.  Can anyone help?  Thanks!
Tags (2)
0 Kudos
13 Replies
RobertScheitlin__GISP
MVP Emeritus
Larry,

In the MapSwitcherWidget.xml.

<layerlist visible="true" label="Data Layers">
0 Kudos
LarryJahn
Frequent Contributor
Thanks, Robert.  I just started using ArcGIS Viewer for Flex, so I haven't found all of the ins and outs.
0 Kudos
NasifAlshaier
Deactivated User
Hi Robert..

is there a way to add another tab for the operations layers example:  OP Layers 2010, Op Layers 2011 .. ?

Thanks in advance.
Nasif
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nasif,

   Sure with a minor code change it was easy to add a second MapSwitcherWidget to the viewer and hide the basemaps from one of them.

Here is the modified MapSwitcherWidget.mxml and the entries for your config.xml

<widget right="20" top="55"    config="widgets/MapSwitcher/MapSwitcherWidget.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>
    <widget right="320" top="55"   config="widgets/MapSwitcher/MapSwitcherWidget2.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>
0 Kudos
NasifAlshaier
Deactivated User
Thank you Robert.
0 Kudos
NasifAlshaier
Deactivated User
Hi Robert..

the hisebasemap is not working.. is there anything else that I am missing..  here is the code:

<?xml version="1.0" ?>
<configuration>
    <layerlist visible="true" label="PWD Layers">
        <excludelayer>Daily Inspections</excludelayer>
        <excludelayer>Permits-No-Utility</excludelayer>
        <excludelayer>Permits-Utility-Exempt</excludelayer>
        <excludelayer>Permits-Utility-Escrow</excludelayer>
    </layerlist>
    <hidebasemapswitcher>true</hidebasemapswitcher>
   
</configuration>
Thanks
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nasif,

   Check your problems window in Flash Builder and see if there is anything listed there. It sounds like the new code for MapSwitcherWidget.mxml is not getting compiled.
0 Kudos
NasifAlshaier
Deactivated User
Hi RObert..

the only thing that I have in the problem window is "unable to open 'locale/en_US'" which I was getting prior to the change..

Thanks
Nasif
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nasif,

   OK, and you have cleared your browsers cache right? I have test the code and it works...
0 Kudos