arcgis api for js-arcgis api offline deployment

(1) Download the arcgis api from the official website, and the address to download the latest version of the api from the official website: https://developers.arcgis.com/downloads/ ;,

     Note: Users need to register before downloading. My download version is 4.6

(2) widow10 configures IIS



Test whether the configuration is successful: enter localhost in the browser, and the following page appears:



(3) The downloaded compressed package is as follows:


Storage directory:



(4) Configuration file path

1. Configure the init.js file
C:\inetpub\wwwroot\arcgis_js_v46_sdk\arcgis_js_api\library\4.6\init.js
2. Configure the dojo.js file
C:\inetpub\wwwroot\arcgis_js_v46_sdk\arcgis_js_api\library\4.6\dojo\dojo.js

Ctrl+F to find [HOSTNAME_AND_PATH_TO_JSAPI] and replace with localhost/arcgis_js_v46_sdk/arcgis_js_api/library/4.6

3. Test whether the configured api is successful
Browser enter the following address:










Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325443864&siteId=291194637