Skip to content

Instantly share code, notes, and snippets.

@DanElliottPalmer
Created March 27, 2013 09:35
Show Gist options
  • Save DanElliottPalmer/5252996 to your computer and use it in GitHub Desktop.
Save DanElliottPalmer/5252996 to your computer and use it in GitHub Desktop.
Check if we can use Google Earth plugin
//Check if Google API script is installed and
//check if Google Earth namespaace is there
if(!google || !google.earth){
return false;
}
//Check if plugin is supported or installed
if(!google.earth.isSupported() || !google.earth.isInstalled()){
return false;
}
//We can use it
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment