Friday, January 6, 2012

[Google Maps API v2] Re: Duel maps with Geocoder

On Jan 6, 3:43 am, TequilaStew <stewri...@gmail.com> wrote:
>
> Here is what I have go so far:http://www.sydneyside.net.au/delcost/streetviewv2.html
>
> I cannot workout how to make both the map and the street view update
> from the one returned results of the Geocode.  I am kind new to
> programming this, but I am learning so sorry if the code is kinda
> messy.

Well, you have this

myPano.setLocationAndPOV(point);

so you need to do that within the geocoder function. To get that to
work, myPano will need to be global so it can be shared between
functions.

You're welcome to my example at http://www.acleach.me.uk/gmaps/streetview-infow2.htm,
although that does a bit more like reverse geocoding to get address/
postcode and ensuring that the streetview is looking across the street
rather than along it.

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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


Real Estate