On Jul 6, 11:28 am, James Chalmers <[email protected]> wrote: > Hi guys, simple problem here that i cant find any decent docs for.. > > Need to test for an error on creating a new GStreetviewPanorama > object. I cant figure out how to do this anywhere. > > Except that I'd really need a callback to get a proper response.
The panorama object triggers an event when it errors: http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GStreetviewPanorama.error However, if you create a new StreetViewClient object, then its StreetViewData contains the status code. This is what I use in http://www.acleach.me.uk/gmaps/streetview-infow2.htm -- having got the StreetViewData, I can then use that to set up the StreetViewPanorama. -- 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.
