Select to view content in your preferred language

Flex Viewer 2.2 released!

4261
32
12-10-2010 12:52 PM
BjornSvensson
Esri Regular Contributor
Today we released version 2.2 of both ArcGIS API for Flex and ArcGIS Viewer for Flex.

Among the highlights to both Flex API and Flex Viewer:
�?� Support for arcgis.com web maps
�?� Legend Component in the API and Legend Widget in the Viewer
�?� Undo/redo while editing

API 2.2 What�??s New
http://help.arcgis.com/en/webapi/flex/help/index.html#whats_new.htm

Viewer 2.2 What�??s New
http://help.arcgis.com/en/webapps/flexviewer/help/index.html#whats_new.htm
Tags (2)
0 Kudos
32 Replies
RobertScheitlin__GISP
MVP Emeritus
Team,

Sorry to report a possible bug on the first day of release but I was wonder why the draw widget does not give any scale handles for extents when clicked?
If I add:
if (editGraphic.geometry is Polyline || editGraphic.geometry is Polygon || editGraphic.geometry is Extent)

it seems to work fine, was this left out for some reason?

Next I would like to rant a little. I have been spending the last week or more working on adding move and rotate handles to my Enhanced draw widget and was extremely close to releasing it... The fact to you guys came out with the functionality but better implemented is great except that it would have save me a week or more of development time if I knew you guys had any intention of doing this...

So as it has been stated a couple of times on this forum can the team be team players and release a list of intended widgets and enhancements? Even if the teams says it is looking at doing this and you determine that it has to be removed from the list, that would be better than developers like my self wasting time developing something just to turn around and throw it away because a BETTER alternative was produced by you guys. So to recap the Viewer team could publish a list of widgets and enhancement that are intended to be released in the FlexViewer 2.3 that can be a living document that has things added and removed from the list at the teams discretion.

How about it?
0 Kudos
by Anonymous User
Not applicable
Robert,
  I fully concur. I put off developing an enhanced print widget in hopes that the next release of the viewer would have addressed this issue. It hasn't! If you look at ideas.arcgis.com this issue has been 'Under Consideration' for some time and currently has 3,020 votes. I must field at least 15-20 phone calls from the public a week on printing issues.
  The new draw widget is a step in the right direction, however it has issues. I was hoping to move, rotate and edit (size, color, contents, etc.) annotation by clicking on annotation that was added to the map (reference Mark Hoyland's redlining graphics tool). Instead this error occurs:

TypeError: Error #1034: Type Coercion failed: cannot convert mx.core::FTETextField@22a91101 to com.esri.ags.Graphic.
    at widgets.Draw::DrawWidget/graphicClickHandler()

As a long time consultant of ours has stated, "Esri has always treated annotation as a wart on a toad's butt".

Also where are the resize handles for an added rectangle?
0 Kudos
BjornSvensson
Esri Regular Contributor
Robert, thanks for being first to report that no-extent-editing bug. 
Chris, this is why you don't see the resize handles for rectangles.

Chris, while there are plans for a more complete print solution with ArcGIS Server, it will probably be released post-2.3.

As for general 2.3 plans, we will be working on the detailed plans next week. We've added an entry to our FAQ called "What about the next version (2.3)?" to share an initial list of some of the items we are considering for the next version.
http://help.arcgis.com/en/webapps/flexviewer/help/index.html#faq.htm
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Bjorn,

  That's what I am talking about. I knew you guys were team players.

Keep Up the Good Work.

P.S.

   This is probably a REST enhancement request but... I would love the ability to specify the legend image size from the Rest endpoint. I sometimes need bigger swatches when working with picture fill symbols.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Next enhancement request:

In the DrawWidget be able to change the measurement font color, weight, size, etc. This is basic needed functionality when dealing with maps with dark backgrounds.
0 Kudos
AdrianComan1
Emerging Contributor
Hi,

Please teach me how to connect to a WMS service or what i have to change in flexviewer-2.2-src to add/work;

Thanks in advance
0 Kudos
DasaPaddock
Esri Regular Contributor
Here's an example:

<layer
    label="US"
    type="wms"
    visible="true"
    visiblelayers="0,2"
    url="http://sampleserver1.arcgisonline.com/arcgis/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServe..."/>

There's more options available. See:
http://help.arcgis.com/en/webapps/flexviewer/help/layer_tag.htm
0 Kudos
StephenLuzny
Deactivated User
Dasa,

Could you elaborate on including a WMS layer in the Operational Layers section of the config.xml file for Flex Viewer 2.2? The documentation does not have much detail.

Specifically, I am attempting to add the hypsography layer from the Toporama Web Map Service (Toporama WMS) of the Earth Sciences Sector (ESS) at Natural Resources Canada (NRCan). See http://geogratis.cgdi.gc.ca/geogratis/en/service/toporama.html for information about this service.

<Layer queryable="0" opaque="0" cascaded="0">
<Name>hypsography</Name>
<Title>Hypsography</Title>
-
<Abstract>
The Hypsography layer represents elevation points and continuous lines formed by peaks of equal altitude used to describe the topography. Elevation of points and lines is always calculated from mean sea level.
</Abstract>
<SRS>EPSG:4269</SRS>


The layer line I have included in my config.xml is as follows:
<layer label="Contours" type="wms" visible="true" visiblelayers="hypsography" url="http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en"/>

Is there an option to set the WMS version in the layer line? An error message I get seems to indicate that FlexViewer defaults to version 1.3.0, but Toporama supports the OGC WMS standard, version 1.1.1.

SecurityError: Error #2048: Security sandbox violation: http://465793h/FlexViewer2.2/index.swf cannot load data from http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en?VERSION=1%2E3%2E0&REQUEST=GetCapabilities&SERVICE=WMS.
 at Function/com.esri.ags.layers:WMSLayer/private:loadCapabilities/com.esri.ags.layers:myFaultFunction()
 at mx.rpc::AsyncResponder/fault()
 at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyFault()
 at mx.rpc.events::FaultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
 at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
 at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
 at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
 at mx.rpc::Responder/fault()
 at mx.rpc::AsyncRequest/fault()
 at DirectHTTPMessageResponder/securityErrorHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/redirectEvent()


Additionally, is there a way to specify the EPSG code for the WMS in the layer line? This is not mentioned in the documentation. I suppose that "EPSG:900913 - Google Spheric Mercator", which is supported by Toporama, would match the ArcGIS Online cached services.
0 Kudos
DasaPaddock
Esri Regular Contributor
The Security error is being thrown because they don't have a crossdomain.xml file on their server. You can either configure the layer to use a proxy or have it skip getting the capabilities.

e.g.

<layer label="Contours" type="wms" visible="true" visiblelayers="hypsography"
                   url="http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en" skipgetcapabilities="true" version="1.1.1"/>

The skipgetcapabilities and version attributes have been added to the layer tag doc. The WMSLayer uses the map's SpatialRefernce so you can set wkid="900913" on the map tag.
0 Kudos