Check out this simple example:
62 |// Create a PanoLoader object
64 | var loader = new GSVPANO.PanoLoader({
65 | zoom: 3
66 | });
67 |
68 | // Implement the onPanoramaLoad handler
69 | loader.on('panorama.load', function(panorama) {
70 | // panorama will now be loaded
71 |
72 | // for individual progress
73 | panorama.on('progress', changeProgress);
74 |
75 | // for individual complete callback
76 | panorama.on('complete', completeCallback);
77 | });
78 |
79 | // Invoke the load method with a LatLng point
80 | loader.load( new google.maps.LatLng( 42.216188,-75.726578 ) );
81 |
82 | Check out other builds here.
98 |<!-- Latest compiled and minified -->
99 | <script src="//juampi92.github.io/GSVPano/build/GSVPano.min.js"></script>
100 |
101 | <!-- Not minified -->
102 | <script src="//juampi92.github.io/GSVPano/build/GSVPano.js"></script>
103 |
104 | <!-- Custom version -->
105 | <script src="//juampi92.github.io/GSVPano/build/GSVPano-1.0.0.min.js"></script>
106 |
107 |
108 | $ bower install GSVPano
111 | You can also install GSVPano using npm:
115 |$ npm install gsvpano
117 | require('gsvpano')
will get you the library, and it's ready for you to use it with Browserify or whichever front end bundler you want.