Is it possible to display the Google Earth Plugin in a div loaded through AJAX?

48 views
Skip to first unread message

florent

unread,
Feb 17, 2012, 5:40:14 PM2/17/12
to earth-api-dev...@googlegroups.com
Hello,

I need to display the Google Earth Plugin in a div loaded through AJAX.

Basically the user clicks a link from a first page, this makes an AJAX to the server which returns a piece of HTML that includes the div where the Google Earth Plugin should be loaded.

Without using AJAX I can make it work following the instruction of https://developers.google.com/earth/documentation/introduction.

When trying to do it in a div loaded through AJAX, I can't make it work. Is it possible to achieve that?

Regards,
Florent

florent

unread,
Feb 18, 2012, 7:36:27 PM2/18/12
to earth-api-dev...@googlegroups.com
Finally I've removed the AJAX call. Instead, when the user clicks the link, a JavaScript code creates an iFrame which loads a HTML page containing a header with the JavaScript code to load the Google Earth Plugin and a body with the "map3d" div. It works and from the point of view of the user it is quite the same.
Reply all
Reply to author
Forward
0 new messages