The issue is that Chrome temporarily hangs when alert/prompt dialogs
are opened in an API callback or event handler routine. The workaround
is to wrap all calls to alert or prompt in a setTimeout, as is
demonstrated in the Fetch Bad KML sample:
> The issue is that Chrome temporarily hangs when alert/prompt dialogs
> are opened in an API callback or event handler routine. The workaround
> is to wrap all calls to alert or prompt in a setTimeout, as is
> demonstrated in the Fetch Bad KML sample:
I just can't get the plugin to work for Google Chrome. It looks like
it's trying and then eventually it gives up and tells me I may need to
reinstall the plugin - which I have done more than once now, but
still no joy. Is there anything I need to do to or is it a bigger
problem than just me?
I have a "click" event listener on ge.getWindow(). That checks
event.getTarget(); if its a KmlPlacemark, it iterates over a list of
placemarks comparing them to event.getTarget(). If it finds it, it
takes an action.
This works in IE6, IE7, FF2 and FF3. In chrome, it never finds the
placemark in my list. I've even cut the example down to where there is
exactly one placemark, and it still doesnt compare equal.
In other words event.getTarget() == myPlacemark *always* returns
false. But if I compare the locations of the placemarks, and the
descriptions, and the names they are obviously the same placemark.
My workaround for now is to give the placemarks an Id, and compare the
Id's for equality.
> The issue is that Chrome temporarily hangs when alert/prompt dialogs
> are opened in an API callback or event handler routine. The workaround
> is to wrap all calls to alert or prompt in a setTimeout, as is
> demonstrated in the Fetch Bad KML sample:
> I have a "click" event listener on ge.getWindow(). That checks
> event.getTarget(); if its a KmlPlacemark, it iterates over a list of
> placemarks comparing them to event.getTarget(). If it finds it, it
> takes an action.
> This works in IE6, IE7, FF2 and FF3. In chrome, it never finds the
> placemark in my list. I've even cut the example down to where there is
> exactly one placemark, and it still doesnt compare equal.
> In other words event.getTarget() == myPlacemark *always* returns
> false. But if I compare the locations of the placemarks, and the
> descriptions, and the names they are obviously the same placemark.
> My workaround for now is to give the placemarks an Id, and compare the
> Id's for equality.
> Is this a known bug?
> Mark
> On Feb 19, 4:12 pm, Roman N wrote:
> > Hi all,
> > We've just launched support for Google Chrome 1.0+.
> > There are some more details at the new Google Earth API notifications
> > group, which I recommend that you all either join or subscribe to via
> > RSS:
> > The issue is that Chrome temporarily hangs when alert/prompt dialogs
> > are opened in an API callback or event handler routine. The workaround
> > is to wrap all calls to alert or prompt in a setTimeout, as is
> > demonstrated in the Fetch Bad KML sample:
> I just can't get the plugin to work for Google Chrome. It looks like
> it's trying and then eventually it gives up and tells me I may need to
> reinstall the plugin - which I have done more than once now, but
> still no joy. Is there anything I need to do to or is it a bigger
> problem than just me?
I have had quite a few probelms and tried all the browsers, but I hav
identified that for some reason I have 2 copies of Google Earth on my
PC, and neither can be deleted. I am working on it and may get back to
you. At the moment I am just slapping my pc about a bit for being
incompetent.
> I assume you've tried restarting Chrome? And also, have you tried in
> other browsers to double check that this is a Chrome-specific issue?
> - Roman
> On Feb 22, 9:13 am, oohrogerpalmer wrote:
> > I just can't get the plugin to work for Google Chrome. It looks like
> > it's trying and then eventually it gives up and tells me I may need to
> > reinstall the plugin - which I have done more than once now, but
> > still no joy. Is there anything I need to do to or is it a bigger
> > problem than just me?- Hide quoted text -