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:
- 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/"
- 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/"
- 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/"
- 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,要寫端口號,在代碼中也需要寫端口號,否則會報錯誤連接不到這幾個文件。
先寫個草稿,遇到問題再補充