On Jun 6, 7:56 pm, aus_ed wrote:
> Yes, I noticed this effect as well. My overlay div shows through only
> on map type selector buttons. So, there must be a way to control
> display order of div elements (google does it with the buttons etc).
What do you mean by map type selector buttons?
I believe google maps is implemented using browser primitives rather
than some plugin, so essentially google maps is just constructed from
normal divs anyway. Therefore there's no problem because you're just
placing divs on top of other divs. I think the problem comes in
because google earth isn't constructed from HTML/DOM primitives, but
native code that draws directly into a region on the page.
> I'm using my primitive version of lightbox effect to add more contnt
> to the map (for example like here:
http://www.aus-emaps.com/emergency_incidents.php)
> but I can't do it with Earth. Maxing info window/baloon within the map
> area is not an option...
I think I see what you're trying to do. I wonder if it's possible to
set display:none on the plugin div and then show your info box? If it
were somehow possible to copy the bitmap of the plugin div and place
it on the p of the same size, show that, then hide the plugin div, you
might be able to get a similar effect. I'm not enough of a javascript
whiz to know if there's some standard way to snapshot the bitmap of a
page region
BTW:
Event: Snow Storm
Area: Caribean Area
Country: Jamaica
> Maybe there is a way to "attach" a div (ie the "hole") to the map div
> (as childNode or something?) to cover the entire map (ie same way
> buttons are attached) so it can allow "see-through"?
Well, using Firebug you can see that the balloon div is simply
absolutely positioned in the window. It's added as the last child of
the <body> element.
I suspect that they've implemented Google Earth in FF at least as a
"transparent windowless plugin":
http://developer.mozilla.org/en/docs/Gecko_Plugin_API_Reference:Drawing_and_Event_Handling#Windowless_Plug-ins
"You can create transparent plug-ins. In this case, the browser draws
the part of the page that exists behind the plug-in. The windowless
plug-in draws only the parts of itself that are opaque. This way, the
plug-in can draw an irregularly shaped area, such as a figure, or text
over the existing background.“
So I suspect "holes" (such as the one in the balloon) are created by
invalidating the whole plugin region then just "not drawing" that
region with the hole. It also sounds like it's not possible for the
browser to render anything over a plugin.
Feature request! I want a way to create arbitrary transparent
rectangles in the plugin!