Recently I was asked to migrate a simple application using google api v2 to v3. I didn't made that application nor was part of it and to be honest, I never used google api. I was able to migrate most of it until I reach this one instruction where an instance of google earth is created from an instance of map.
var map;
var ge;
// map is initialized
map.getEarthInstance(function(pluginInstance)
{
ge = pluginInstance;
// other stuff not relevant
});
For what I understand, the point is to have a google earth object linked to a map object and if I try to have two separate objects, the application doesn't work.
My question is, how to implement that code in v3?
From all my searches the one I though it could help was this link, but I get an exception "GoogleEarth is undefined".
I'm using the following scripts:
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3&sensor=false"></script>
<script type="text/javascript" src="https://www.google.com/jsapi?sensor=false"></script>
Anyone can help me out?
Thank you all for taking the time to read my post.
Cheers