YES!
I changed one line of code to read:
mpov= parseFloat(window.database.getObject(itemid,"streetviewpov"));
and it works, thank you Larry and Paul!


On Jul 12, 4:10 am, "[email protected]" <[email protected]>
wrote:
> On Jul 11, 5:17 pm, martin <[email protected]> wrote:
>
> > I am trying to get the value of "yaw" from a google spreadsheet into
> > my map.
> > lat and lon values load just fine from the spreadsheet but for some
> > reason I cannot get the streetview to load the "yaw" value.
> > I have a test map here:http://courtenay.widget-it.com/park/
> > The function is "initializePan(lat,lon,header,mpov);
> >where lat,lon,header and mpov are all stored in a google spreadsheet
> > you can see the alert shows the proper number and if I hard code that
> > number in:
> >  "var myPOV = { yaw: mpov, pitch: 0 };"
> > as var myPOV = { yaw:149.82, pitch: 0 };
> > it works as it should.
> > strange, I'm perplexed, can anyone help?
>
> This statement is returning null:
>         mpov= window.database.getObject(itemid,"pov");
> As I can't see your database, I can't tell what it should be
> returning, but I would expect it should be a single string that would
> need to be turned into a number with parseInt or parseFloat, but it
> doesn't seem to exist. Is there an itemId "pov"?
>
>   -- Larry
>
>
>
> > as there is only one record in spreadsheet, please use the top right
> > label and click
> >  "Pinegrove Park"
> > then choose the -> Streetview: Open | Close
>
> > thanks
> > Martin

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

Reply via email to