|
BLOG
|
“Autumn is a second spring when every leaf is a flower.” https://en.wikipedia.org/wiki/Albert_Camus Welcome to the autumnal release of the ArcGIS API for JavaScript. We fixed 27 bugs. Created or updated 7 samples. Improved performance. Updated layers, widgets, and made many more enhancements. Buckle up. Performance enhancing improvements For complex polygons with many vertices, layer draw time has significantly improved. While your mileage may vary, most cases will see at least a 2-3x improvement. We've also added some optimizations for the way we handle maps with a large number of feature collections. These optimizations have resulted in an improved start time and an improved frame rate for smoother map panning. At version 4.19, we improved the performance of point FeatureLayers hosted on ArcGIS Online. Version 4.21 brings these same enhancements to ArcGIS Enterprise. This Arctic sea ice layer loads over 5x faster than the same layer in 4.20. https://developers.arcgis.com/javascript/latest/release-notes/#performance-improvements Orderly conduct You can configure the order features are drawn in the view by setting the orderBy property of a FeatureLayer, CSVLayer, GeoJSONLayer, and OGCFeatureLayer. In layers with date fields that have many overlapping features, this property allows you to ensure the most recent features are drawn on top of older ones. This property is also important in proportional symbol maps where smaller features are typically rendered on top of large ones to maximize the visibility of overlapping features in the view. Control the drawing order of features https://developers.arcgis.com/javascript/latest/release-notes/#control-the-drawing-order-of-features >2 Dimensions SceneView now allows you to fully leverage your WGS84 scene layers by combining them with Web Mercator layers in local scenes. Local scenes now support geographic coordinate systems, giving you more flexibility in displaying data. Additionally, SceneView now uses WebGL2 (if available in the browser) as the underlying rendering engine. This change is the basis for future visualization capabilities and performance enhancements. Local scene support for WGS84 https://developers.arcgis.com/javascript/latest/release-notes/#3d-updates Visit widget exhibits The SnappingControls widget was added to provide a simple user interface to handle all snapping functionality. This widget provides the ability to control whether snapping is enabled, which layers to snap to, and other snapping settings. SnappingControls can only be used in conjunction with the Sketch, SketchViewModel, Editor, and EditorViewModel. The SketchViewModel has been updated to override the active drawing symbology, if there is a pointSymbol, polygonSymbol, or polylineSymbol set. The FeatureTable widget added support for the following layer types: CSVLayer, GeoJSONLayer, ImageryLayer, and WFSLayer. The TimeSlider widget has been updated to support custom actions, which allows you to execute custom code such as such as setting the timeExtent to a specific date or copying the timeExtent to the browser's clipboard. The Popup widget has been updated to display an error message if any errors occur when accessing its content. You can override what content is queried and displayed in the Popup or Feature widgets with the featureViewModelAbilities and abilities properties, respectively. The Search widget suggestion behavior was enhanced to make the search experience smoother and faster. https://developers.arcgis.com/javascript/latest/release-notes/#widget-updates More modern documentation A new guide page details how you can use the Calcite Design System in your applications. Browse the library of Calcite icons and view samples that use Calcite components with the ArcGIS API for JavaScript. The CIM Symbol Builder has been updated to support line and polygon symbols. Combine different symbol layers, update symbol layer properties, and watch how the CIMSymbol updates. When you've created your perfect symbol, get the symbol JSON and use it to create CIMSymbols in your own applications. CIM Symbol Builder - support for lines and polygons https://developers.arcgis.com/javascript/latest/release-notes/#documentation-updates Further reading Want more? We also have clustering updates. Utility Network updates. WebMap persistence updates. API key updates. Check out the release notes and the release blog to experience all these great new features today. References Release Blog https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/whats-new-in-the-arcgis-api-for-javascript-version-4-21/ 4.21 Release Notes https://developers.arcgis.com/javascript/latest/guide/release-notes/index.html 4.21 Samples https://developers.arcgis.com/javascript/latest/sample-code/?tagged=4.21 3.38 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
... View more
09-22-2021
03:21 PM
|
2
|
0
|
2111
|
|
POST
|
Hi @DaveAdams, this is an interesting issue. Could you share some code or a test-app that reproduces this behavior? I would like to see how you create the labels for the featureLayer so that they can display but not print. Is the behavior any different if you use the ArcGIS Online utility print service? "https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"
... View more
09-21-2021
08:21 AM
|
0
|
0
|
6252
|
|
POST
|
Hi @AdamNull, thanks for posting here. I don't think this ability is currently possible. However, this is an enhancement we'd like to consider for a future release. Will update this thread when there is an update to share.
... View more
09-14-2021
10:07 AM
|
0
|
1
|
1707
|
|
POST
|
Hi @GILBERTNG1, thanks for posting your question here. It's difficult to say what the issue is, or what a workaround could be, just based on that error message. Would you be able to share a link to a simple, reproducible test-app (or just share the code) that shows this console error?
... View more
09-14-2021
06:43 AM
|
0
|
0
|
1807
|
|
POST
|
Hi @sullivani, we're enhancing the widget so that the popup is smaller and appears over the copy coordinates button as opposed to displaying over the coordinates themselves. Implementing a custom, user-defined popup is not a route that we want to take at this time. The new popup will be available at the 4.21 in late September.
... View more
09-01-2021
04:16 PM
|
0
|
0
|
6300
|
|
POST
|
Hi @SimonGIS, unfortunately, we do not have an ETA at this time. We currently have several labeling enhancements in the pipeline. However, I have this thread saved, and will reply here when we have an update to share.
... View more
08-16-2021
08:03 AM
|
1
|
1
|
3893
|
|
POST
|
Hi @JeffMachamer, thanks for posting your question here. We have not seen this issue before. Do you have a link to a public MapServer with an Annotation Layer that I could do some testing with? Edit update: I looked into this some more, and this seems like a limitation of working with an Annotation Layer when it is feature linked. However, I did notice that if the parent layer of the sublayer has a LayerDefinition, it seems to filter the visible features/labels. Here is an example of showing one feature: https://codepen.io/noash/pen/YzVLeQm?editors=1000 More annotation layer information: https://pro.arcgis.com/en/pro-app/latest/help/data/annotation/annotation.htm
... View more
07-30-2021
07:12 AM
|
1
|
1
|
2046
|
|
POST
|
Hi @EllisHammond1, is this the version of the sample that you were referring to? https://codepen.io/noash/pen/vYmgNqa?editors=1000 Older versions of the SDK, which contains the samples, are available to download by version if you have a developer's account: https://developers.arcgis.com/downloads/#javascript
... View more
07-13-2021
07:56 AM
|
1
|
1
|
7333
|
|
POST
|
Thanks for the additional information. We are still investigating.
... View more
07-13-2021
07:41 AM
|
0
|
0
|
4138
|
|
POST
|
Thanks @j_rsg, this is very helpful. There are rendering differences between 3x and 4x, but they should not be this different. We are investigating the issue, and I will respond to this thread when we have an update to share.
... View more
06-23-2021
10:30 AM
|
0
|
2
|
4206
|
|
POST
|
Strange, it works for me with codepen and my org. I'm not sure if there is a setting to allow this, but I found this doc, maybe this will help? https://doc.arcgis.com/en/arcgis-online/administer/configure-security.htm
... View more
06-23-2021
08:49 AM
|
0
|
0
|
2667
|
|
POST
|
That looks correct to me, but the error message in the console is about CORS. I would try testing the app in something like Codepen or another https location rather than from http from your localhost.
... View more
06-23-2021
08:15 AM
|
0
|
2
|
2672
|
|
POST
|
Hi @JohnPaulAlbana, thanks for the question. The available Travel modes are based on the ArcGIS Online org settings. If you define the Travel modes you want in your org, then define the URL to your org using https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl in your app, then you will only see the options you defined in the Directions widget Travel mode dropdown.
... View more
06-22-2021
02:15 PM
|
0
|
4
|
2692
|
|
POST
|
Hi @j_rsg, I'm not entirely sure why this works in 3x but not in 4x, but I googled an svg with a circle and a cross and I found that this works with 4x: https://codepen.io/noash/pen/JjWqWBd?editors=1000
... View more
06-21-2021
05:11 PM
|
0
|
2
|
4239
|
|
POST
|
Hi @sullivani, thanks for posting this question. This is currently not possible, but we will consider making an enhancement for this functionality at a future release. I will update this thread when we have an update to share.
... View more
06-21-2021
09:27 AM
|
0
|
0
|
6534
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-25-2026 07:29 AM | |
| 1 | 07-01-2026 08:08 AM | |
| 1 | 04-14-2026 11:59 AM | |
| 1 | 05-13-2026 10:29 AM | |
| 1 | 04-10-2026 09:11 AM |
| Online Status |
Online
|
| Date Last Visited |
4 hours ago
|