Check out this simple example:
// Create a PanoLoader object
var loader = new GSVPANO.PanoLoader({
zoom: 3
});
// Implement the onPanoramaLoad handler
loader.on('panorama.load', function(panorama) {
// panorama will now be loaded
// for individual progress
panorama.on('progress', changeProgress);
// for individual complete callback
panorama.on('complete', completeCallback);
});
// Invoke the load method with a LatLng point
loader.load( new google.maps.LatLng( 42.216188,-75.726578 ) );
Check out other builds here.
<!-- Latest compiled and minified -->
<script src="//juampi92.github.io/GSVPano/build/GSVPano.min.js"></script>
<!-- Not minified -->
<script src="//juampi92.github.io/GSVPano/build/GSVPano.js"></script>
<!-- Custom version -->
<script src="//juampi92.github.io/GSVPano/build/GSVPano-1.0.0.min.js"></script>
$ bower install GSVPano
You can also install GSVPano using npm:
$ npm install gsvpano
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.