> I tried If (errorCode != 600) {}and still would not execute the code
> within the if statement.
That's right. Remember, you're setting up a listener like this -
GEvent.addListener(myPano, "error", handleNoFlash);
It's an error listener. It only calls handleNoFlash() if there is an
error. If there is a valid streetview, there is no error and it
doesn't call handleNoFlash() at all.
Your handleNoFlash has a snag at the moment, its not actually checking
for no Flash (code 603)
> What I am trying to achieve is an if
> statement to run when there is streetview present.
Have you found the documentation?
http://code.google.com/apis/maps/documentation/reference.html#GStreetviewPanorama
the 'initialized' my be what you want, but see the note in the text
there - not (yet) fired on first rendering.
> I put the script after the head hopefully it will load on ie6 could it
> also be that I have no function to run the map and so don;t call a
> function through body onload?
Still getting 'operation aborted' in IE6. There are other scripts on
your page doing document.write's and so on, but it might be worth
trying doing your map setup in an onload function. It is certainly
unwise to try to do it in the middle of the document.
cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---