Skip to content

pnitsch/GSVPano.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GSVPano.js - Google Street View Panorama lib

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!

Using the code

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 ) );

License

MIT licensed

Copyright (C) 2012 Jaume Sanchez Elias, http://www.clicktorelease.com

About

Google Street View Panorama Util

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.0%
  • Perl 8.2%
  • Shell 0.8%