Created
March 27, 2013 09:35
-
-
Save DanElliottPalmer/5252996 to your computer and use it in GitHub Desktop.
Check if we can use Google Earth plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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