Select to view content in your preferred language

ArcGIS Viewer for Flex 2.4 just released :)

4283
42
07-28-2011 05:18 PM
BjornSvensson
Esri Regular Contributor
Today we released version 2.4 of both ArcGIS API for Flex and ArcGIS Viewer for Flex.

There are lots of highlights to both Flex API and Flex Viewer.  Check out the What's New in the updated help for the full list of changes.  Here's my top-10 for the Viewer 2.4:

  1. New Geoprocessing widget that works with almost any geoprocessing task.

  2. Clustering of points from feature layers.

  3. Configuring definition expression on sublayers within a layer of type="dynamic" (an ArcGIS Dynamic map Service).

  4. Being able to set the widget size in the configuration file.

  5. KML Layer - the <layer> tag supports type="kml".

  6. Support for four new locales have been added - Arabic, Brazilian Portuguese, Italian and Russian - to the existing six locales.

  7. Initial "view" of Search and Locate widget can be set in widget configuration file.

  8. Works better with Adobe Flex 4.5 SDK.

  9. Widgets can be centered using new verticalcenter and horizontalcenter.

  10. Bug fixes:


    • Color of hyperlinks in popup windows remain the same even after clicking the link.

    • Multiple bug fixes related to widget layout locations and run-away widgets. Widgets can be place anywhere even when the overview map widget is open. Floating and vertical layouts don't experience run-away widgets.

    • Overview map widget can be placed in any corner.


Tip: If you don't see the new pages, try emptying your browser cache, or wait a little for all our web servers to clear their caches...

http://help.arcgis.com/en/webapps/flexviewer/help/#/What_s_new_in_2_4/01m300000011000000/
Tags (2)
0 Kudos
42 Replies
DonCopple
Deactivated User
I am getting erro 2148 when I try to open the index.html.  My older version is working fine in the manner.  I have not copied anything over yet from my 2.3 project, just trying to open the viewer from the beginning, and get the error.
0 Kudos
DonCopple
Deactivated User
Have also tried using the src code in Flash Buider,  I get errors in teh navigation and overview widgets, and the Com.esri.viewer modules as well.  It will not compile to build, nor will the default build work as well.

Here are the errors I get....

Line 42 of WidgetTemplateSkin.mxml - Error 1120:Access of undefined property layoutDirection.

It looks like this one error is causing errors in teh BaseWidget, BorderContaininer, supportClasses.Skin modules, and navigation modules.

Please help, trying to get KML into my maps and it looks like this will fix that, I have my 2.3 map running great, just wnat to add the kml capability......

OK, One more update, deleater all reference to the layoutDirection ='ltr' in all modules, and it works now, so it may be a bug in the use of layourDirection.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Don,

  That is one of those unfortunate things about not reading ALL the documentation...

From the What's New in 2.4 Viewer (under "General Changes"):
Compiling the source code [for ArcGIS Viewer for Flex] requires Adobe  Flex 4.1 or above. This is to support Arabic and other right-to-left  locales. Note that the API itself still works with 4.0, 4.1 as well as  4.5.


It's also mentioned briefly in the "Upgrading your viewer Code":
In version 2.4 of the Viewer, Adobe Flex 4.1 SDK is the minimum SDK version to compile with.


as posted by Bjorn in this thread
http://forums.arcgis.com/threads/35876-ArcGIS-API-for-Flex-2.4-just-released-%29?p=121408&viewfull=1...
0 Kudos
simoxu
by MVP Regular Contributor
MVP Regular Contributor
Hi Bjorn,

Is it possible for the users still  to have the access to the help and examples for 2.3.X? I can't find the online help for 2.3.x since 2.4 released. I have difficulties to move to 2.4 at this stage, and would like to put the upgrade on hold until the current project is finished on 2.3.1.

Thanks,

Simo
0 Kudos
DonCopple
Deactivated User
Yes Robert, guess you're right, should read the fine print and documentation.  So not a bug, but could have been directed a little better in the getting started documentation (something reminding you that you need to update the sdk maybe?)  I am sure it is there, and I just missed it though.

Although in the documentation this was all that I found:

Adobe Flex SDK versions
The only currently supported software development kit (SDK) version is Adobe Flex SDK 4.0. For detailed Flex framework system requirements, read the most up-to-date Flex SDK system requirements by Adobe.

