Thanks Andrew, I get the point about the asynchronous execution. So "myPano.setLocationAndPOV" is triggering Streetview to be displayed in the assigned DIV? And I don't have any values to begin with in "latlng" hence it is not displaying ? Just trying to learn some more on how this works...
Where do I place this to have it in a callback function ? Many thanks again, spent two days to get where I am now so really want to get this working. On Apr 20, 11:10 am, Andrew Leach <[email protected]> wrote: > On Apr 20, 11:04 am, "[email protected]" <[email protected]> > wrote: > > > Ah sorry, pasted incorrect code... > > This is the reason why you should always give a link, not paste code. > > > 1. Now if I want this to trigger without a click on the map and just > > to use the base from map, i.e. not "click". I'm struggling to have it > > auto execute . > > The usePointFromPostcode call is asynchronous and executes in the > background. To use the point returned, you need to put > myPano.setLocationAndPOV(latlng) > into the callback function. latlng is called point in that function. > > > 2. They click on the road and bring up the street view. Now if I want > > to have a button to remove the street view, how do I reset it ? > > Not sure about that. Might have an idea if you can provide a link and > we can see it in action. > > Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
