How to check if Google Maps API (v3) is loaded?
I do not want to execute mapping scripts if the API did not load due to internet connectivity problems (web page is h
try
(google && 'maps' in google)?true:false
or
if(google && 'maps' in google){ //true } else{ //false }
since I had a problem with the following on mobile:
if (typeof google === 'object' && typeof google.maps === 'object') {...}