This is important if you're upgrading from earlier versions!
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") and /3.10/js/esri/
should now read /3.11/esri/
(note the dropped "/js") .
An example of this is shown below
<link rel="stylesheet" href="https://js.arcgis.com/3.11/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="https://js.arcgis.com/3.11/esri/css/esri.css">
opacityInfo
Developers will now have additional ways to improve their data visualization techniques when displaying information in
their maps when using opacityInfo
with
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
section in the API help.
HeatmapRenderer
for FeatureLayer
(beta)
FeatureLayer
has a new renderer at this release. The HeatmapRenderer
creates a surface using a standard Gaussian blur algorithm
used in data visualization for illustrating areas of concentration within datasets.
The HeatmapRenderer will only work in modern browsers (not IE9 and below).
Developers building applications enriched with
Geoenrichment data, can now
leverage the DataBrowser
widget. This widget simplifies the process of discovering Geoenrichment variables for enhancing data in applications
or
gathering variables for generating reports.
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.
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.
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.
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
.
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.
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 }
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/>");
HeatmapRenderer
(beta).DataBrowser
.Polygon
class.LocateButton
class.FeatureLayer
class.FeatureLayer
class.FeatureLayer
class.FeatureLayer
class.FeatureLayer
class.show-labels-change
on FeatureLayer
class.Map
class.Renderer
class.Renderer
class.Measurement
class.measure-start
and
measure
on Measurement
class.measure-end
on
Measurement
.tool-change
and
unit-change
on Measurement
class.Geocoder
class.Geocoder
class.Geocoder
class.Locator
class.Locator
class.Locator
class.
The countryCode property only applies to
the Esri global geocoder. [ENH-000081715]PrintTemplate
class to support printing at a specific scale.Query
class. [NIM091580]StreamLayer
class.StreamLayer
class.StreamLayer
class.StreamLayer
class.Directions
class.createMap
webMercatorUtils
class.zoomTo
function now works with a single point in a multipoint feature class.
Use the repository on GitHub for the JS API TypeScript definitions.
Version 3.11 of the ArcGIS API for JavaScript was upgraded to use Dojo 1.10.0. dgrid was upgraded to version 0.3.15. put-selector version 0.3.5 and xstyle version 0.1.3 are also included.