ArcGIS API For Javascript新版本3.11中的新特性

ArcGIS API For Javascript新版本3.11中的新特性:

更简短的引用URL:如果你正在将用以前的版本的程序更新到新版本的话,这是很重要的。

To update your code for version 3.11 references, replace the following URLs accordingly: /3.10/js/dojo/ should now read /3.11/ (note the dropped "/js/dojo")

将你的源码更新到3.11版本,你需要正确的替换掉下面的URL路径:/3.10/js/dojo/ 现在应该是 /3.11/ (注意删除了 "/js/dojo"),而 /3.10/js/esri/ 现在应该写做 /3.11/esri/ (注意删除了 "/js") 。

示例如下:

<link rel="stylesheet" href="http://js.arcgis.com/3.11/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.11/esri/css/esri.css">

SDK的改进:

  • 更新过的新的SDK主页.
  • 安全沙箱支持更多的示例程序.
  • 学习指南现在放在了“Guide”菜单项下面
  • 文档里面包含了更多的链接支持更好的导航

通过使用opacityInfo的新的属性驱动的数据可视化

当使用opacityInfo 和Renderers时,开发者在将信息显示到他们地图上时,有了额外的提高他们数据可视化技术的方式

renderer.setOpacityInfo({
  field: "M086_07",
  stops: [
    { value: 10, opacity: 0   },  // -1 stddev,
    transparent
    { value: 39, opacity: 0.5 },  // average
value, 50% transparent
    { value: 68, opacity: 1   }   // +1 stddev,
    completely opaque
  ]
});

请查看数据可视化技术的系列博客和下面列出的 Renderers 章节的API帮助文档了解更多的信息:

新的FeatureLayer的渲染类(HeatmapRenderer)(测试中...)

FeatureLayer在本次的发布版本中有了一个新的渲染类HeatmapRenderer。HeatmapRenderer 类通过使用一个在数据可视化中用来描述数据集中集中区域的标准的 Gaussian blur 算法创建一个表面。HeatmapRenderer只能工作在现在的浏览器中(IE9及IE9以下的版本除外)。

通过DataBrowser发现人口数据和Geoenrichment变量(Geoenrichment我的理解就是地理浓缩,通过GeoEnrichment可加载丰富的人口和景观专题图等)

开发人员通过使用Geoenrichment数据创建的应用程序现在又可以使用DataBrowser组件。这个组件简化了在程序或者收集变量用于生成报表中发现Geoenrichment变量的过程。

当使用web地图的改进

At this release a
new property editable in options
on method createMap was
introduced. When supporting non-editing workflows, this will override layers
that would have otherwise been editable and allow the FeatureLayers in a web map
to load using generalized geometry instead of loading detailed geometries for
editing purposes.

Developers
consuming web maps will be able to leverage performance enhancements at this
release due to internal optimizations which intelligently load modules based
upon a web map configuration when using the module esri/arcgis/utils, and the createMap method
when hydrating web maps.

Faster application loading

更快的程序加载

Many performance
enhancements were introduced into the standard and compact builds at this
release. These changes will allow users of the compact and standard build to
leverage the most frequently used modules resulting in overall performance when
loading the compact and standard versions of the JavaScript API.

For best
performance with web map, please re-save any existing web maps. To do this,
simply open the web map in the Viewer, then click "Save". This will
update them to the latest version which will benefit the loading of your
applications.

Web Optimizer changes and
enhancements

增强和改变的web优化器

  • More optimizations to minimize download size when
    "Only include built layer files and resources" is checked.
  • New advanced option to select locales for custom builds.
  • Users now receive links to builds in email notifications.
  • Additional help topics of Using a custom build and Accessing the build report.

Measurement widget enhancements

增强的测量组件

New developer
events and methods to support interacting with geometries during the life cycle
of the Measurement widget,
accessing the current tool, and current units. Fixed issues for developers when
using the Measurement widget in
applications and services containing coordinate systems other than WGS84 and
Web Mercator.

Driving direction enhancements

增强的驾车路线

The directions
print window includes an overview map of the route as long as you either use
the ArcGIS Online Route service or specify a printTaskUrl.

Labelling improvements

标注的改进

The Map class has a new constructor
option showLabels to
indicate whether to automatically display labels. If true, any feature layer
added to the map will automatically be labelled based on the feature layer‘s
labelingInfo and the layer‘s own showLabels status.

The LabelLayer has been
improved with to work with domain values, better support for field names containing
non-ASCII characters, better label placements, support label placements using
"always-horizontal" style, and to work better with time-aware data.

