Select to view content in your preferred language

Version 2.6 of the ArcGIS API for JavaScript released

1012
6
12-14-2011 07:30 AM
KellyHutchins
Esri Frequent Contributor
Version 2.6 of the ArcGIS API for JavaScript released today. View the blog post for details:

http://esriurl.com/3428

For those who need the local download it will be available in a few days. I'll post back on this thread once it is ready.
0 Kudos
6 Replies
JeffPace
MVP Alum
Version 2.6 of the ArcGIS API for JavaScript released today. View the blog post for details:

http://esriurl.com/3428

For those who need the local download it will be available in a few days. I'll post back on this thread once it is ready.


Links to print documentation are broken


Network Error (dns_unresolved_hostname)

Your requested host "helpdev.arcgis.com" could not be resolved by DNS.

For assistance, contact your network support team.
0 Kudos
KellyHutchins
Esri Frequent Contributor
Thanks Jeff. I updated the broken links and the 'fixed' version of the document should be available in approximately 20 minutes.
0 Kudos
KellyHutchins
Esri Frequent Contributor
For those that need the local download it is now available:
http://resources.arcgis.com/content/web/arcgis-javascript-api-download
0 Kudos
AxelSchaefer
Emerging Contributor
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
0 Kudos
JeffPace
MVP Alum
you can also just rename them back to arcgis and arcgis_compact, respectively
0 Kudos
VickyP
by
Emerging Contributor
Hi,

I am also trying to install JavaScript API locally, it is working from a url for example http://localhost/arcgis_js_api/library/2.7/jsapi/, but when I put it inside a webpage that will display the map, it is not working properly, it is through a javascript error:- Microsoft JScript runtime error: '3' is null or not an object, Please help if you know the solution?
0 Kudos