Get the API
CDN (hosted version)
The recommended approach for accessing the API is to use the hosted version. Reference the API from our CDN (content delivery network) and you are ready to get started.
<link rel="stylesheet" href="https://js.arcgis.com/4.18/esri/themes/light/main.css"> <script src="https://js.arcgis.com/4.18/"></script>
Benefits to working with the hosted version of the API:
- Delivered via a content delivery network (CDN). CDN's are a collection of geographically distributed web servers that deliver content efficiently.
- The servers are load balanced and monitored 24/7.
- No need to download and re-install the API when new versions are released. You just need to modify the script tag in your application to point to the new version.
Using npm for custom builds
npm install @arcgis/core
For more information here are several guides:
Host the CDN build locally
Web server hosting configuration
Whether you use npm to create a custom build or download a pre-built version of the API, note that a web server supporting
HTTPS requires the web server to use a web server certificate.
|True Type Fonts|
|Web Open Font Format|
|WOFF File Format 2.0|