gcode-mirror / earth-api-samples

Automatically exported from code.google.com/p/earth-api-samples
0 stars 0 forks source link

When using google earth in IFrames with facebook apps #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try to google.earth.createInstance without googleearth plugin  
2.
3.

What is the expected output or behavior? What do you see instead?
I'd expect it to call the failure callback function, but instead, I think
because facebook hides the browser object, i am getting a JS error on line
23 of default.I.js

Which plugin version are you using?
this happens if the plugin is disable

google.load("earth", "1");
google.load("maps", "2.99");  // For JS geocoder

Which browsers and operating systems are affected?
FF IE 6+

Please provide any additional information (code snippets/links) below.
here is line 23 of default.I.js that firebug is saying has the error:

e(a.node),l=a.visibility!=o;a.visibility=o;if(l){a.callbacks._dispatchCallback(h
.VISIBILITY,a)}}};h.prototype.destroy=function(){var
a=this;if(a.f!=-1){clearInterval(a.f)}a.callbacks={}};google.idlglue.NodeObserve
r=h;google.idlglue.NodeObserverCallbacks=f;google.idlglue.getElementRect=c})();w
indow.google.earth.setLanguage=function(b){window.google.earth.d=b};window.googl
e.earth.createInstance=function(b,c,e){var
f=window.google.earth.ErrorCode,h;if(typeof
b=="string"){h=document.getElementById(b)}else{h=b}if(!h){e(f.ERR_INVALID_DIV);r
eturn}var
a="";try{if(google.earth.d){a="intl/"+google.earth.d+"/"}}catch(g){}var
d="http://www.google.com/"+a+"earth/plugin/error.html",j=window.google.earth.h(f
,c,e);window.google.idlglue.create(h,j,d)};window.google.earth.h=function(b,c,e)
{return
function(f){if(f.browser==

Original issue reported on code.google.com by jha...@jason-hayes.us on 6 Nov 2008 at 6:27

GoogleCodeExporter commented 9 years ago
oh and IE says error on the same line: 'browser' is null or not an object

Original comment by jha...@jason-hayes.us on 6 Nov 2008 at 6:30

GoogleCodeExporter commented 9 years ago
no its not an facebook thing happens on http://code.google.com/apis/earth/ in 
IE7 and FF3

Original comment by jha...@jason-hayes.us on 6 Nov 2008 at 6:54

GoogleCodeExporter commented 9 years ago
happens without Iframes too

Original comment by jha...@jason-hayes.us on 6 Nov 2008 at 7:08

GoogleCodeExporter commented 9 years ago
See http://code.google.com/p/earth-api-samples/issues/detail?id=94

Original comment by api.roman.public@gmail.com on 6 Nov 2008 at 11:51