ArcGIS api for JavaScript 部署注意事項

Arcgis JavaScript開發:

1.開發環境Aptana Studio3;

2.arcgis_js_v310_api

3.Tomcat 7.0

在按照arcgis_js_v310_api/arcgis_js_api/library/3.10/install.htm的安裝說明進行配置時,需要注意

原文是這樣的

Configuration options for normal build:

  1. Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.10\3.10\init.js in a text editor and search for the text '[HOSTNAME_AND_PATH_TO_JSAPI]', and replace this text with "<myserver>/arcgis_js_api/library/3.10/3.10/"
  2. Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.10\3.10\js\dojo\dojo\dojo.js in a text editor and search for the text '[HOSTNAME_AND_PATH_TO_JSAPI]', and replace this text with "<myserver>/arcgis_js_api/library/3.10/3.10/"
Configuration options for compact build:
  1. Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.10\3.10compact\init.js in a text editor and search for the text '[HOSTNAME_AND_PATH_TO_JSAPI]', and replace each instance of this text with "<myserver>/arcgis_js_api/library/3.10/3.10compact/"
  2. Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.10\3.10compact\js\dojo\dojo\dojo.js in a text editor and search for the text '[HOSTNAME_AND_PATH_TO_JSAPI]', and replace this text with "<myserver>/arcgis_js_api/library/3.10/3.10compact/"
這個地方的<myserver>如果是tomcat,部署在本機寫成localhost:8080,要寫端口號,在代碼中也需要寫端口號,否則會報錯誤連接不到這幾個文件。
先寫個草稿,遇到問題再補充

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章