Within SparkRadar, several functions and objects are assigned to the global scope for access within all modules. These are utilities added to make the coding flow easy. Access one with window.object or window.object() where "object" is one of the objects below.
settings.js class object.
location_services.js class object.
palettes.js class object.
map.js class object.
radar.js class object.
radar_cache.js class object.
radar_animation.js class object.
spotter_network.js class object.
GeoJSON featureset of the radar stations on the map.
global layer cache?
String, 'satellite' or 'radar' depending on the mode chosen in the application menu.
Sets a toolbar/toolbox button to be enabled functionally and visually; where {button} is either the HTML ID string or a button HTMLElement, and {enabled} is true or false.
Shorthand wrappers for setToolEnabled; where {button} is either the HTML ID string or a button HTMLElement.
Enables the auto update interval.
Disables the auto update interval.
Returns true if the auto update interval is enabled, otherwise returns false.