Re: GStreetviewPanorama Problem
On Jul 6, 11:28 am, James Chalmers <skippychalm...@gmail.com> 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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home