I downloaded the API and noticed some changes that are not reflected in the installation documentation. System here: Windows.- I install the API and the default path is: c:\inetpub\wwwroot\arcgis_js_api\library\2.6\jsapi\
The install path on the previous versions was c:\inetpub\wwwroot\arcgis_js_api\library\2.6\arcgis\
- The install.htm says you have to adjust the 3 files and change [HOSTNAME_AND_PATH_TO_JSAPI] to axxlserver/arcgis_js_api/library/2.6/arcgis/
it should be: Change [HOSTNAME_AND_PATH_TO_JSAPI] to
axxlserver/arcgis_js_api/library/2.6/jsapi/
- Same with the Test Code. It refers to the "arcgis" URL path of the installation. Should be "jsapi".
Same with the compact build. It's now "jsapicompact" not the old "arcgis_compact".I don't know how the API works, if you change the folders to the old names. I installed it successfully with the above changes in the 3 files:- C:\inetpub\wwwroot\arcgis_js_api\library\2.6\jsapi\js\esri\esri.js
- C:\inetpub\wwwroot\arcgis_js_api\library\2.6\jsapi\js\dojo\dojo\dojo.xd.js
- C:\inetpub\wwwroot\arcgis_js_api\library\2.6\jsapi\js\dojo\dojo\dojo.xd.js.uncompressed.js
And the test sample is now with this two URLs (which are different to the 2.5 release):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Simple Map</title>
<link rel="stylesheet" type="text/css" href="http://axxlserver/arcgis_js_api/library/2.6/jsapi/js/dojo/dijit/themes/tundra/tundra.css">
<script type="text/javascript" src="http://axxlserver/arcgis_js_api/library/2.6/jsapi/"></script>
<script type="text/javascript">
dojo.require("esri.map");
function init() {
var myMap = new esri.Map("mapDiv");
//note that if you do not have public Internet access then you will need to point this url to your own locally accesible cached service.
var myTiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/NGS_Topo_US_2D/MapServer");
myMap.addLayer(myTiledMapServiceLayer);
}
dojo.addOnLoad(init);
</script>
</head>
<body class="tundra">
<div id="mapDiv" style="width:900px; height:600px; border:1px solid #000;"></div>
</body>
</html>
Hope that helps,Axel