Have you seen StreetViewService's getPanoramaByLocation? You could query this service to see if there is a pano within 50m, and if not, then move the pegman back.
http://code.google.com/apis/maps/documentation/javascript/reference.html#StreetViewService Chris On Sun, Dec 19, 2010 at 10:39 AM, Amr ElGarhy <[email protected]>wrote: > In this google map sample: > http://code.google.com/apis/maps/documentation/javascript/examples/streetview-simple.html > If the user dropped the little guy far away in the middle of the ocean for > example, it disappears. > But in the main google map website http://maps.google.com/ If you made it > show the street view, and the user dragged the guy away it get back > automatically to the previous point. > > What is missed in the first example to make it behave the same as the > google map website? > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
