Closed GoogleCodeExporter closed 9 years ago
This is due to the GEGlobe object not returning a KmlEvent when the view events
are
raised. I will add additional methods to the controls to allow for these events
to be
used. Thanks for bringing this to my attention.
Original comment by fraser.c...@gmail.com
on 3 Nov 2009 at 10:31
...OK I am thinking of rewriting the whole of the events system as there are a
number
of other issues that need to be resolved. Please bear with me whilst I
determine the
best pattern to use so that all events can be integrated in the best way.
Original comment by fraser.c...@gmail.com
on 3 Nov 2009 at 10:48
Interestingly, I had the same problem but was able to get it to work using
InjectJavascript.
{{{
browser.InjectJavascript(@"
function eventHandler(event) {
if(event) {
application.KmlEventCallBack(event, event.getType());
}
}
// listen to the click event on the globe and window
google.earth.addEventListener(ge.getGlobe(), 'click', eventHandler);
google.earth.addEventListener(ge.getWindow(), 'click', eventHandler);
");
}}}
Original comment by blai...@gmail.com
on 4 Nov 2009 at 11:03
Ya, that is how I am handling custom events, however that wont work for the
viewchangebegin viewchange or viewchangedend events on the GEView as the
callback does
not pass a KmlEvent object...Thanks though!
Original comment by fraser.c...@gmail.com
on 4 Nov 2009 at 5:36
Original comment by fraser.c...@gmail.com
on 5 Nov 2009 at 1:44
Original issue reported on code.google.com by
robert.s...@lacota.com
on 3 Nov 2009 at 10:16