If my javascript code attempts to load the Google map API more then 25,000 times in a day then Google will write OverQuotaMapError to the window.console.
See https://developers.
Silly me. If you open the google documentation link I posted and scroll to the bottom then you will see a link to advice from Google for how to check for any of these errors via your code.