Page 1 of 1

Pano2VR 6B5 panTo javascript error on load

Posted: Mon Nov 05, 2018 11:50 pm
by enertiv
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

Re: Pano2VR 6B5 panTo javascript error on load

Posted: Mon Nov 12, 2018 10:08 pm
by Hopki
Can you post your skin?
Regards,
Hopki