0 Kudos
NedCake
Deactivated User
Popup Problems in SFV2.4?
Is there a maximum number of fields that can be displayed in a popups configuration? I need to display 15 fields, but anything more than 8 will only work on the first click. After the first click the info popup box is empty except for "title" and "zoom to"

Any suggestions appreciated
Thanks
Ned
0 Kudos
JoshWhite
Honored Contributor
Not sure what happened, everything was humming along just fine and blam suddenly I have an application error that I can't seem to resolve.  The error reads as follows:

http response status: 200

Fault code: Client.CouldNotDecode

Fault info: Error #1085

Fault details: null

I figure I must have deleted something accidently from the config file but I can't seem to locate it.  Any ideas?

<?xml version="1.0" ?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Read more about ArcGIS Viewer for Flex - http://links.esri.com/flexviewer
//
////////////////////////////////////////////////////////////////////////////////
-->
<configuration>
    <title>City of Arkansas City</title>
    <subtitle>GIS Webmap</subtitle>
    <logo>assets/images/ArkCitylogosmall.png</logo>
    <style>
      <!-- Black Gold -->
  <!--<colors>0xFFFFFF,0x333333,0x101010,0x000000,0xFFD700</colors>-->
  <!--Cobalt Blue-->
  <colors>0xCEE7F4,0x39628C,0x355D89,0x294867,0xCEE7F4</colors>
  <!--Desert Sand-->
  <!--<colors>0x4C2600,0xFFEDB8,0xB2AD81,0x6F6750,0x4C2600</colors>-->
  <!--Graphite Gray-->
  <!--<colors>0xCCCCCC,0x777777,0x555555,0x333333,0xCCCCCC</colors>-->
  <!--Sage Green-->
  <!--<colors>0x333333,0xAFCFAF,0xFFFFAB,0xEAEA9D,0x333333</colors>-->
  <!--Sky Blue-->
  <!--<colors>0x444444,0xEBF4FF,0xEBF4FF,0xDEEBFF,0x444444</colors>-->
        <alpha>0.8</alpha>
    </style>
    <!-- replace the following url with your own geometryservice -->
    <geometryservice url="http://gis-server/arcgis/services/Geometry/GeometryServer" />

    <!-- UI elements -->
    <widget left="10"  top="50"    config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
    <widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
    <widget right="20" top="55"    config="widgets/MapSwitcher/MapSwitcherWidget.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>
    <widget left="0"   top="0"     config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>
 <widget left="3" bottom="3" config="widgets/Coordinate/CoordinateWidget.xml" url="widgets/Coordinate/CoordinateWidget.swf"/>
    
 <map wraparound180="true" initialextent="-10803160 4447456 -10801480 4448154" fullextent="-10854000 4445400 -10727000 4503000" top="40">
        <basemaps>
            <layer label="Streets" type="tiled" visible="true"
                   url="http://gis-server/ArcGIS/rest/services/StreetsBase/MapServer"/>
            <layer label="Aerial"  type="tiled" visible="false"
                   url="http://gis-server/ArcGIS/rest/services/Aerial/MapServer"/>
            <layer label="Topo"    type="tiled" visible="false"
                   url="http://gis-server/ArcGIS/rest/services/Topographic/MapServer"/>
        </basemaps>
        <operationallayers>
            <layer label="Demographics" type="tiled" visible="false" alpha="0.5"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Household_Income/MapServer">
                <sublayer id="1" popupconfig="popups/PopUp_Demographics_BlockGroups.xml"/>
                <sublayer id="2" popupconfig="popups/PopUp_Demographics_Tracts.xml"/>
                <sublayer id="3" popupconfig="popups/PopUp_Demographics_Counties.xml"/>
                <sublayer id="4" popupconfig="popups/PopUp_Demographics_States.xml"/>
            </layer>
            <layer label="Addresses" type="dynamic" visible="true"
                   url="http://gis-server/ArcGIS/rest/services/Addresses-Streets/MapServer"/>
   
   <layer label="Utilities" type="dynamic" visible="false"
                   url="http://gis-server/ArcGIS/rest/services/Utilities/MapServer"/>
            
   <layer label="Parcels" type="dynamic" visible="true" 
    url="http://gis-server/ArcGIS/rest/services/Parcels/MapServer"> 
   <sublayer id="16" popupconfig="popups/PopUp_parcels.xml"/>
        </operationallayers>
    </map>

    <!-- widgets organized into widget containers that manage close/open etc -->
    <!-- supported layout property options: horizontal(default)|float|vertical|fix-->
    <widgetcontainer layout="float">
        <widget label="Bookmarks"         left="430" top="90"
                icon="assets/images/i_bookmark.png"
                config="widgets/Bookmark/BookmarkWidget.xml"
                url="widgets/Bookmark/BookmarkWidget.swf"/>
        <widget label="Find an address"   left="100" top="90" preload="open"
                icon="assets/images/i_target.png"
                config="widgets/Locate/LocateWidget_ArkCity.xml"
                url="widgets/Locate/LocateWidget.swf"/>
        <!--<widget label="Search" left="80" top="280"
                icon="assets/images/i_search.png"
                config="widgets/Search/SearchWidget_Louisville.xml"
                url="widgets/Search/SearchWidget.swf"/> -->
        <widget label="Draw and Measure" left="60" top="400"
                icon="assets/images/i_draw2.png"
                config="widgets/Draw/DrawWidget.xml"
                url="widgets/Draw/DrawWidget.swf"/>
        <widget label="Print" left="390" top="400"
                icon="assets/images/i_print.png"
                config="widgets/myPrint/myPrintWidget.xml"
                url="widgets/myPrint/myPrintWidget.swf"/>
  <widget label="Street View"
    icon="assets/images/i_gsv.png"
    config="widgets/FrStreetView/FrStreetView.xml"
    url="widgets/FrStreetView/FrStreetView.swf"/>
  <widget label="Layer List" preload="open"
                icon="assets/images/i_layers.png"
                config="widgets/LayerList/LayerListWidget.xml"
                url="widgets/LayerList/LayerListWidget.swf"/>

        <!--
        <widget label="My first widget"
                icon="assets/images/i_widget.png"
                config="widgets/Samples/HelloWorld/HelloWorldWidget.xml"
                url="widgets/Samples/HelloWorld/HelloWorldWidget.swf"/>
        -->
    </widgetcontainer>

