Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Javascript HTML
i am getting an error like this
Invalid value for property <heading>: undefined
Here is my code,
var loc = new google.maps.LatLng(window.parent.streetViewLat, window.parent.streetViewLon);
var panoramaOptions = {
position: loc,
pov: {
heading: window.parent.heading,
pitch: 0,
zoom: 1
Thanks in Advance.
Posted 18-Jan-13 12:04pm
Sergey Alexandrovich Kryukov at 18-Jan-13 17:12pm
Again and again: why wouldn't you just take a look at documentation?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Look at this: window.parent.heading. First, a window may or may not have a parent. If not, the value of window.parent will be undefined. But the main thing is: this object does not have the property "heading". Want to check it? Please see:[^].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 476
1 Sergey Alexandrovich Kryukov 235
2 CHill60 195
3 Afzaal Ahmad Zeeshan 145
4 TheRealSteveJudge 120
0 Sergey Alexandrovich Kryukov 9,121
1 OriginalGriff 7,920
2 Peter Leow 4,774
3 Kornfeld Eliyahu Peter 3,210
4 Maciej Los 2,176

Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 18 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100