Developer enhancements for dealing
with projecting features

New methods for
developers to easily (a) check if client-side projection is possible (canProject)
and (b) project geometries
(without using geometry service).

var pt = Point(0, 0), // a geographic point.
    result;
if (webMercatorUtils.canProject(pt, map)) {
    // Returns true
if the ‘source‘ can be projected to ‘target‘ by the project() function, or if
source and target is the same spatialReference.
    result = webMercatorUtils.project(pt, map);
}
else{
    // cannot
project client-side, use GeometryService
}

Enhancements to InfoTemplate custom functions

Developers now
have the ability to use custom format functions within InfoTemplate to use
options like the built-in format functions. This can be useful when you are
reusing a formatting function with different options.

CustomFormat = function (value, key, data, options){
  if(options.currency === "CAD"){
    return dojoCurrency.format(value * 1.1260, options);
  }
  else if(options.currency === "EUR"){
    return dojoCurrency.format(value * 1.25140, options);
  }
  else{
    return dojoCurrency.format(value, options);
  }
}

infoTemplate.setTitle("${NAME}, ${STATE_NAME}");
infoTemplate.setContent("<b>Total (EUR):
</b>${AVG_SALE97:CustomFormat( currency: ‘EUR‘, places:
‘2‘)}<br/>" +
  "<b>Total
(CAD): </b>${AVG_SALE97:CustomFormat( currency: ‘CAD‘, places:
‘2‘)}<br/> " +
  "<b>Total
(USD): </b>${AVG_SALE97:CustomFormat( currency: ‘USD‘, places:
‘2‘)}<br/>");

API改进的部分

解决的Bug

  • NIM100031: Users now have a consistent user experience
    for Popups containing multiple features read-only and edit.
  • BUG-000080930: Popup next/previous buttons should switch
    for Right-To-Left.
  • NIM100127: Fixed issue where inline style for font size
    was applied using Internet Explorer.
  • NIM103917: The InfoTemplate zoomTofunction now
    works with a single point in a multipoint feature class.
  • NIM103178: Fixed an issue where printing
    ArcGISDynamicMapServiceLayers with layer definitions on sub layers printed all
    of these layers were printed regardless of whether their visibility was set to
    false.
  • NIM101737: The Draw toolbar extent geometry now displays
    in exported web map.
  • NIM103247: Fixed issue where the zoom rectangle would not
    display properly when using Internet Explorer.
  • NIM103715: Fixed an issue where Esri demographic layers
    show a long running script message when opening a popup using IE8.
  • NIM102529: Esri logo in samples now opens the respective
    URL in Internet Explorer.
  • NIM095050: Scale visibility of KML layer is now honored.
  • NIM104028: Fixed an issue where a labeled feature
    displayed the coded domain value and not the description.
  • NIM104292: Fixed an issue where the the measurement
    widget measure-end event fired before the polygon finished.
  • NIM103917: InfoTemplate zoomTo now supports single points
    when using a multi-point featureclass datasource.
  • NIM103868: KML layer placemarks with hotspots now display
    in the correct location.
  • NIM103312: Can now print a map containing a graphic
    having attributes and a Text Symbol as its symbol.
  • NIM100031: Now able to work with overlapping records when
    editing a feature service.
  • NIM104099: PrintTask now prints a map containing a WMTS
    layer without a specified resourceInfo parameter.
  • NIM103199: Added the ability to ignore missing legend
    styles for WMS layers in the Legend widget.
  • GeoNet-106484: UndoManager now supports On Style events.
    See also GeoNet
    discussion
    .
  • GeoNet-423902: Class name was added for the messages div
    in the Legend widget to make it easier to apply css. See also GeoNet discussion.
  • Directions widget: Get Directions button didn‘t work on
    some native Android browsers.

GitHub上的其它资源

Be certain to
check out any updates to the repository on GitHub with TypeScript definitions
for the JS API as well as the jshint options file used by the JS API team.

Dojo

3.11版本的ArcGIS API For Javascript使用了1.10.0版本的Dojo,0.3.15版本的dgrid,0.3.5版本的put-selector和0.1.3版本的xstyle

时间: 2024-12-23 23:29:56

ArcGIS API For Javascript新版本3.11中的新特性的相关文章

ArcGIS API for JavaScript中Symbol符号篇

ArcGIS API for JavaScript中Symbol简介: Symbol定义了arcgis中graphics图层内几何图形(geometry)的显示样式 ArcGIS API for JavaScript中Symbol分为四大类:继承关系如下图所示: 1.点符号(MarkerSymbol):点符号(point)的显示样式 2.线符号(LineSymbol):线符号(line)的显示样式 3.面符号(FillSymbol):面符号(polygon)的显示样式 4.文本符号(TextSy

arcgis api for javascript中使用proxy.jsp

当我们使用arcgis api for javascript 查询arcgis服务时,如果查询的参数很长时,通过get方式提交会查询不到结果,因为get方式提交的参数有长度限制,需要通过代理的方式使用post提交. arcgis 提供了一种解决方案就是proxy.jsp. 首先在项目页面js中引入 proxy.jsp:esriConfig.defaults.io.proxyUrl=http://servername:prot/arcgis_js_api/proxy.jsp  引入代理页面 esr

ArcGIS API for JavaScript 4.2学习笔记[0] AJS4.2概述、新特性、未来产品线计划与AJS笔记目录

放着好好的成熟的AJS 3.19不学,为什么要去碰乳臭未干的AJS 4.2? 诸君,我喜欢嫩的--呸呸呸 诸君,我喜欢3D咋了?新事物会替代旧事物不是~ ArcGIS API for JavaScript 4.2概述 AJS 4.2,即ArcGIS API for JavaScript 4.2,是美国ESRI公司针对WebGIS市场推出的.利用JavaScript和Dojo开发的一款产品,它在2016年12月发布.而AJS 4.0 beta则在一年前就发布了. 关于AJS3和AJS4选择的问题,

ArcGIS API for JavaScript开发环境搭建及第一个实例demo

原文:ArcGIS API for JavaScript开发环境搭建及第一个实例demo ESRI公司截止到目前已经发布了最新的ArcGIS Server for JavaScript API v3.9,它提供了更为丰富而又强大的功能.     一.安装前准备 1.ArcGIS Server for JavaScript API各版本下载地址:http://support.esrichina-bj.cn/2011/0223/960.html,我们选择下载最新的"ArcGIS API for Ja

ArcGIS API for JavaScript 学习笔记 (一) --第一个WebGIS应用程序

说明:本地部署后续我会尝试. 简单介绍: 开发环境是Visual Studio 2012,因为它为所有的.aspx文件..htm文件以及外部的.js文件提供了IntelliSense(智能提示),相当于其他软件的代码自动补全功能,非常方便.接下来是我的第一个Javascript API 应用程序.ESRI在其arcgis online中提供了在线的ArcGIS API for JavaScript,在web应用中直接引用即可,无需下载安装:当然也可以下载API,然后部署到自己的web服务器,在这

ArcGis API for JavaScript 开发笔记一 加载地图

1.首先要配置GIS 环境 参考资料:看下这些大神的资料: http://blog.sina.com.cn/s/blog_708bacf90100yddk.html http://blog.csdn.net/wufeishimeng/article/category/522004 也可以查看官方的例子: https://developers.arcgis.com/javascript/jssamples/ 查看GIS 官方API https://developers.arcgis.com/jav

使用Arcgis Api for Javascript 调用 本地Portal发布的WebMap

步骤: 安装Arcgis Portal 10.4,Server 10.4,DataStore ,WebAdaptor for IIS,搭建arcgis api for javascript 4.3环境,具体配置过程自行百度,在此就不赘述. 设置Portal语言:"我的组织"->编辑设置->常规->语言,选中“中文简体”; 发布图层:在arcgis pro 1.4中发布名为point,line,polygon的测试服务,此处可以对各图层进行唯一值渲染等配图操作; 配置地

ArcGIS API for JavaScript开发初探——HelloWord

1.前言 ArcGIS API for JavaScript 3.10版本使用Dojo1.9.1.dgrid升级到0.3.14版本.put-selector version版本升级到0.3.5和xstyle版本升级到0.1.3. 2.建立第一个应用程序HelloWord 2.1 .创建一个简单的HTML文档 首先我们先创建一个简单的Html文档,具体事例如下图: <!DOCTYPE html> <html> <head> <meta charset="u

初学ArcGIS API for JavaScript

初学ArcGIS API for JavaScript 对于初学者来说,关于esri提供的一些样式和dojo自带的一些样式还是需要有一定的了解,这块在<WebGIS开发从基础到实践>讲解的特别详细,在这里以笔记的形式来帮助自己加以理解和记忆. esri.css样式主要用于ESRI提供的小部件与组件,比如地图.信息框等.此外,还可以引用Dojo提供的样式表,Dojo提供了4组样式,分别是claro\tundra\soria以及nihilo,每种是一组定义用户界面的字体.颜色与大小等设置.在Arc