Select to view content in your preferred language

Request for enhancement of TOC widget 3.0i

862
4
Jump to solution
03-28-2014 08:56 AM
BarnabyRockwell
Deactivated User
Hi Robert,

My operational, public server is running Server 10.01 + Flex 3.0.  The Flex app includes TOC widget 3.0i.  The only problem with it is that the small down-arrow "Zoom to" buttons are not bound to the right-hand edge of the TOC widget window as they are in the Enhanced Layer List widget.

[ATTACH=CONFIG]32600[/ATTACH]

http://cmerwebmap.cr.usgs.gov/flexviewers/min7_demo_pub/

I'm sure that you have more important things to do, but would it be a lot of work to modify the widget 3.0i version to bind those buttons to the right-hand edge of the window?  With that modification, the widget is basically as good as the current Enhanced Layer List widget.

Another question/alternative:  do you recommend that I upgrade the Flex App Builder from 3.0 to a higher version on my server (ArcGIS Server 10.01)?  Put another way, what is the most recent version of the App Builder which will work for Server 10.01?  It is a real hassle to upgrade my server to 10.2.1.

Best regards,
Barnaby
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Barnaby,

   As far as dynamic resizing of the widget, No. But you can add the width to the widget in the main config.xml as I said and it will bind the width of the TOC component to the width of the the widget INITALLY.

<widget url="widgets/TOC/TOCWidget.swf" config="widgets/TOC/TOCWidget_2.xml" label="Table of Contents and Explanation" icon="assets/images/Legend32.png" preload="open" width="420"/>

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Barnaby,

   I don't do updates to older versions of widgets (especially 6 minor versions behind). But I do have some suggestions. The actual TOC rending is bound to the widgets width set in the main config.xml. So do you a width attribute set on the toc widget in the main config.xml?

As far as should you update to a newer version of the viewer, Yes. I unaware of any version of the viewer that is bound to a specific ArcGIS Server version, (i.e. you can use Viewer 3.6 with Server 10.01). The downside is that some functionality will not be there for certain things.

It is a real hassle to upgrade my server to 10.2.1.
There has been SO Many great improvement in ArcGIS Server since 10.01, in my opinion it is well worth it.
0 Kudos
BarnabyRockwell
Deactivated User
Hi Robert,

Here is the TOC widget entry from config.xml:

    <widgetcontainer layout="float">
        <widget url="widgets/TOC/TOCWidget.swf" config="widgets/TOC/TOCWidget_2.xml" label="Table of Contents and Explanation" icon="assets/images/Legend32.png" preload="open"/>


I see no width attribute setting.  I never modified the widget settings, so they are all default AFAIK.

Here is the active TOCWidget xml:

<?xml version="1.0" ?>
<configuration>
    <labels>
        <visibilitylabel>Layer Visibility</visibilitylabel>
        <zoomtoextent>Zoom To Layer Extent</zoomtoextent>
        <expandall>Expand All Layers</expandall>
        <collapseall>Collapse All Layers</collapseall>
        <zoomtomakevisible>Zoom To Make Visible</zoomtomakevisible>
        <generatinglegendmsg>Generating TOC Legend</generatinglegendmsg>
    </labels>
    <tocsettings>
        <expanded everything="false">true</expanded>
        <collapselegends>true</collapselegends>
        <disablezoomtomenuoption>false</disablezoomtomenuoption>
    </tocsettings>
    <legendtimeout>60</legendtimeout>
    <excludelayers>
        <excludelayer mapservice="Symbols"/>
        <excludelayer mapservice="Utilities">8</excludelayer>
    </excludelayers>
    <excludegraphiclayers>true</excludegraphiclayers>
    <excludebasemaplayers>true</excludebasemaplayers>
    <usenewesridescription>false</usenewesridescription>
</configuration>


Do you know of some way I can edit the above XML to bind the zoom buttons to the right-hand side of widget window?

I use server 10.2.1 on another, internal server, and it is great all around.  The time to upgrade my operational box is drawing nigh. 

Thanks,
Barnaby
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Barnaby,

   As far as dynamic resizing of the widget, No. But you can add the width to the widget in the main config.xml as I said and it will bind the width of the TOC component to the width of the the widget INITALLY.

<widget url="widgets/TOC/TOCWidget.swf" config="widgets/TOC/TOCWidget_2.xml" label="Table of Contents and Explanation" icon="assets/images/Legend32.png" preload="open" width="420"/>
0 Kudos
BarnabyRockwell
Deactivated User
YES!  That is perfect.  I set width to 600.  Done deal.

Many thanks,
Barnaby
0 Kudos