Library to help requesting and stitching Google Street View panoramas.
You can see it in use in a WebGL Google Street View Panorama Viewer.
Forks, pull requests and code critiques are welcome!
Include GSVPano.[min.]js and Google Maps API lib.
The lib uses google.maps.LatLng to specify the location and google.maps.StreetViewService.
<script src="GSVPano.min.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
Add this basic code:
// Create a PanoLoader object
var loader = new GSVPANO.PanoLoader();
// Implement the onPanoramaLoad handler
loader.onPanoramaLoad = function() {
/*
Do your thing with the panorama:
this.canvas: an HTML5 canvas with the texture
this.copyright: the copyright of the images
*/
};
// Invoke the load method with a LatLng point
loader.load( new google.maps.LatLng( 42.216188,-75.72657859999998 ) );
MIT licensed
Copyright (C) 2012 Jaume Sanchez Elias, http://www.clicktorelease.com