New features in ArcGIS API for JavaScript new version 3.11

Source: Internet
Author: User
Tags compact map class

New features in ArcGIS API for JavaScript new version 3.11:

A shorter reference URL: This is important if you are updating a previous version of a program to a new version.

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")

To update your source code to version 3.11, you need to correctly replace the following URL path:/3.10/js/dojo/should now be/3.11/(notice that "/js/dojo" is removed), and/3.10/js/esri/should now write/3.11/esri/( Notice that "/js" was removed.

Examples are as follows:

<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" >

Improvements to the SDK:

    • The New SDK home page has been updated.
    • The security sandbox supports more sample programs.
    • The Learning Guide is now placed under the "Guides" menu item
    • The document contains more links to support better navigation

Data visualization by using Opacityinfo's new property-driven

When using Opacityinfo and renderers, developers have additional ways to improve their data visualization techniques when they display information on their maps.

Renderer.setopacityinfo ({
Field: "M086_07",
Stops: [
{value:10, opacity:0},//-1 StdDev, transparent
{value:39, opacity:0.5},//Averagevalue, 50% Transparent
{value:68, opacity:1}//+1 StdDev, completely opaque
]
});

Check out the series of data visualization blogs and the API Help documentation for the Renderers chapters listed below for more information:

    • Data visualization with ArcGIS API for JavaScript
    • Data visualization with ArcGIS APIs for javascript:show data by Unique Value
    • Data visualization with ArcGIS API for Javascript:enhancement Options

New Featurelayer Rendering Class (Heatmaprenderer) (test ...)

Featurelayer has a new rendering class Heatmaprenderer in this release. The Heatmaprenderer class creates a surface by using an Gaussian blur algorithm that describes the standard areas of the centralized area of a dataset in data visualization. Heatmaprenderer can only work in the current browser (except IE9 and IE9 versions below).

Discover demographic data and geoenrichment variables by Databrowser (Geoenrichment My understanding is geo-enrichment, through geoenrichment can be loaded with a rich demographic and landscape thematic map, etc.)

Applications created by developers using geoenrichment data can now use the Databrowser component. This component simplifies the process of discovering geoenrichment variables in a program or collection variable used to generate a report.

When using the Web map improvements

At this release anew property editable in Optionson method Createmap wasintroduced. When supporting non-editing workflows, this would override Layersthat would has otherwise been editable and allow the Feat Urelayers in a Web mapto load using generalized geometry instead of loading detailed geometries forediting purposes.

Developersconsuming web maps would be able to leverage performance enhancements at thisrelease due to internal optimization s which intelligently load modules basedupon a Web map configuration when using the module esri/arcgis/utils, and the Crea Temap Methodwhen Hydrating Web maps.

Faster Application Loading

Faster program loading

Many performanceenhancements were introduced into the standard and compact builds at Thisrelease. These changes would allow users of the compact and standard build Toleverage the most frequently used modules resulting in Overall performance whenloading the compact and standard versions of the JavaScript API.

For bestperformance with Web map, please re-save any existing web maps. To does this,simply open the Web map in the Viewer and then click "Save". This willupdate them to the latest version which would benefit the loading of yourapplications.

Web Optimizer Changes Andenhancements

Enhanced and changed Web Optimizer

    • 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

Enhanced Measurement components

New Developerevents and methods to support interacting with geometries during the life cycleof the measurement widget,acce Ssing the current tool, and current units. Fixed Issues for Developers whenusing The measurement widget inapplications and services containing coordinate systems OTH ER than WGS84 andweb Mercator.

Driving Direction Enhancements

Enhanced driving routes

The Directionsprint window includes an overview map of the route as long as you either usethe ArcGIS Online Route Service or specify a printtaskurl.

Labelling improvements

Improvements to labeling

The Map class has a new constructoroption showlabels toindicate whether to automatically display labels. If true, any feature layeradded to the map would automatically be labelled based on the feature layer ' slabelinginfo and the Layer ' s own showlabels status.

The Labellayer have beenimproved with to work with domain values, better support for field names Containingnon-ascii Charac ters, better label placements, support label placements using ' always-horizontal ' style, and to work better with Time-aware Data.

Developer enhancements for Dealingwith projecting features

New methods Fordevelopers 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 Trueif the ' source ' can be projected to ' target ' by the project () function, or Ifsource and target is the same Spatialreference.
result = Webmercatorutils.project (pt, map);
}
else{
Cannotproject Client-side, use Geometryservice
}

Enhancements to infotemplate custom functions

Developers nowhave the ability to use custom format functions within Infotemplate to useoptions like the built-in format F Unctions. This can is useful when you arereusing 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/>");

