通过Google Earth插件显示Dojo对话框 [英] Display Dojo Dialog over Google Earth plugin

查看:277
本文介绍了通过Google Earth插件显示Dojo对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

常见问题:我正在使用具有Google Earth前端和中心(通过插件)的Dojo编写一个网络应用程序,并且我想通过Google Earth显示屏显示Dojo对话框(如确认和表单)。即使对话框具有非常大的z-index,并且地球容器(和内部元素)具有负z,则不可避免地将 dijit.Dialog 小部件呈现在地球显示下方-indexes。




Common problem: I'm writing a web app with Dojo that has Google Earth front and centre (via the plugin), and I want to display Dojo dialog boxes (such as confirmations and forms) over the Google Earth display. The dijit.Dialog widget is inevitably rendered underneath the Earth display, even when the dialog has a very large z-index, and the Earth container (and internal elements) have negative z-indexes.

This question is relevant - it seems due to the IFramey nature of the plugin that a shim is required - but I was wondering if there was anything more specific to Dojo? This is a common problem that ExtJS seems to have solved, and I would have thought Dojo would have as well.

解决方案

That link was relevant after all. I had a play around with the JavaScript for a while, and eventually dug into extending the dijit.Dialog widget. Simply adding a _shim attribute and updating it occasionally was enough to get everything to work seamlessly! Based on my experiences with attempting similar things with Adobe Flex, this is like a dream come true.

You can take a look at the source of my Shimmy Dialog on Bitbucket.

这篇关于通过Google Earth插件显示Dojo对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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