On Feb 18, 10:21 pm, Anthony Smith <[email protected]> wrote: > I am using this little snippet of code below to show an address. But > unless I fiddle around with the yaw and pitch, it will end up showing > the street. What can I do to automatically show the address in > question? When I do a google maps of the address, they always show the > image of the address and not just the street. How can I do the same? > > var house = new GLatLng(<?php echo $latitude; ?>,<?php echo > $longitude; ?>,190 ); > myPOV = {yaw:280.64659986187695,pitch:-0.01}; > panoramaOptions = { latlng:house, pov:myPOV}; > myPano = new GStreetviewPanorama(document.getElementById > ("pano"), panoramaOptions); > GEvent.addListener(myPano, "error", handleNoFlash);
If you have a "rooftop" geocode for the address, you can use the bearing from the nearest panorama to the address to determine the yaw. I don't know that you can automatically calculate the pitch. -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
