© Rene Rubalcava 2017

Rene Rubalcava, Introducing ArcGIS API 4 for JavaScript, https://doi.org/10.1007/978-1-4842-3282-8_4

4. API Core Fundamentals

Rene Rubalcava

(1)Rialto, California, USA

In the ArcGIS API 4 for JavaScript, there are a handful of fundamental concepts that make up how the API is built. If you get familiar with these core concepts, it will greatly benefit you when working with the API.

Accessors

An important addition to the ArcGIS API for JavaScript is the Accessor1 module. It is located at esri/core/Accessor, which should tell you that it is a core part of the API. This is no mistake because most of the API is built on Accessors and their capabilities.

The Accessor module is loosely based on ES5 getters/setters2 via the Object.defineProperty ...

Get Introducing ArcGIS API 4 for JavaScript: Turn Awesome Maps into Awesome Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.