PDA

View Full Version : Embed Google Earth API



trevorcroft
4 Aug 2011, 3:31 PM
I'm trying to embed the google earth api plugin in an ExtJS application, here is a sample:

http://64.42.248.145:8080/tourorderapi/php/index.php

It works great in chrome, good enough in firefox but is a disaster in internet explorer. The google earth portion just has text that says "ATL 8.0" in IE, and it opens a new window titled: __bridge_child_windo...

Any advice would be greatly appreciated.

I am likely doing all sorts of things wrong.

Mycoding
4 Aug 2011, 10:30 PM
Maybe is it Google Earth bug?

I think you should first try to run Google Earth in IE without ExtJS.

I have to say I really interested in your try.
If you could do it, please place simple code here.

trevorcroft
5 Aug 2011, 8:10 AM
Oh, the google earth api works totally fine in all the popular browsers when you just throw it in a div as described in the google earth api documentation.

I've been dealing with google earth api stuff for quite some time now and never seen this behavior. I have seen this extjs extension allowing it to work in extjs:
http://thematicmapping.org/ext-js-google-earth-api/example.html

(http://thematicmapping.org/ext-js-google-earth-api/example.html)However, I would rather stick with using the standard google api.

muk
18 Nov 2011, 5:25 PM
Has anybody found answer to this thread? I have the same problem, except that Google Earth panel writes ATL 10.00 and not 8.0 as with the above user.
It happens only in Explorer (I checked versions 8 and 9)

Thanks.

rajivsinghsuwal
28 Mar 2012, 9:06 AM
Even the latest browser (IE9) released by Microsoft does not support HTML5 100%. The Google Earth plugin that runs fine on Chrome browser, may not run on IE9 if you have not specified xlmns attribute in html tag and Doctype declaration for xhtml on the top.

If you're getting ATL 10.00 with a white background when using HTML5, you need to do this in order for it to work on IE9:
Replace html5 doctype with this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">Namaste !