我如何在Google Earth插件上放置html div?涉及wmode,我想象 [英] How can I place a html div over the Google Earth plugin? Involves wmode, I imagine

查看:152
本文介绍了我如何在Google Earth插件上放置html div?涉及wmode,我想象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在网络应用程序中在Google地球插件上放置html div 时遇到问题,欢迎提供任何帮助。



对于地图,地形和混合模式都很好,但在地球模式下, Flash会启动并自动将地图放在顶层上。



Z-indexing没有帮助。



假设我可以这样做:

  document.getElementById('flashDiv')。setAttribute('wmode','opaque'); 

但考虑到Google的内容是即时编译的,这使得它变得更加困难。查看生成的代码在这里没有帮助。同样,由于正在进行编译,像SWFObject这样的东西无法保存一天......



有没有人遇到类似的东西?我已经花了上午时间拖网Google Earth API小组,但没有多少好处。



更新:经过多次拉动,答案可能会出现使用 iframe填充。我可能也跳到了插件基于Flash的结论。调查...



alt text http:// neilsimonmckeown.googlepages.com/overlay.jpg

解决方案

我将演示如何使用 IFRAME 在此填充:



http://earth-api-samples.googlecode.com/svn/trunk/demos/customcontrols/index.html


I'm having trouble laying a html div over the Google Earth plugin in a web application, any help would be appreciated.

It's fine for Map, Terrain and Hybrid mode, but on 'Earth' mode, the Flash kicks in and automatically layers the map on top.

Z-indexing doesn't help.

Presumably I could do something like:

document.getElementById('flashDiv').setAttribute('wmode', 'opaque');

but given that Google's stuff is compiled on the fly, it makes it much more difficult. Viewing the generated code hasn't helped here. Again, due to it being compiled on the fly, stuff like SWFObject can't save the day...

Has anyone encountered anything similar? I've spent the morning trawling the Google Earth API group without much avail.

Update: After more hair-pulling, the answer may lie with an iframe shim. I may have also jumped to the conclusion that the plugin is Flash-based. Investigating...

alt text http://neilsimonmckeown.googlepages.com/overlay.jpg

解决方案

I put together a demo showing how to use IFRAME shims here:

http://earth-api-samples.googlecode.com/svn/trunk/demos/customcontrols/index.html

这篇关于我如何在Google Earth插件上放置html div?涉及wmode,我想象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