1 getting the ArcGIS JavaScript API
API http://support.esrichina.com.cn/2011/0223/960.html, the download page will see the API and SDK download links, API is our development needs of the library, the SDK is a description of documents and examples, Click the latest version of Download API 3.2.
2 Local Deployment API
Open the Arcgis_js_api/library/install.htm installation instructions in the API package, this article is based on the English explanation.
After decompression, build the application in IIS, such as. Once the API application is configured, its path is HTTP://192.168.1.58/ARCGIS_JS_API.
The ArcGIS JavaScript API includes both normal and simplified versions, and the simplified version removes the Dojo digit dependencies and non-mandatory ArcGIS JSAPI classes.
To
configure the normal version:
Open Arcgis_js_api\library\3.2\jsapi\init.js and Replace [HOSTNAME_AND_PATH_TO_JSAPI] with the API's deployment path on the local machine. Here is the 192.168.1.58/arcgis_js_api/library/3.2/jsapi/, note that the path does not include http://.
Open C:\arcgis_js_api\library\3.2\jsapi\js\dojo\dojo\dojo.js and Replace [HOSTNAME_AND_PATH_TO_JSAPI] with the API's deployment path on the local machine. Here is the 192.168.1.58/arcgis_js_api/library/3.2/jsapi/, note that the path does not include http://.
Configure a simplified version (if you do not use a simplified version of development, you can not configure):
Open C:\arcgis_js_api\library\3.2\jsapicompact\init.js and Replace [HOSTNAME_AND_PATH_TO_JSAPI] with the API's deployment path on the local machine. Here is the 192.168.1.58/arcgis_js_api/library/3.2/jsapicompact/, note that the path does not include http://.
Open the C:\arcgis_js_api\library\3.2\jsapicompact\js\dojo\dojo\dojo.js with a text editor and put [Hostname_and_path_to_jsapi] Replace the deployment path of the API on the local machine. Here is the 192.168.1.58/arcgis_js_api/library/3.2/jsapicompact/, note that the path does not include http://.
So far, the development library has been configured to complete. The following configures ArcGIS JavaScript to browse
Configure ArcGIS JavaScript browsing
According to the installation instructions, open the desktop installation directory \arcgis\developerkit10.1\help\rest\index.html, locate the "Configuring the REST API" section, refer to the instructions in the ArcGIS Locate the Rest-config.properties file under the Server installation directory. (Supplement: Version 10.2 This file is located in the "C:\Program files\arcgis\server\framework\runtime\tomcat\webapps\arcgis#rest\web-inf\classes\ Resources\rest-config.properties ") Open the Modify JS API URLS, the original value is:
jsapi.arcgis=http://serverapi.arcgisonline.com/jsapi/arcgis?v=2.6jsapi.arcgis.sdk=http://resources.esri.com/ Arcgisserver/apis/javascript/arcgisjsapi.arcgis.css=http://serverapi.arcgisonline.com/jsapi/arcgis/2.6/js/dojo /dijit/themes/tundra/tundra.css
Jsapi.arcgis.css2=http://serverapi.arcgisonline.com/jsapi/arcgis/3.3/js/esri/css/esri.cs
Modify the address of ArcGIS and ARCGIS.CSS to the API address we configured, and the modified value is:
jsapi.arcgis=http://localhost/arcgis_js_api/library/3.9/3.9/?v=3.3
jsapi.arcgis.sdk=http://localhost/en/webapi/javascript/arcgis/
Jsapi.arcgis.css=http://localhost/arcgis_js_api/library/3.9/3.9/js/dojo/dijit/themes/tundra/tundra.css
Jsapi.arcgis.css2=http://serverapi.arcgisonline.com/arcgis_js_api/library/3.9/3.9/js/esri/css/esri.css
Once the modifications are complete, visit the sample map service Http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer, click "ArcGIS JavaScript", You can browse the sample map in the browser
Reference: http://www.cnblogs.com/brawei/archive/2012/12/28/2837660.html
Go ArcGIS JavaScript API locally deployed offline development environment