arcgis for js api离线部署

1、先看官网文档

Configuration options for normal build:
Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.12\3.12\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.12/3.12/"
Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.12\3.12\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.12/3.12/"


Configuration options for compact build:
Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.12\3.12compact\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.12/3.12compact/"
Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.12\3.12compact\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.12/3.12compact/"


Now you should be able to access the ArcGIS JavaScript library from your Web server using the following URL(s):

http://<myserver>/arcgis_js_api/library/3.12/3.12/init.js
http://<myserver>/arcgis_js_api/library/3.12/3.12compact/init.js

看完就很简单了找到对应文件替换内容

arcgis for js api离线部署_第1张图片

替换内容

[HOSTNAME_AND_PATH_TO_JSAPI]

<localhost>/arcgis_js_api/library/3.12/3.12/


安装包在官网上可以下,不过需要注册挺麻烦的.我会在csdn上分享3.12的资源包希望大家踊跃下载

library:   http://download.csdn.net/detail/wd4java/8289529

    sdk:   http://download.csdn.net/detail/wd4java/8289591

你可能感兴趣的:(arcgis)