The Geocortex Viewer for HTML5 uses the Esri Javascript API (JSAPI) to run. In general, the viewer will use the latest available Esri Javascript API, but under some circumstances we may wish to use a newer or older version.
Before beginning, ensure that your copy of the Geocortex Viewer for HTML5 includes an init.js file in its /Resources/Scripts folder. If there is an esri.js instead of init.js, replacing the Esri Javascript API is not supported.
- Download the full release of the Esri Javascript API from Esri's developer website. We will use the included 'compact' version.
- Delete the following folders in your local installation of the Geocortex Viewer for HTML5:
- dijit
- dojox
- dojo
- esri
- Replace these folders with the new ones that were just downloaded.
- Merge any new version of
moment
into the 'moment' folder of your viewer. - Copy over the new 'init.js' file. Note that if the Scripts folder currently contains 'esri.js' and not 'init.js' this is an older version of the viewer which is ineligible for these upgrades.
- Finally, update dojo's base urls to point at the new release.
- Change the 'esriBase' variable at the top of /Resources/Scripts/dojo-config.js.
Comments
0 comments
Article is closed for comments.