Friday, June 18, 2010

Re: Can't change Street View POV after loss of 2.140

On Jun 18, 6:01 pm, Matt Perry <mattgpe...@gmail.com> wrote:
> In the last couple of days our charity fundraising site has broken, I
> need to get this fixed asap. If you go tohttp://worldcup.housebling.org.uk/test1/?view=za47sr16
> You can see a Street View panorama that has been set to yaw:0 when
> alerts confirm that svOpts.currentPOV.yaw = 330.3. This number is
> passed through on init as you can see below.
>
> Previously we were using API version 2.140 with no issues using the
> setLocationAndPOV method - tried passing in the POV details on init
> and it still doesn't work.

Mine is still working. I do things slightly differently, creating the
panorama and then setting its parameters:

//SVD is a GStreetviewData object

svdiv=document.getElementById("sv");
svdiv.innerHTML="";
SVP = new GStreetviewPanorama(svdiv) ;
SVP.setLocationAndPOV(SVD.location.latlng, {yaw:yaw});

See http://www.acleach.me.uk/gmaps/streetview-infow2.htm -- enter an
address and then either click or move the marker. The yaw is set to be
perpendicular to the street (so it always shows the houses front-on)
by setting it to be perpendicular to the bearing of the adjacent
panorama location.

Is it worth using setLocationAndPOV in your code?

--
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


Real Estate