</configuration>
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Josh,

   Below is your error indicated in red, you were missing a closing layer tag:

<?xml version="1.0" ?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Read more about ArcGIS Viewer for Flex - http://links.esri.com/flexviewer
//
////////////////////////////////////////////////////////////////////////////////
-->
<configuration>
    <title>City of Arkansas City</title>
    <subtitle>GIS Webmap</subtitle>
    <logo>assets/images/ArkCitylogosmall.png</logo>
    <style>
         <!-- Black Gold -->
        <!--<colors>0xFFFFFF,0x333333,0x101010,0x000000,0xFFD700</colors>-->
        <!--Cobalt Blue-->
        <colors>0xCEE7F4,0x39628C,0x355D89,0x294867,0xCEE7F4</colors>
        <!--Desert Sand-->
        <!--<colors>0x4C2600,0xFFEDB8,0xB2AD81,0x6F6750,0x4C2600</colors>-->
        <!--Graphite Gray-->
        <!--<colors>0xCCCCCC,0x777777,0x555555,0x333333,0xCCCCCC</colors>-->
        <!--Sage Green-->
        <!--<colors>0x333333,0xAFCFAF,0xFFFFAB,0xEAEA9D,0x333333</colors>-->
        <!--Sky Blue-->
        <!--<colors>0x444444,0xEBF4FF,0xEBF4FF,0xDEEBFF,0x444444</colors>-->
        <alpha>0.8</alpha>
    </style>
    <!-- replace the following url with your own geometryservice -->
    <geometryservice url="http://gis-server/arcgis/services/Geometry/GeometryServer" />

    <!-- UI elements -->
    <widget left="10"  top="50"    config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
    <widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
    <widget right="20" top="55"    config="widgets/MapSwitcher/MapSwitcherWidget.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>
    <widget left="0"   top="0"     config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>
    <widget left="3" bottom="3" config="widgets/Coordinate/CoordinateWidget.xml" url="widgets/Coordinate/CoordinateWidget.swf"/>
    
    <map wraparound180="true" initialextent="-10803160 4447456 -10801480 4448154" fullextent="-10854000 4445400 -10727000 4503000" top="40">
        <basemaps>
            <layer label="Streets" type="tiled" visible="true"
                   url="http://gis-server/ArcGIS/rest/services/StreetsBase/MapServer"/>
            <layer label="Aerial"  type="tiled" visible="false"
                   url="http://gis-server/ArcGIS/rest/services/Aerial/MapServer"/>
            <layer label="Topo"    type="tiled" visible="false"
                   url="http://gis-server/ArcGIS/rest/services/Topographic/MapServer"/>
        </basemaps>
        <operationallayers>
            <layer label="Demographics" type="tiled" visible="false" alpha="0.5"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Household_Income/MapServer">
                <sublayer id="1" popupconfig="popups/PopUp_Demographics_BlockGroups.xml"/>
                <sublayer id="2" popupconfig="popups/PopUp_Demographics_Tracts.xml"/>
                <sublayer id="3" popupconfig="popups/PopUp_Demographics_Counties.xml"/>
                <sublayer id="4" popupconfig="popups/PopUp_Demographics_States.xml"/>
            </layer>
            <layer label="Addresses" type="dynamic" visible="true"
                   url="http://gis-server/ArcGIS/rest/services/Addresses-Streets/MapServer"/>
            
            <layer label="Utilities" type="dynamic" visible="false"
                   url="http://gis-server/ArcGIS/rest/services/Utilities/MapServer"/>
            
            <layer label="Parcels" type="dynamic" visible="true" 
                url="http://gis-server/ArcGIS/rest/services/Parcels/MapServer"> 
                <sublayer id="16" popupconfig="popups/PopUp_parcels.xml"/>
            </layer>
        </operationallayers>
    </map>

    <!-- widgets organized into widget containers that manage close/open etc -->
    <!-- supported layout property options: horizontal(default)|float|vertical|fix-->
    <widgetcontainer layout="float">
        <widget label="Bookmarks"         left="430" top="90"
                icon="assets/images/i_bookmark.png"
                config="widgets/Bookmark/BookmarkWidget.xml"
                url="widgets/Bookmark/BookmarkWidget.swf"/>
        <widget label="Find an address"   left="100" top="90" preload="open"
                icon="assets/images/i_target.png"
                config="widgets/Locate/LocateWidget_ArkCity.xml"
                url="widgets/Locate/LocateWidget.swf"/>
        <!--<widget label="Search" left="80" top="280"
                icon="assets/images/i_search.png"
                config="widgets/Search/SearchWidget_Louisville.xml"
                url="widgets/Search/SearchWidget.swf"/> -->
        <widget label="Draw and Measure" left="60" top="400"
                icon="assets/images/i_draw2.png"
                config="widgets/Draw/DrawWidget.xml"
                url="widgets/Draw/DrawWidget.swf"/>
        <widget label="Print" left="390" top="400"
                icon="assets/images/i_print.png"
                config="widgets/myPrint/myPrintWidget.xml"
                url="widgets/myPrint/myPrintWidget.swf"/>
        <widget label="Street View"
                icon="assets/images/i_gsv.png"
                config="widgets/FrStreetView/FrStreetView.xml"
                url="widgets/FrStreetView/FrStreetView.swf"/>
        <widget label="Layer List" preload="open"
                icon="assets/images/i_layers.png"
                config="widgets/LayerList/LayerListWidget.xml"
                url="widgets/LayerList/LayerListWidget.swf"/>

        <!--
        <widget label="My first widget"
                icon="assets/images/i_widget.png"
                config="widgets/Samples/HelloWorld/HelloWorldWidget.xml"
                url="widgets/Samples/HelloWorld/HelloWorldWidget.swf"/>
        -->
    </widgetcontainer>

</configuration>
0 Kudos
JoshWhite
Honored Contributor
Thanks Robert, that worked.  Sometimes Cut and paste can do that to you.  What we really need is some sort of program that would automatically upgrade the xml to the new version so that cut and paste was not necessary.  Also, any ideas why in IE 9 I have so many problems getting it to show the changes?  Firefox has no problems.  I have installed a cleaner that helps with this but it seems that simply clearing the cache should do it.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
DasaPaddock
Esri Regular Contributor
Popup Problems in SFV2.4?
Is there a maximum number of fields that can be displayed in a popups configuration? I need to display 15 fields, but anything more than 8 will only work on the first click. After the first click the info popup box is empty except for "title" and "zoom to"

Any suggestions appreciated
Thanks
Ned


See a fix for this here:
http://forums.arcgis.com/threads/36513-2.4-PopUp-scrollbar-bug
0 Kudos