Installing the ArcGIS API for JavaScript? Library
The instructions below assume that you are installing the ArcGIS
JavaScript API library in the
following location on an IIS Web Server,
"http:///arcgis_js_api/library/3.5/" where is the domain name of
your Web site. After copying files to your Web server, you will
need to edit some files to include the URL to the server and
directory that you are planning to install to.
For instructions on deploying the library on Linux please
go here.
Copy de
style="font-family: monospace, 'Courier New', Courier; color:
rgb(0, 0, 102);" >\arcgis_js_api\libraryde> and all its contents
from the DVD to your Web server. In this example the files are
copied to
de style="font-family: monospace,
'Courier New', Courier; color: rgb(0, 0, 102);"
>C:\Inetpub\wwwroot\arcgis_js_api\libraryde>
Install the Normal or Compact Build
ArcGIS JSAPI 3.5 contains two builds--a normal build and a compact
build. The compact build removes the Dojo Dijit dependancy and
minimizes the non-essential ArcGIS JSAPI classes. Please see
thedocumentation for more details.
Your directions may differ depending on your server configuration
or Web server, but the process is the same.
Configuration
options for normal build:
Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.5\jsapi\init.js in
a text editor and search for the text de style="font-family: monospace, 'Courier
New', Courier; color: rgb(0, 0, 102);"
>'[HOSTNAME_AND_PATH_TO_JSAPI]'de>, and replace this text
with de
style="font-family: monospace, 'Courier New', Courier; color:
rgb(0, 0, 102);" >"/arcgis_js_api/library/3.5/jsapi/"de>
Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.5\jsapi\js\dojo\dojo\dojo.js in
a text editor and search for the text de style="font-family: monospace, 'Courier
New', Courier; color: rgb(0, 0, 102);"
>'[HOSTNAME_AND_PATH_TO_JSAPI]'de>, and replace this text
with de
style="font-family: monospace, 'Courier New', Courier; color:
rgb(0, 0, 102);" >"/arcgis_js_api/library/3.5/jsapi/"de>
Configuration
options for compact build:
Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.5\jsapicompact\init.js in
a text editor and search for the text de style="font-family: monospace, 'Courier
New', Courier; color: rgb(0, 0, 102);"
>'[HOSTNAME_AND_PATH_TO_JSAPI]'de>, and replace each instance of this
text with de
style="font-family: monospace, 'Courier New', Courier; color:
rgb(0, 0, 102);"
>"/arcgis_js_api/library/3.5/jsapicompact/"de>
Open C:\Inetpub\wwwroot\arcgis_js_api\library\3.5\jsapicompact\js\dojo\dojo\dojo.js in
a text editor and search for the text de style="font-family: monospace, 'Courier
New', Courier; color: rgb(0, 0, 102);"
>'[HOSTNAME_AND_PATH_TO_JSAPI]'de>, and replace this text
with de
style="font-family: monospace, 'Courier New', Courier; color:
rgb(0, 0, 102);"
>"/arcgis_js_api/library/3.5/jsapicompact/"de>
Test the Install
Access
the ArcGIS JavaScript
library from your Web server using the following URL(s):
de style="font-family: monospace,
'Courier New', Courier; color: rgb(0, 0, 102);"
>http:///arcgis_js_api/library/3.5/jsapi/init.jsde>
and
de style="font-family: monospace,
'Courier New', Courier; color: rgb(0, 0, 102);" >http:///arcgis_js_api/library/3.5/jsapicompact/init.jsde>
Test
your install. You can use the following test code
to validate your JSAPI library install.