pchen66/panolens.js

How to multiple GoogleStreetviewPanorama

kokeman opened this issue · 0 comments

I created two panorama links using GoogleStreetviewPanorama as follows.

    panorama1 = new PANOLENS.GoogleStreetviewPanorama('panoId_1');
    panorama2 = new PANOLENS.GoogleStreetviewPanorama('panoId_2');

    panorama1.link( panorama2, new THREE.Vector3(100, 100, 100) );
    panorama2.link( panorama1, new THREE.Vector3(100, 100, 100) );

    viewer = new PANOLENS.Viewer();
    viewer.add(panorama1, panorama2 );

I got this error

You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.

Any solution?