当前位置:网站首页>Local deployment and problem solving of IIS in ArcGIS JS 4.23

Local deployment and problem solving of IIS in ArcGIS JS 4.23

2022-06-23 00:53:00 No overrun

1. Official instructions , And online information , Is to put the official class library into the directory :C:\inetpub\wwwroot in , In the project , Personal habits create a new one in other judgments Web The directory holds all published content , After testing , You can also specify a directory , Publish web sites in other file directories , Specific release method This reference tutorial similar .

2. About publishing path , Because in the current version , It's not like the version between , By modifying the init.js And dojo.js Specify the configuration path in , The latest version of the class library , Just put it in IIS Catalog , adopt IIS You can use it after you publish it , therefore , There are many default configuration paths , Don't specify too casually 、 Modify the class library path . I want to 4.1x Keep the path consistent with the class library of version , Put the publishing path into  D:\Web\arcgis_js_api\library\4.23 in , After the release of ,init.js You can normally get , But related gis The class library cannot be obtained and no error is reported . I want to modify it as before init.js perhaps dojo.js, Open possible configuration files , Find nothing to read with the naked eye . Finally, the official way , Basically, the path has not been modified , The local address is similar to D:\Web\arcgis_js_api\library\4.23

3. About removing dojo The problem of

Because the new edition has been removed dojo library , And in the project ArcGIS JS TypeScript Encapsulates part of the map library , Some general operations in the map library use dojo library , therefore , Upgrade to 4.23 edition , You also need to use dojo Related content . Switch the previous library to 4.23 after ,dojo Related to the class library , It can be downloaded from 4.1x In the class library of version , Copy dojo Related to the class library , to 4.23 Version class library .

4. Cross-domain problem

If the following problems occur

  Add cross domain request header

Access-Control-Allow-Origin : *

Reference tutorial

Arcgis for js api 4.22 Detailed guidelines for local deployment - The wild geese in the sky call the frost morning moon - Blog Garden

原网站

版权声明
本文为[No overrun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221438324763.html