ArcGIS javascript API Learning 1

Source: Internet
Author: User

2011-2-5

ESRI javascript API

There are two ways to reference ESRI JavaScript APIs

1. Online Reference

<SCRIPT type = "text/JavaScript" src = "http://serverapi.arcgisonline.com/jsapi/arcgis? V = 1.5 "> </SCRIPT>

<LINK rel = "stylesheet" type = "text/CSS" href = "http://serverapi.arcgisonline.com/jsapi/arcgis/1.5/js/dojo/dijit/themes/tundra/tundra.css">

2 offline reference

Download the ArcGIS Javascript. API offline package and deploy it as instructed.

ArcGIS API for JavaScript 2.0 offline package library URL:

Http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp/arcgis_js_v20_api.zip

ArcGIS API for JavaScript 2.1 offline package library URL:

Http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp/arcgis_js_v21_api.zip

Modify rest configurations

Use NotePad to open the c: \ Inetpub \ wwwroot \ ArcGIS \ rest. config file

Change the content of the <ArcGIS> node under the <jsapi> node to the jsurl of the local server, for example, http: // localhost/arcgis_js_api/library/2.0/ArcGIS,

Modify the <arcgiscss> label to the CSS corresponding to the local server.

Http: // localhost/arcgis_js_api/library/2.0/ArcGIS/JS/dojo/dijit/themes/Tundra/tundra.css

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.