Handling errors using FusionCharts JavaScript Class | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FusionMaps XT uses FusionCharts JavaScript Class that takes care of all the products of FusionCharts Suite XT including FusionMaps XT. The FusionCharts JavaScript Class provides an effective mechanism to debug maps. Errors can be debugged using one of the following methods:
Let us see below how each can be implemented: Listening to data-error related events using simple events model The map itself can raise one of three data related errors listed below:
You can listen to these events and take necessary steps as per the requirement you have. For a sample with detailed description, please go through the Debugging your Maps > Using JavaScript page. Listening to data-error related events using advanced events registration model Using the advanced event registration model, you can also listen to the events listed above. The event types or event names for the above mentioned events are DataLoadError, and DataXMLInvalid. Additionally, FusionCharts JavaScript Library provides two more error events.
You can listen to the above events globally or on a per-map basis. For sample implementation and explanations read Debugging your Maps > Using JavaScript page. Other than the debug mode of individual map SWFs, the map has its own debugMode as well. This allows users to watch the map ’s JavaScript activities and debug maps accordingly. To enable the JavaScript debugMode, you need to write the following lines of code: FusionCharts.debugMode.enabled(true); FusionCharts.debugMode.outputTo(console.log); For details of this debug mode, sample code snippets and explanations read Debugging your Maps > Using JavaScript page. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Error Code and Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The table below contains the list of Error codes and the description of each error.
|