Look at:
http://code.google.com/apis/earth/documentation/demogallery.html?searchquery=iframe&topic=
in the demo gallery.
When you click the top-left "+" sign, you get a modal dialog, and all
earth navigation is disabled.
It actually does a lot more than you want. You'll find the code in the
fixup.js script, and the relevant part is:
var null_handler = function(event) {
event.preventDefault();
event.stopPropagation();
};
google.earth.addEventListener(ge.getWindow(),"click",
null_handler, true);
google.earth.addEventListener(ge.getWindow(),"dblclick",
null_handler, true);
google.earth.addEventListener(ge.getWindow(),"mouseover",
null_handler, true);
google.earth.addEventListener(ge.getWindow(),"mousedown",
null_handler, true);
google.earth.addEventListener(ge.getWindow(),"mouseup",
null_handler, true);
google.earth.addEventListener(ge.getWindow(),"mouseout",
null_handler, true);
google.earth.addEventListener(ge.getWindow(),"mousemove",
null_handler, true);
Of course, you'll want to have *real* handlers for at least some of
those events. Just remember to call event.preventDefault() and
event.stopPropagation() from those too.
Mark
On Jun 18, 8:57 am, Jonathan_me wrote:
> Hi,
> I'm trying to create a GE plugin application part of which requires
> the user to be able to draw a bounding box / rectangle in Google Earth
> over their area of interest (i.e. something like:
http://www.erh.noaa.gov/ctp/wxradio/images/TPCbcast_map.gif). I'd