custom.js

The custom.js is a report file where custom JavaScript can be added to extend functionalities in your report. This means you are not limited to the capabilities that a default report offers and can develop your report according to your needs. For example, a JavaScript can be placed to collapse the tree in the Data Explorer and/or show a callout box that displays indicator data when a feature is selected on the map.

The default custom.js file contains the following code:

/**
* This function is called after the report has finished loading.
* The report object is the entry point to the JavaScript API.
*
* @param report The InstantAtlas Report object.
*/
iaOnReportComplete = function(report)
{

};

When a report has finished loading it calls the function iaOnReportComplete with a report object that can be used as the entry point to the InstantAtlas JavaScript API. Any code placed inside this function will be executed at this point.

Users can access examples of custom JavaScript in our InstantAtlas Resource Library at http://tools.instantatlas.com/customers/support/library/desktop/tech-articles/html/custom-javascript