> But I would like to hide this picto when streetview is not available
> for this point.
> I try, but the listener seems not to have the time to execute the
> streetview check...
> as the "imgstreet" variable is undefined...

That's exactly the problem ; GStreettviewPanorama operates
asynchronously, it has to go to Google and ask, and then wait for a
reply ; it all takes time.

Try something like making your orange man hidden when the infowindow
is created.  Then, in your listener code
> GEvent.addListener(myPano, "error", function(errorCode) {
don't set a variable, make the function show the orange man image (or
the 'sorry' message) by acting directly on the relevant <div> or <img>
in the infowindow.
The infowindow could then open with this information blanked out, and
it would get updated after a short time when the results come back
from Google.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to