ArcGIS API for JavaScript 4.4 Learning notes [new] AJS4.4 and AJS3.21 new features

Source: Internet
Author: User

The ESRI website silently updates 4.4 and 3.21, and the public number has no news. As usual, let's show you what's new in this update.

1. AJS 4.4

Official update log: Point me, more detailed. I'm here to draw some trunk as a description.

1.1 Support for more powerful WebMap

To support the more powerful WebMap, three new layers have been developed: Wmslayer, Wmtslayer, Mapnoteslayer.

This means that the WebMap has been able to read with 4.XAPI, and data on ArcGIS online and portal can be used extensively.

Features that are not yet supported: WFS, KML, Bing, and it is estimated that future versions will be supported.

1.2 Highlighting function
    • The Highlightoptions property is available for Sceneview
    • The highlight () method can be used for the following new Layerview subclasses: Featurelayerview, Csvlayerview, Scenelayerview, Graphicslayerview

Example of high-highlight element (Metro station): Point me, the effect is as follows:

Highlight an example of a feature in a scene layer: Point me, the effect is as follows:

1.3 Support for arcade expressions in pop-up templates

(Arcade is something new in the June 2017: https://developers.arcgis.com/arcade/)

I have to study the arcade, and later add, you can know that the popup template on the data display richer.

Layer.popuptemplate = {  Expressioninfos: [{    "participation-rate",    "% of population 16+ Participating in the labor force ",    " Round (($feature. civlbfr_cy/$feature. POP_16UP) *100,2) "  }",  "in {NAME} county, {expression/participation-rate}% of the population"    + "participates in the labor force." };

As above, the resulting pop-up window results are:

The main is to add Expressioninfos this property to the Popuptemplate class.

1.4 Enhanced point cloud layer, scene layer, stream layer, map layer

As an example of map layers (mapimagelayer), 4.3 and 4.4 display different results.

Improvements in sharpness and sharpness (which should be WEBGL improvements).

The point cloud layer enhances features such as elevation.

Vector tile layers (vectortilelayer) support printing.

1.5 added a new series of layer types

Added several layer types Wmslayer, Wmtslayer, Wmtssublayer, Wmssublayer, Mapnoteslayer.

1.6 Custom Layers

Customizable: Tilelayer, Dynamiclayer, Lerclayer, Blendlayer, Elevationlayer.

Custom layers need to create subclasses of the core class accessor class, more complex, see tilelayer example: Point me

The connection jumps to the length that describes how to customize the layer.

1.7 Drag the map layer to smooth

To the Mapview has been enhanced, mainly in the translation of the ease of relief, not as rigid as 4.3. See:

If the picture does not move, click Connect: Point Me

1.8 gives an example of drawing geometry

This example is interesting, in the two-year update has finally appeared in the 3.x in the shape of the geometry, although less than 3.x draw powerful.

Note: This is drawing, and cannot initiate a storage request to the server, the storage request is completed in the applyedit that appears in 4.3.

Look forward to Esri's earlier release to support the ability to store drawing feature requests to the server.

Drawing is very simple, click on the left Draw button, start drawing lines, double-click the end of the polygon can be used to calculate the area or something.

1.9 Added feature template (Featuretemplate) class

See API Help.

1.10 Widget Upgrades
    • The Popup, Search, legend widgets are added to the widget frame.
    • The layerlist widgets were upgraded.

Layerlist some properties and methods are changed in 4.4, if there is an earlier code, it needs to be updated, see the Layerlist Class 4.3 and 4.4.

1.11 Enhanced in symbol display and symbol rendering convenience
    • Supports the use of new class--type for classification coloring, such as:

    • Enhanced 3D dot notation, such as:

    • The 3D symbol supports rotation for better display of the map.
    • The 3D symbol can use the material. See below:

There are still many details of the characteristics before the time to deliberate, first of all, you can check the release records.

Finally, the 4.5 release will be released in the fall, with the 4.6 confirmed to be released in 2017.

2. AJS 3.21

This version of the update is not a lot of things, after all, it is more mature. Update log: Point me

2.1 Support Arcade

Arcade expressions are supported in Popuptemplate, and Expressioninfos properties are added, similar to 4.4.

————

The rest of the pieces will not be mentioned, tinkering.

3. Conclusion

This time the 4.x update amplitude is relatively large, especially the arcade and geometric drawing, which I am more interested in two points.

As for 3.21, mature products, no need to mention, it seems that this year's development completed? Well, the new features are written here, thank you.

ArcGIS API for JavaScript 4.4 Learning notes [new] AJS4.4 and AJS3.21 new features

Related Article

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.