Part of the API improvements

  • New class Heatmaprenderer (Beta).
  • New class Databrowser.
  • New method Fromextent on Polygon class.
  • New Property Clearontrackingstop on Locatebutton class.
  • New constructor Option Definitionexpression on Featurelayer class.
  • New Properties Supportsattachmentsbyuploadid and Supportscalculate on Featurelayer class.
  • New constructor Option Showlabels on Featurelayer class.
  • New Property Showlabels on Featurelayer class.
  • New method Setshowlabels on Featurelayer class.
  • New Event Show-labels-change on Featurelayer class.
  • New constructor Option Showlabels on Map class.
  • New Property Opacityinfo on Renderer class.
  • New methods Setopacityinfo and Getopacityinfo on Renderer class.
  • New methods GetTool and Getunit on measurement class.
  • New events Measure-start and measure on measurement class.
  • Updated event measure-end on measurement.
  • New Events Tool-change and Unit-change on measurement class.
  • New constructor Option Highlightlocation on Geocoder class.
  • New constructor options symbol, Graphicslayer and geocoders on Geocoder class.
  • New property highlightlocation, Symbol and Graphicslayer on Geocoder class.
  • New method Suggestlocations on Locator class.
  • New Event suggest-locations-complete on Locator class.
  • New Properties Categories and CountryCode on Locator class. The Thecountrycode property is applies to the Esri Globalgeocoder. [ENH-000081715]
  • New Property Outscale The Printtemplate class Tosupport printing at a specific scale.
  • New Property Returndistinctvalues on Query class. [NIM091580]
  • New constructor Options Maximumtrackpoint and Geometrydefinition on Streamlayer class.
  • Updated methods Setdefinitionexpression and Getdefinitionexpression on Streamlayer class.
  • New methods Setmaximumtrackpoints, Getgeometrydefinition and setgeometrydefinition on Streamlayer class.
  • New events Filter-change, Attempt-reconnect and Connection-error on Streamlayer class.
  • New constructor Options Geometrytaskurl and Printtaskurl on directions class.
  • New property Editable in Optionson method Createmap
  • New methods Canproject and project on Webmercatorutils class.
  • All events include a target property.

Resolved bug

  • Nim100031:users now has a consistent user experiencefor popups containing multiple features read-only and edit.
  • Bug-000080930:popup next/previous buttons should switchfor right-to-left.
  • Nim100127:fixed issue where inline style for font Sizewas applied using Internet Explorer.
  • Nim103917:the infotemplate zoomtofunction Nowworks with a single point in a Multipoint feature class.
  • Nim103178:fixed an issue where printingarcgisdynamicmapservicelayers with layer definitions on sub layers printed AllOf t Hese layers were printed regardless of whether their visibility was set tofalse.
  • Nim101737:the Draw toolbar Extent geometry now displaysin exported web map.
  • Nim103247:fixed issue where the zoom rectangle would notdisplay properly when using Internet Explorer.
  • Nim103715:fixed an issue where ESRI demographic layersshow a long running script message when opening a popup using IE8.
  • NIM102529:ESRI logo in Samples now opens the Respectiveurl in Internet Explorer.
  • Nim095050:scale visibility of KML layer is now honored.
  • Nim104028:fixed an issue where a labeled featuredisplayed the coded domain value and not the description.
  • Nim104292:fixed an issue where the the the the the Measurementwidget Measure-end event fired before the polygon finished.
  • Nim103917:infotemplate Zoomto now supports single pointswhen using a multi-point featureclass datasource.
  • NIM103868:KML layer Placemarks with hotspots now displayin the correct location.
  • Nim103312:can now print a map containing a graphichaving attributes and a Text symbol as its Symbol.
  • Nim100031:now able to work with overlapping records whenediting a feature service.
  • Nim104099:printtask now prints a map containing a wmtslayer without a specified resourceinfo parameter.
  • Nim103199:added the ability to ignore missing legendstyles for WMS layers in the Legend widget.
  • Geonet-106484:undomanager now supports on Style events. See also Geonetdiscussion.
  • Geonet-423902:class name is added for the messages Divin the Legend widgets to make it easier to apply CSS. See also GeoNet discussion.
  • Directions Widget:get Directions Button didn ' t work onsome native Android browsers.

Other resources on GitHub

Be certain tocheck off any updates to the repository on GitHub with TypeScript definitionsfor the JS API as well as the JS Hint options file used by the JS API team.

Dojo

Version 3.11 of ArcGIS API for JavaScript uses the dgrid,0.3.5 version of the dojo,0.3.15 version of the 1.10.0 version of the Put-selector and the 0.1.3 version of Xstyle.

New features in ArcGIS API for JavaScript new version 3.11

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.