Appetizer
Let’s set the table: welcome to the release of versions 4.24 and 3.41 of the ArcGIS API for JavaScript. Here are some of the 4.24 highlights (please refer to the 3.41 link at the end for 3.x updates). I also snuck in some dessert towards the end of this blog, if you're into that sort of thing. We fixed 27 bugs, made 8 enhancements, and added or updated 15 samples. We also bid farewell to Internet Explorer 11.
Salad
Tasks have been deprecated since 4.20. They were removed at 4.24. The API now uses WebGL2 by default, and it will fallback to WebGL1 depending on the browser. FeatureLayers can be saved to ArcGIS Online and ArcGIS Enterprise with the new save() and saveAs() methods. MapView and SceneView hit test results now return GraphicHit and MediaHit results.
Entrée
3-dimensional
Weather affects maps too. Make your scenes more immersive with the new rainfall and snow effects. And/or, you can explore and use free OpenStreetMap 3D data hosted by ArcGIS Living Atlas. These 3D layers present buildings, thematic trees, and realistic trees based on OpenStreetMap (OSM) data, which will be updated every month. Also, blend modes can now be used in 3D scene views to blend layers together to create a variety of very vibrant and intriguing results, unlike the method of using transparency which can result in a washed-out top layer. We enhanced the daylight widget with an option to change the lighting mode to virtual light.
https://developers.arcgis.com/javascript/latest/release-notes/ - 3d-updates
It’s the routing, not the destination
The Directions widget is now integrated with the RouteLayer, which means that it should now be instantiated with a new or existing RouteLayer. New functionality includes the ability to save routes, and modify the visibleElements in the Directions widget UI. The Directions widget can also open and edit existing route portal items. RouteLayer can use custom symbology with the defaultSymbols property, and now works in both 2D MapViews and 3D SceneViews.
https://developers.arcgis.com/javascript/latest/sample-code/widgets-directions/
Follow Print the north star arrow
The Print widget now has an option to “Include north arrow” in the Advanced options, and rest/print also has a configurable property to include the north arrow in the printout. Note that the print service must have a north arrow configured on a per-layout basis for this option to be available.
https://developers.arcgis.com/javascript/latest/sample-code/widgets-print/
Heatmap Summer
The HeatmapRenderer now renders with WebGL, which means it can now take advantage of the following benefits:
We also added a referenceScale property, which allows you to lock-in the heatmap visualization at a specific scale so it will appear consistent when zooming in and out.
https://developers.arcgis.com/javascript/latest/release-notes/ - improved-heatmaprenderer
Awesome Arcade API
Awesome app developers now have the ability to compile and execute Arcade expressions in their own custom profiles. They will be able to do the following:
https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html
Binning: clients first
Binning is a technique that changes the way data displays at small scales. It converts the original data values into a range of smaller intervals, which are known as bins. Binning is also a new feature reduction method added as an alternative to clustering and heatmaps in 2D MapViews. You can configure the labels, popups, fields, and renderer of a layer's bins. Server-side binning, which will allow you to display aggregates of very large datasets, will be added at a future release.
Easy as pie charts
The PieChartRenderer allows you to visualize multiple attribute values of a feature in a point or polygon layer in a 2D MapView. The value of each pie slice can be determined by a field value or Arcade expression. Use the PieChartRenderer with visualVariables to vary the size of the pie chart based on an Arcade expression, such as the sum of its fields.
https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html
Social media layers
The MediaLayer class is used to add image and video elements to the map at a specified geographic location. So it’s like an enhanced version of the 3x MapImageLayer. This layer can be used to display old scanned maps, weather data, satellite imagery, fantasy images, videos, and more! The geographic location of the image or video can be set using the extent and rotation, or the corner points.
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html
And now, time for something slightly different.
Dessert
Title: Doctor ArcGIS API for JavaScript (feat. version 4.24)
Disclaimer: The views and opinions expressed in the below song are those of the author and do not necessarily reflect the official policy or position of Esri, or any of its affiliates.
They call me Doctor ArcGIS API for JavaScript
Good morning, how are you? I’m version 4.24
I’m interested in enhancements
I’m not really a doctor
But I am a real API
I am an actual API
I make pretty maps
I like to visualize spatial data
I think I’m getting good
When I use the new MediaLayer
I’ll show you pie chart rendering
And you can tell me if you think
You’ll need to print client-side binning
I’ll enhance the Directions widget
‘Cause it needs a RouteLayer
When I’m coding
I can’t tell if you are
Using the Arcade executor API
When I get released, you can
Use improved heatmaps
And save feature layers
Some day, somebody else besides me will
Release a new version, they will
Call me version 4.24
Good morning, how are you? I’m version 4.24
I’m interested in enhancements
I’m not really a doctor
But I am a real API
I am an actual API
I make pretty maps
And I like to visualize spatial data
I think I’m getting good
When I use the new MediaLayer
I’ll show you pie chart rendering
And you can tell me if you think
You’ll need to print client-side binning
I’m not really a doctor
But they call me version 4.24
Digestifs
Release Blog
Tasks/rest blog
https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/rest-is-up-to-the-task/
Routing & Directions blog
https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/changing-directions/
4.24 Release Notes
https://developers.arcgis.com/javascript/latest/guide/release-notes/index.html
4.24 Samples
https://developers.arcgis.com/javascript/latest/sample-code/?tagged=4.24
3.41 What’s New
https://developers.arcgis.com/javascript/3/jshelp/whats_new.html
Breaking Changes across all 4x releases
https://developers.arcgis.com/javascript/latest/guide/breaking-changes/index.html
Song inspiration
Fair use and Parody law
https://en.wikipedia.org/wiki/Fair_use
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.