Skip to content

How to Add an ESRI API Class

James Rae edited this page Apr 12, 2016 · 2 revisions

If a new class from the ESRI API is required in geoApi, the following steps should see you through.

  1. Regenerate a custom build of the ESRI API so that it has the new class as well as all the other classes required
  2. Update the class list in the documentation
  3. In file index.js, function makeDojoRequests, add the new class identifier to the array of class strings, and a new parameter to receive the class (please keep in alphabetical order, as the list is long). Add the parameter variable to the esriBundle object in an appropriate and easily readable way.
  4. Use the class in the esriBundle wherever you need it.