ArcGIS api for JavaScript 部署注意事项

来源:互联网 发布:知乎用户构成 编辑:程序博客网 时间:2024/06/04 19:27

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,要写端口号,在代码中也需要写端口号,否则会报错误连接不到这几个文件。
先写个草稿,遇到问题再补充

0 0