Pano2VR 6B5 panTo javascript error on load

Q&A about the latest versions
Post Reply
enertiv
Posts: 13
Joined: Thu Oct 11, 2018 10:49 am

Pano2VR 6B5 panTo javascript error on load

Post by enertiv » Mon Nov 05, 2018 11:50 pm

When I output a project I see these errors in the console

Code: Select all

Pano2VR player 6.0 beta5/17181 - Prefix:-webkit-, CSS 3D available, WebGL available
pano2vr_player.js:238 TypeError: Cannot read property 'panTo' of undefined
    at HTMLDivElement._floor_plan.ggCenterNode (skin.js:2203)
    at HTMLDivElement._floor_plan.ggNodeChange (skin.js:752)
    at pano2vrSkin.callNodeChange (skin.js:78)
    at skin.js:88
    at b.ja (pano2vr_player.js:228)
    at b.Ii (pano2vr_player.js:392)
    at b.Sl (pano2vr_player.js:397)
    at b.Aj (pano2vr_player.js:389)
    at XMLHttpRequest.d.onload (pano2vr_player.js:391)
pano2vr_player.js:238 TypeError: Cannot read property 'panTo' of undefined
    at HTMLDivElement._floor_plan.ggCenterNode (skin.js:2203)
    at HTMLDivElement._floor_plan.ggNodeChange (skin.js:752)
    at skin.js:2565
    at b.ja (pano2vr_player.js:228)
    at b.Ii (pano2vr_player.js:392)
    at b.Sl (pano2vr_player.js:397)
    at b.Aj (pano2vr_player.js:389)
    at XMLHttpRequest.d.onload (pano2vr_player.js:391)
pano2vr_player.js:238 TypeError: Cannot read property 'panTo' of undefined
    at HTMLDivElement._floor_plan.ggCenterNode (skin.js:2203)
    at HTMLDivElement._floor_plan.ggNodeChange (skin.js:752)
    at pano2vrSkin.callNodeChange (skin.js:78)
    at skin.js:87
    at b.ja (pano2vr_player.js:228)
    at b.Sl (pano2vr_player.js:397)
    at b.Aj (pano2vr_player.js:389)
    at XMLHttpRequest.d.onload (pano2vr_player.js:391)
I fixed by changing:

Code: Select all

if ((gps.length >= 2) && ((gps[0] != 0) || (gps[1] != 0))) {
to

Code: Select all

if ((gps.length >= 2) && ((gps[0] != 0) || (gps[1] != 0)) && me._floor_plan.ggMap) {
in my skin.js output file since there is no google map reference in my project

User avatar
Hopki
Gnome
Posts: 8627
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Pano2VR 6B5 panTo javascript error on load

Post by Hopki » Mon Nov 12, 2018 10:08 pm

Can you post your skin?
Regards,
Hopki

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 28 guests