Arcgis js4.18 offline deployment to IIS

1. Open IIS--window10

1. Open the Control Panel first , and then select Uninstall a program

2. After entering, choose to enable or disable the Window function

3. Then find Internet Information Services to expand, select the following three and click the OK button

4. Finally, enter localhost in the browser and press Enter to see the picture below, which means that the ISS is successfully enabled

2. The first step has enabled the ISS, and the next step is to deploy the offline package of arcigs-js-api

1. First go to the arcgis pipe network to download the arcgis offline compressed package, and then put the decompressed folder in the C:\inetpub\wwwroot directory

https://developers.arcgis.com/downloads/#javascript

2. In the search box in the lower left corner of the computer, search for IIS and press Enter, and then find the button to add a website

3. Enter the website name , physical path and port number ( the physical path refers to the location where we decompressed the arcgis file)

4. Click Enable in Directory Browsing

5. Open the init.js file and the dojo.js file under the dojo directory respectively, and replace “[HOSTNAME_AND_PATH_TO_JSAPI]” in the two files with the local server path of our JS API “http://localhost:8088/ , One thing to note here is that the local server path of the JS API may be different according to different directory levels. Enter http://localhost:8088/ in the browser to view, note that the port number may be different

3. Create a map using our local path

 

Guess you like

Origin blog.csdn.net/Z_J_CSDN/article/details/114142731