Select to view content in your preferred language

Offline version of http://js.arcgis.com/4.0beta1

3699
4
06-29-2015 09:45 PM
omega_cancer
Occasional Contributor II

I have created a prototype using 4.0 Beta and now my client wants it offline. I know it is JS API is unstable due to heavy development but I only need following AMDs.

require([
          'esri/Map',
          'esri/Basemap',
           'esri/layers/ArcGISElevationLayer',
           'esri/layers/ArcGISTiledMapServiceLayer',
          'esri/views/View3D',
          'dojo/domReady!'
        ])

I have downloaded init.js file but is not only file required. On line 23 this says:

do.png

load extra content from js.arcgis.com/4.0beta1/dojo

can I provide dojo release that is being shipped with current version of JS API? Where or how to download it (even by downloading file by file) so that I can run it in offline environment? Any way out? Any trick to make it work offline.

Any tip would be highly appreciated.

Thanks

0 Kudos
4 Replies
JeffJacobson
Regular Contributor

Have you tried esrislurp? I haven't used it myself but it seems to be designed for what you are trying to do.

0 Kudos
JeffJacobson
Regular Contributor

Not sure if it works with the 4.0 beta version, though.

omega_cancer
Occasional Contributor II

It only works with versions that are available in download section of ESRI.

It supports following version as there readme says:

version

Type: String Valid Values: "3.8"|"3.9"|"3.10"|"3.11"

Thanks for the answer. I found another way out.

0 Kudos
BjornSvensson
Esri Regular Contributor

The 4.0 beta 1 has not been released yet and what you are using is neither released nor available for download from the Esri download site.

Stay tuned for more info on the upcoming July release of the next generation ArcGIS API for JavaScript 4.0 beta 1...