Closed mannok closed 2 years ago
By default, the API will use assets from the CDN, this includes workers, styles, fonts, and more.
You can copy these assets locally and configure the API to use those local assets. You can read more in the guide here. https://developers.arcgis.com/javascript/latest/es-modules/#working-with-assets
Also, note, you can uninstall the @types/arcgis-js-api
when using @arcgis/core
. Types are already included and you might get some conflicting types when both installed.
Description
I am developing an online map with ArcGIS JSAPI TypeScript build. I used to keep the user from connecting outside to Internet. However, I found that when I build the website now (Webpack 4), my user keeps connecting to remote resource provided by ESRI.
Some remote clients and resources are stated below for your reference: https://js.arcgis.com/4.19/@arcgis/core/assets/esri/t9n/common_en.json https://js.arcgis.com/4.19/@arcgis/core/assets/esri/widgets/ScaleBar/t9n/ScaleBar_en.json https://js.arcgis.com/4.19/@arcgis/core/assets/esri/core/workers/RemoteClient.js https://js.arcgis.com/4.19/@arcgis/core/assets/esri/core/workers/chunks/ba193c302b87795eacb8.js https://js.arcgis.com/4.19/@arcgis/core/assets/esri/core/workers/chunks/ba193c302b87795eacb8.js
Context
Our user do not have Internet connection. Therefore, I must fix this issue, may I know how to get rid of it?
Your Environment