On Jul 12, 6:31 am, martin <[email protected]> wrote:
> Larry,
> Thanks for the input, yes there is a value for mpov=
> window.database.getObject(itemid,"pov");
> however there is only one record with that value :  "Pinegrove Park"
> there is an alert that shows the number 149.82

That alert says "null" in my browser (IE).

> I think your right and as Paul has suggested above the number is
> coming out a string.
> I will try parseInt or parseFloat, thanks for the heads up
> Martin
>
> 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- Hide quoted text -
>
> - Show quoted text -

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