Tag: ArcGIS API for JavaScript 4.6

Improved TypeScript development with ArcGIS API for JavaScript

The TypeScript declaration file for the ArcGIS API for JavaScript contains type information specific for the API. You can learn more about how to install this file from the TypeScript set up guide page or on GitHub.
Continue reading

Posted in App Developers, Apps, Developer, Web | Tagged , , , , , | Leave a comment

Making Better Promises

This blog post will discuss a change to our implementation of promises, a change towards making a better promise. Numerous classes in the ArcGIS API for JavaScript resolve to promises. This is the case for WebMapWebSceneMapViewSceneViewBasemapGroundLayers, and LayerViews.

Typically, you would use the then() method to be advised when one of these objects is ready to be used. In fact, many samples in the ArcGIS API for JavaScript SDK use then() on a MapView or on a SceneView to wait for the view to be ready before executing the rest of the application code.
Continue reading

Posted in App Developers, Developer, Web | Tagged , , , , , | 3 Comments