/******************************************************************/
//What's new
//Version 2.0
//
/*****************************************************************/
If you are upgrading an application from version 1.3 to 2.0, please read the "Migrating(迁移) to 2.0" information.
如果你正在升级一个应用程序,从1.3的版本到2.0版本,请阅读“迁移到2.0”信息。
For incremental(增加的) changes between different 2.0 versions, see the detailed change log.
对于2.0版本中增加的部分,查看详细的改变日志
For full functionality, ArcGIS API for Flex 2.0 requires ArcGIS Server 10.0 and above. For most functionality, for example basic mapping and query, any ArcGIS Server 9.3 or above will do fine. For editing, time-aware layers, closest facility and service area, you need ArcGIS API for Flex 2.0 (or later) and ArcGIS Server 10.0 (or later). See the system requirements for more details.
如果要实现所有的功能,ArcGIS API for Flex 2.0需要ArcGSIServer 10.0或者以上的版本。 对于大多数的功能,比如:基本的地图服务和查询功能,任何的ArcGISServer9.3或者以上的版本都能完成。 对于编辑、时间感知层、最近设置查询、服务域,你需要ArcGIS API for Flex 20(或者后面的版本)和ArcGISServer 10.0(或者更新的版本)。 查看系统要求获取更多相关的信息。
ArcGIS API for Flex 2.0
Version 2.0 of the API is based on the Adobe Flex 4 SDK, which requires end users to use Flash Player 10 or later. See system requirements for more details.
The API version 2.0 has been greatly expanded from version 1.3 with new functionality and components, for example 101 new classes and 62 new events. Below is a brief summary of new features in version 2.0 of the ArcGIS API for Flex.
2.0版本的API是基于Adobe Flex4的开发包,它需要最终的用户使用Flash播放器10版本或者更新的版本。查看系统需求获取更过的信息。
2.0版本在1.3的基础上进行了很大的扩展,扩展很多新的功能和组件,比如:101个新的类,和62个新事件。 下面是一个在ArcGIS API for Flex 2.0版本中新元素的简单总结。
FeatureLayer
Editing
Time-awareness
Other updates
1. Feature Layer
FeatureLayer is a new type of clientside operational layer that can be created and added to your map. FeatureLayer extends GraphicLayer and works against an individual layer or table in a MapService or FeatureService. Read more about feature layers.
FeatureLayer是一个新类型的客户端操作图层,她可以被窗井和添加到你的地图上面。FeatureLayer扩展了GraphicLayer,并针对性的用于MapService或者要素服务的单独图层或者表格。
Feature layers support the following out-of-the-box functionality:
Feature 图层支持下面的即用功能。
Selections - you can select features interactively or by attributes. Selections are visualized using the selection color. You can create new selection, add to the current selection or remove from the current selection using attribute or geometry queries. Interactive selection is done by mapClick or any of the DrawTool options for creating a geometry to query on.
Selections:你可以交互性的选择features或者通过属性选择要素。使用selection工具,选择是可视化的。 你可以创建新的selection,添加到当前的selection或者从当前的selection中删除,这些操作都可以通过属性或者几何查询。交互性选择是值通过鼠标的单击来实现,或者其他的用于创建查询的Geometry的drawTOOL操作。,
Editing - when working with an editable layer in a Feature Service, you can add, modify or delete features including their related attachments.
DefinitionExpression - you can limit the features to a subset(子集) of the full underlying layer.
Query - instead of populating a graphics layer with(有) results from a query, you can use a FeatureLayer.
Query related tables - you can take advantage of built-in support for relations between layers and tables.
编辑:当在一个feature服务中和一个可以编辑的图层一起工作,你可以添加,重定义,或者删除features以及她的附属的东西。
DefinitionExpression:你可以限制一个功能完整的基础层的一个子集。
Query:你可以使用FeatureLayer,来代替一个对有查询结果的图形层的计算。
Query related tables:你可以利用层和层之间的内建的支持和表关系。
2. Editing using FeatureLayer and ArcGIS Server (requires ArcGIS Server 10.0 and SDE).
At
2:使用FeatureLayer和ArcGISServer编辑。(需要ArcGISServer 10.0和SDE)。
在10.0的新服务中,featureService,可能用来支持临时样式编辑。 若干个Widget已经添加进来支持编辑,包括编辑组件,一个可配置的即用编辑解决方案。
Additional classes that support editing:
增加的类支持编辑
Attribute Inspector(检查员) component - supports editing of the attributes of selected features from a feature layer. Honors domains and subtypes as defined by the service.
EditTool - supports moving graphics and editing vertices(顶点, 最高点, 头顶).
DrawTool - supports creating new features.
TemplatePicker component - displays a gallery of feature templates.
AttachmentInspector component - helps users upload and view a list of feature attachments.
Attribute Inspector(检查员) component:支持编辑从FeatureLayer图层中选中的要素的属性。
EditTool(编辑工具):支持移动Graphics和编辑顶点。
DrawTool:支持生成新的Features。
TemplatePicker component:展示一个feature 模板的走廊
AttachmentInspector component:帮助用户上传feature附件和查看feature附件列表。
3. Time-awareness
Support has been added for time-aware layers and a new TimeSlider component. You can query or display your time-aware layers using a particular slice of time. The TimeSlider provides an easy way to visualize temporal data. Read more about time-aware layers.
【看不懂】
4. Other updates
Bing Maps
Bing Maps (formerly Microsoft Virtual Earth) authentication(证明鉴定) now uses a "key" property instead of token, client, and server. No more need for the Virtual Earth Token(令牌)
BingMaps的证明和鉴定现在是使用一个key属性而不是一个token,客户端或者服务器。对于虚拟地球令牌不需要很多。
page.
Bing Maps environment property has been removed since Microsoft no longer will support a staging environment.
Bing Maps 环境属性已经被删除,并未微软不在支持舞台环境。
Geometry Service
Twelve new operations were added to the GeometryService: Autocomplete, Convex Hull, Cut, Densify, Difference, Distance, Generalize, Intersect, Offset, Reshape,
12个新操作被添加到GeometryService,Autocomplete, Convex Hull, Cut, Densify, Difference, Distance, Generalize, Intersect, Offset, Reshape,
Trim/Extend, and Union.
The Lengths operation supports units and geodesic(adj. 测地学的, 测量的, 测地线的) distances.
The Areas and Lengths operation supports lengthUnit, areaUnit and geodesic parameters.
Lengths操作支持单位和测地线的距离。
Areas and Lengths操作支持长度单位,面积单位和测地线参数
Mapping Enhancements
Query enhancements to query for all IDs, which can then be used to include paging in applications.
Query performance has been improved by adding support for faster JSON and by using AMF (see below).
Support for stand-alone tables.
Ability to expose and query relationships.
The identify(鉴定) and find operations support layer definitions.
New event, isInScaleRangeChange in the Layer class, that is fired when the layer's isInScaleRange property changes.
地图增强
查询用于所有的ID,这些ID可以用于在应用程序中包含页面。
查询的操作已经通过提高对JSON的支持和使用AMF得到提高。
支持单独的表格
揭露和查询关系的能力
鉴定和查找操作支持图层定义。
在layer类中的新事件isInScaleRangeChange,当图层的isInScaleRange属性发生改变后就会触发。
AMF
AMF (ActionScript Message Format(设计,安排;格式,样式 vt.使格式化)) has been added in ArcGIS Server 10.0 for faster queries. AMF is currently supported on FeatureLayer, QueryTask and Geoprocessor. If you're connecting to a 9.3 server QueryTask or Geoprocessor, you need to set the useAMF property to "false".
AMF已经被添加到ArcGISServer 10中用户快速查询。 AMF目前支持FeatureLayer, QueryTask,和Geoprocessor。 如果你现在连接到一个9.3服务中的
QueryTask 和Geoprocessor,你需要设置useAMF 属性为false;
Gecode updates
Locator supports outSpatialReference when connecting to an ArcGIS Server 10.0 and above.
当连接到一个ArcGIS Server 10或者更高版本的时候,定位器支持outSpatialReference;
Network Analyst updates
Closest Facility functionality includes the ClosestFacilityTask, a ClosestFacilityEvent, some input parameters and the result. Check out the Closest Facility example.
Service Area functionality: the ServiceAreaTask, a ServiceAreaEvent, some input parameters and the result. See Service Area example.
Flex 4 and Flash Builder 4 related updates
Our API Reference is available inside Flash Builder. Both as tooltips and in the "ASDoc" tab.
Adobe Flex 4 SDK is required for API developement, which means that Adobe Flash Player 10 or above is required version for browser applications.
TextSymbol now use Flash Player 10 Text Engine which means that alpha and angle now also works for non-embedded (device) fonts.
网络分析
最近设置查询功能包括:ClosestFacilityTask,一个ClosestFacilityEvent,一些输入参数和结果。 检查最近设施的例子。
Service Area functionality:ServiceAreaTask, a ServiceAreaEvent,一些输入参数和结果。
Flex 4 and Flash Builder 4 相关的更新
我么的API引用在Flash builder中是可以获取的。 都以工具提示的形式在 ASDOC 页面中。
API的开发需要Adobe Flex 4 SDK,这意味着要求FLASH player 10 或者更高版本用于网络应用程序
TextSymbol 现在是偶那个Flash player 10 文本引擎,这意味着alpha 和 angle 现在仍然为非嵌入式的字体工作。
Read the Migrating to 2.0 page for information on how to update your existing applications based on Flex API 1.3 code to 2.0. For a complete list of what was updated in earlier versions, see What Was New in earlier versions.
阅读Migrating to 2.0 page,获取如何更新你已经存在的基于Flex API 1.3的应用程序的代码到2.0版本。 为了一个完整的在更早版本更新什么的清单,请查看Migrating to 2.0 page