gcode-mirror / earth-api-samples

Automatically exported from code.google.com/p/earth-api-samples
0 stars 0 forks source link

<PhotoOverlay> event support #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
it would be great when we could catch the photooverlay-click event inside 
Google earth!

Requested by: plomari

Supported by: jan.wischnat

Original issue reported on code.google.com by api.roman.public@gmail.com on 12 Aug 2008 at 8:46

GoogleCodeExporter commented 9 years ago
It would be a great thing to get photooverlay in web-based Google Earth... I 
hope it
will not take to loong.
//Tomas

Original comment by fjellfot...@gmail.com on 2 Jan 2009 at 9:30

GoogleCodeExporter commented 9 years ago
Specifically, the ability to respond to a user's "Exit Photo" click would be 
nice. 
E.g. to set up a callback function to do something after the default exit-photo 
behavior.

Original comment by dged...@sageofathens.com on 28 Apr 2009 at 2:13

GoogleCodeExporter commented 9 years ago
We need to be able to catch events on other overlays too... specifically, 
screen overlays. I've seen code to try to interpret mouse clicks on the whole 
screen and try to calculate whether they fall within the bounds of a screen 
overlay. It's ugly, and sometimes it's impossible to get correct.

Original comment by hutt...@gmail.com on 28 Sep 2010 at 6:17

GoogleCodeExporter commented 9 years ago

Original comment by api.roman.public@gmail.com on 28 Jul 2011 at 4:08

GoogleCodeExporter commented 9 years ago
Here is a work around for detecting entering an overlay when a user double 
clicks on the photo in the plugin.

----------------------------------------

google.earth.addEventListener(ge.getWindow(), 'dblclick', function(event) {
if(event.getTarget().getType() == 'KmlPhotoOverlay') {
console.log('in Overlay');
}});

----------------------------------------

Original comment by fraser.c...@gmail.com on 15 Aug 2011 at 5:15